How to change automatically the name of the title ?

1 次查看(过去 30 天)
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 个)

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

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by