ı need to help about Decision Branching task1 solution, I don't understand this:

15 ビュー (過去 30 日間)
Ummu Gulsum Simsek
Ummu Gulsum Simsek 2022 年 2 月 18 日
編集済み: Walter Roberson 2025 年 9 月 25 日
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
Hassan Iskandarani 2022 年 2 月 25 日
編集済み: Walter Roberson 2025 年 9 月 25 日

サインインしてコメントする。

回答 (1 件)

Sabyrzhan
Sabyrzhan 2025 年 9 月 25 日
if doPlot == 1
plot(x, y)
title('Plot of x vs y')
xlabel('x-axis')
ylabel('y-axis')
end

カテゴリ

Help Center および File ExchangePolar Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by