fprintf to plot error
3 ビュー (過去 30 日間)
古いコメントを表示
I need convert fprintf of y0 to vector for plot (x,y0)

1 件のコメント
Geoff Hayes
2020 年 5 月 28 日
Edinson - what exactly is your question? Is there a problem with the fprintf? Please claridy. Also, please don't post a screen shot of your code...attach the code or copy and paste it into your question.
回答 (2 件)
Edinson Manga
2020 年 5 月 28 日
2 件のコメント
Walter Roberson
2020 年 5 月 28 日
That should have been posted as a Comment to your Question.
When you edit it in up there, first press the ">" button in the CODE section of the editor toolbar, and then paste your nicely indented code into the area that creates, so that it gets post as formatted code.
Walter Roberson
2020 年 5 月 28 日
See https://www.mathworks.com/matlabcentral/answers/534868-make-matrix-with-loop#answer_439778 for a general code outline that you should probably use.
Question: why do you change x each iteration of the loop? You do not use x in the loop.
Why are you initializing i in the loop and then incrementing it (so each loop you set it to zero and then set it to one.) You are not using i anywhere. If you want to know how many iterations it takes you should not be setting i to 0 each time.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!