フィルターのクリア

How to change automatically the name of the title ?

2 ビュー (過去 30 日間)
Momo
Momo 2018 年 4 月 23 日
再開済み: Momo 2018 年 4 月 24 日
I'm trying to compute a system of ODE by using different solvers.How to change the legend and title automatically depends on solvers(i)? I want to plot a graph for each solver.

採用された回答

Jeff Miller
Jeff Miller 2018 年 4 月 23 日
Looks like you need a "figure;" command inside the loop to start a new figure window for each solver. I think you are now drawing all plots in the same window, so you only see the last one.
  1 件のコメント
Momo
Momo 2018 年 4 月 23 日
yeah, you are right I forgot to add figure(i), thank you so much

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 4 月 23 日
title(solvers{i});
legend('Exact Solution', solvers{i});

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by