フィルターのクリア

Help with multiple plot at same figure

1 回表示 (過去 30 日間)
Marco Esteves
Marco Esteves 2011 年 5 月 5 日
Hello, I've got a problem. I don't know how can I do a multiple plot at same figure, this is my code,that I wanna merge
for j = 1:Ne
jj = jj+1; if jj > Ne, jj = 1; end
plot(up(:,j),zp, scm(jj,:),'LineWidth',2,'MarkerSize',3); hold on
st(j,:) = sprintf('%5.1f ut',t(j));
end
for j=1:nl
plot(zp,lp(1,j),'k*','LineWidth',3,'MarkerSize',2); hold on
end

採用された回答

Robert Cumming
Robert Cumming 2011 年 5 月 5 日
  4 件のコメント
Robert Cumming
Robert Cumming 2011 年 5 月 5 日
that'll teach me for not reading the question fully...
I agree that the actual problem is not that clear
Paulo Silva
Paulo Silva 2011 年 5 月 5 日
The questions are almost never that simple :) and many times the OP will change his/her mind and ask something very different from the first question.

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

その他の回答 (1 件)

Marco Esteves
Marco Esteves 2011 年 5 月 6 日
I've got 2 cyles to get plot curves. I need to override the result of plots in the same figure
for j = 1:Ne
jj = jj+1; if jj > Ne, jj = 1; end
plot(up(:,j),zp, scm(jj,:),'LineWidth',2,'MarkerSize',3); hold on
st(j,:) = sprintf('%5.1f ut',t(j));
end
for j=1:nl
plot(zp,lp(1,j),'k*','LineWidth',3,'MarkerSize',2); hold on
end
  1 件のコメント
Robert Cumming
Robert Cumming 2011 年 5 月 9 日
to be honesdt thats still not really clear what your trying to do.
Anyway - try cla to clear the axis or hold off (then on agian after the 1st plot command).

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

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by