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 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Doug Hull
Doug Hull am 19 Nov. 2014
v = []
for i = 1:4
v(end+1) = i*11
end

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by