Borrar filtros
Borrar filtros

how do i prompt

3 visualizaciones (últimos 30 días)
janny
janny el 13 de Jun. de 2016
Comentada: janny el 13 de Jun. de 2016
hi guys,,, am working in a binary random matrix by using the command
dec2bin((rand(50,1)*2^32)
i want to add a prmopt before this line to ask for entering column and row

Respuesta aceptada

the cyclist
the cyclist el 13 de Jun. de 2016
Use the input command.

Más respuestas (1)

Adam
Adam el 13 de Jun. de 2016
rowCol = input( 'Enter row and column\n' );
would work if the user inputs something like:
[9 8];
Or you could split into two prompts, one for each if you prefer.
  1 comentario
janny
janny el 13 de Jun. de 2016
Thanks alot

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by