필터 지우기
필터 지우기

How to: Renew Graph / figure / GUI

조회 수: 3 (최근 30일)
Hello kity
Hello kity 2012년 12월 28일
Hi
i have build a gui which plots some graphs. I can choose what I want to plot by a popup box (case1, case 2 etc). The problem is, for example case1 consits of 3 subplots, it plots 3 graphs. And case2 consists of a single graph. If i choose case 1 first, it plots 3 graphs, then afterwards if i choose case 2 it plots its single graph in the 3rd subplot.... instead of clearing the window and making a single plot.
i tried clf, cla but dont work. how can i fix this?
thank you

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 28일
편집: Azzi Abdelmalek 2012년 12월 28일
Use
subplot(1,1,1)
  댓글 수: 1
Hello kity
Hello kity 2012년 12월 28일
yea why not create a subplot for a single graph :)
thank you, this worked

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by