フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to choose the number in a random manner

1 回表示 (過去 30 日間)
jaah navi
jaah navi 2019 年 2 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
A=[1 2 ;
4 5 ;
7 8 ;
10 11;
12 13;
14 15;
16 17 ;
18 19]
G=size(A,1)
C=1:G
Could anyone help me how to choose the number in C in a random manner,such that C can be 2 or 3 or 4 or 5 or 6.
  2 件のコメント
Stephen23
Stephen23 2019 年 2 月 18 日
編集済み: Stephen23 2019 年 2 月 18 日
"...such that C can be 2 or 3 or 4 or 5 or 6."
What about 1 or 7 or 8? Why are they excluded?
Rik
Rik 2019 年 2 月 19 日
Jaah, please stop posting new questions instead of posting explanatory comments. You have been told this many times before.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by