필터 지우기
필터 지우기

I want to delete a certain plot, but the whole axis get deleted

조회 수: 3 (최근 30일)
Iris
Iris 2015년 5월 28일
댓글: Vinod Sudheesh 2015년 6월 8일
Hi,
I've made a bode plot of two systems using bodeplot and I gave them handles. Then I want to remove the first one, so I tried:
delete(handle1)
However, not only the plot gets deleted, but the whole axis. An empty figure window remains.
How do I fix this?
Thanks in advance.
PS This is my minimal working example:
bodes = figure; hold on
handle1 = bodeplot(sys1);
handle2 = bodeplot(sys2);
title({'blabla'},'Interpreter','latex')
legend({'bode1','bode2'},'Interpreter,'latex')
grid on
setoptions(handle2,'MagUnits','abs')
setoptions(handle2,'MagScale','log')
delete(handle1)
  댓글 수: 3
Iris
Iris 2015년 6월 3일
1x1 tf (transfer functions)
Vinod Sudheesh
Vinod Sudheesh 2015년 6월 8일
Hi Iris,
Which version of MATLAB are you using?. I was able to reproduce this issue in MATLAB 8.3 (R2014a) and MATLAB 8.5 (R2015b).

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Plot Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by