ı need to help about Decision Branching task1 solution, I don't understand this:
15 ビュー (過去 30 日間)
古いコメントを表示
Modify the script so that the plotting code on lines 5-8 are executed only when doPlot is 1.
The solution shows that:
if doPlot == 1
plot(density)
title("Sample Densities")
xticklabels(element)
ylabel("Density (g/cm^3)")
end
but when ı click submit,it isn't true.
7 件のコメント
Hassan Iskandarani
2022 年 2 月 25 日
編集済み: Walter Roberson
2025 年 9 月 25 日
回答 (1 件)
Sabyrzhan
2025 年 9 月 25 日
if doPlot == 1
plot(x, y)
title('Plot of x vs y')
xlabel('x-axis')
ylabel('y-axis')
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!