13.2 判定分岐 タスク1 doPlot が 1 の場合にのみの条件の設定について
Afficher commentaires plus anciens
if ブロックの本体は、条件が true の場合にのみ実行されます。
doPlot が 1 の場合にのみプロット用コードの 4 ~ 7 行目が実行されるように、スクリプトを変更します。
こちらの問題の解答がif doPlot=1 ではなく if doPlot になるのは何故でしょうか?
解答
if doPlot
%% <プロット コード>;
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Author Block Masks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!