LOOP!!! Please explain to me !!

6 次查看(过去 30 天)
Kae-Shyang Chen
Kae-Shyang Chen 2018-8-29
重新打开: Rik 2018-8-29
  5 个评论
Rik
Rik 2018-8-29
Have you read the documentation for the functions you're using?
A for loop will execute the contents of the loop for each value in the vector you enter. A while loop will continue to execute while the test you enter is true.
Also, you should pay attention to the orange squiggles, they indicate warnings that the code analyzer picked up. Generally you should try to solve each one.
Rik
Rik 2018-8-29
You should only use flags to attract attention to site admins, use comments to communicate to other users in the thread. You also shouldn't necessarily close your question for other reasons than the two reasons you can choose in the menu (unclear or not appropriate for the site).

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by