How to change automatically the name of the title ?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponse acceptée
Jeff Miller
le 23 Avr 2018
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.
Plus de réponses (1)
Walter Roberson
le 23 Avr 2018
title(solvers{i});
legend('Exact Solution', solvers{i});
0 commentaires
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!