Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Building Input-Looping Problem

1 Ansicht (letzte 30 Tage)
Alvi Syahrin
Alvi Syahrin am 24 Mai 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Anyone can help me with the script of input-looping? Example, there is three variables, let us say 'coloumn', 'k', and 'c'. 'coloumn' has been set three. 'k' and 'c' are user's inputs. Here it works...
1. If users inputs k=3, then they must input 'c' for 9 times (k x coloumn). If users input k=4, then they must input 'c' for 12 times (k x coloumn).
2. After 'k' is inputted, the message box will be appeared for user to input the c for as many as they input the (k x coloumn).
[maxRow, maxCol] = size(data);
k=input('Enter a number');
% now I'm stuck with the 'c' thing%
Any idea? Your help will be much appreciated.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by