for i=1:10
j=i*5:
end
output will be:
5,
10,
......
50.
how can i pass these output values(5.....50) in an array?

 채택된 답변

Star Strider
Star Strider 2015년 9월 22일
편집: Star Strider 2015년 9월 22일

1 개 추천

Change the ‘j’ assignment to:
j(i) = i*5;

추가 답변 (1개)

Image Analyst
Image Analyst 2015년 9월 22일

1 개 추천

Or get rid of the "for":
i=1:10;
j=i*5;

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2015년 9월 22일

댓글:

2015년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by