필터 지우기
필터 지우기

how do i prompt

조회 수: 3 (최근 30일)
janny
janny 2016년 6월 13일
댓글: janny 2016년 6월 13일
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

채택된 답변

the cyclist
the cyclist 2016년 6월 13일
Use the input command.

추가 답변 (1개)

Adam
Adam 2016년 6월 13일
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
janny
janny 2016년 6월 13일
Thanks alot

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by