how to use for loop to make simple vector[1 2 3 4 5 6]]
Show older comments
Answers (1)
Torsten
on 30 Apr 2022
v= zeros(1,6);
for i=1:numel(v)
v(i) = i;
end
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!