Plotting with an array in an equation
古いコメントを表示
If I had an array of angles (the phi value), and I wanted to use them to plot m against iterations of the simulation (N) (as shown in the attached image), then how do it?
I tried this before but since the angles are in an array and I'm trying to add all of them together and multiply them by 1/N, I can't seem to be able to plot them.

I think I need to make an array for the m values to them lnspace and plot against N, but I've not had much success in getting it to work.
Sorry for the poor explanation.
6 件のコメント
Scott MacKenzie
2021 年 5 月 3 日
No image was attached
Oliver Ford
2021 年 5 月 3 日
Scott MacKenzie
2021 年 5 月 3 日
編集済み: Scott MacKenzie
2021 年 5 月 3 日
To me, your question parses to "to plot m ... as shown in the attached image". I was expecting an example image of the plot. If you could provide an example plot, that would probably help.
Oliver Ford
2021 年 5 月 3 日
Walter Roberson
2021 年 5 月 3 日
Are there N phi values or is the division by a value that is unrelated to the number of phi values?
Oliver Ford
2021 年 5 月 3 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
