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