How to create for loop?

For example i have vector containing 1000 random vector so how do i create for loop that shows each of the 1000 elements between 0 and 0.3, between 0.3+ and 0.6, between 0.6+ and 1.

回答 (1 件)

madhan ravi
madhan ravi 2020 年 7 月 13 日

0 投票

doc rand % please read it

2 件のコメント

Dhruv Patel
Dhruv Patel 2020 年 7 月 13 日
I want to know how do i separate 0 to 0.3, 0.3 to 0.6 and 0.6 to 1
madhan ravi
madhan ravi 2020 年 7 月 13 日
編集済み: madhan ravi 2020 年 7 月 13 日
Use logical operator > , & <
doc >=
doc <
doc &

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

質問済み:

2020 年 7 月 13 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by