[NEED HELP] writing a for loop code for equation

How do I write a for loop code, Z = 0:2 for an increment size of 0.05?

2 件のコメント

John D'Errico
John D'Errico 2017 年 4 月 11 日
Why not try it? Make an effort. Even if this is not homework, you are more likely to get help if you show that you are trying to learn MATLAB, than if you treat the people here as a doit4me service.
So read the help for for.
doc for
You will find examples in there to give you an idea. Then TRY something. The point is, this is a basic problem. If you cannot even come close, then you need to read the Getting Started Tutorials in MATLAB.
Rik
Rik 2017 年 4 月 11 日
As John said, this is not a forum with people who will do your work for you, this is a forum with people who will help you when you get stuck. So if you try something and it doesn't work, reply here and we will try to help you.
Also, have a look at the help of the colon operator:
doc :

回答 (0 件)

この質問は閉じられています。

質問済み:

2017 年 4 月 11 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by