making loop that defines variables

조회 수: 1 (최근 30일)
Talaria
Talaria 2011년 8월 10일
how to make a loop that would output variables and result the following:
code example: for i=1:x y'i'= 2*i end
output example:
y1=2 y2=4 y3=6 y4=8 ......etc.. where y1 to y10 are all variables created and defined by the loop itself.

채택된 답변

Walter Roberson
Walter Roberson 2011년 8월 10일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by