How to create for loop?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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.
Answers (1)
madhan ravi
on 13 Jul 2020
doc rand % please read it
2 Comments
Dhruv Patel
on 13 Jul 2020
madhan ravi
on 13 Jul 2020
Edited: madhan ravi
on 13 Jul 2020
Use logical operator > , & <
doc >=
doc <
doc &
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!