I need the best way to write the loop commands
Show older comments
for i=1:15,
y(i+1)=vec(i);
end
y(1)=vec(16);
Accepted Answer
More Answers (0)
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!