필터 지우기
필터 지우기

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 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