Varying two variables in a for loop for one output
古いコメントを表示
These values are used later on to obtain 1 output that will be plotted in a 3d plot. I want to run a for loop where m(1) is compared to all the n values then the same will happen for m(2) and so on until I get all the possible points.
for index = 1:1:45
n = N_range(index);
m = m_water_range(index);
MW = m/nr;
MG = 1.6/Nr;
2 件のコメント
Cris LaPierre
2025 年 4 月 30 日
There are not enough details to provide a solution.
How are you comparing the values? Why are you comparing them? What is the value of nr and Nr? What is your output? Where should your for loop end?
Michael
2025 年 4 月 30 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
