Filter löschen
Filter löschen

how do i prompt

3 Ansichten (letzte 30 Tage)
janny
janny am 13 Jun. 2016
Kommentiert: janny am 13 Jun. 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

Akzeptierte Antwort

the cyclist
the cyclist am 13 Jun. 2016
Use the input command.

Weitere Antworten (1)

Adam
Adam am 13 Jun. 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 Kommentar
janny
janny am 13 Jun. 2016
Thanks alot

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by