Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Building Input-Looping Problem

1 visualización (últimos 30 días)
Alvi Syahrin
Alvi Syahrin el 24 de Mayo de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by