help I need matlab code for build avector, initially this vector don't have any value but I have a loop do something and in every run this value save a value with different length according to value that a loop represent

조회 수: 1 (최근 30일)
help I need matlab code for build avector, initially this vector don't have any value but I have a loop do something and in every run this value save a value with different length according to value that a loop represent

채택된 답변

Doug Hull
Doug Hull 2014년 11월 19일
v = []
for i = 1:4
v(end+1) = i*11
end

추가 답변 (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