[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 个评论

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.
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