Info

This question is closed. Reopen it to edit or answer.

Consecutive number by using for loop?

1 view (last 30 days)
Nihat Kuranli
Nihat Kuranli on 14 May 2018
Closed: Nihat Kuranli on 14 May 2018
How can I write a loop using the ' for' loop, which starts at 440 and ends at 560, increasing by 20 's.

Answers (1)

the cyclist
the cyclist on 14 May 2018
Edited: the cyclist on 14 May 2018
This seems like homework. Even if it isn't, it seems like it would be more beneficial for you to learn about the MATLAB documentation, than for us to just tell you the answer.
So, I'll just say here that you should very easily be able to figure this out from a similar example on the documentation page for the for command.

Community Treasure Hunt

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

Start Hunting!