how do i prompt

2 vues (au cours des 30 derniers jours)
janny
janny le 13 Juin 2016
Commenté : janny le 13 Juin 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

Réponse acceptée

the cyclist
the cyclist le 13 Juin 2016
Use the input command.

Plus de réponses (1)

Adam
Adam le 13 Juin 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 commentaire
janny
janny le 13 Juin 2016
Thanks alot

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by