I want to use array as loop
y=0:0.01:1
for x in range y
print(x)
end
but it occurs error
how to use y array as iteration?

 채택된 답변

KSSV
KSSV 2020년 4월 23일
편집: KSSV 2020년 4월 23일

0 개 추천

y = 0:0.01:1 ;
for i = y
i
end
for i = 1:length(y)
y(i)
end

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

질문:

2020년 4월 23일

편집:

2020년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by