필터 지우기
필터 지우기

create a new figure ensuring that it does not overlay on other figures

조회 수: 161 (최근 30일)
Daniel
Daniel 2015년 2월 12일
댓글: Manuel Sabin 2021년 6월 9일
Hi,
I'm sure this functionlaity is there somewhere, but I cannot find it. Is there a way to create a figure maikng certain that it does not occlude a given other figure (or group of them?)
I know I could write a script for this, but I have the impression there is some native capacity for this functionality...
thanks daniel

답변 (1개)

Grace
Grace 2015년 2월 13일
Hi Daniel! In order to create a new figure for each of the plots, you will need to type 'figure' into the script for each time you want a new plot. For example
x = [2 3 4 7 9 4] y = 6*x
figure
plot(x, y, '-*') grid on % title title('x vs y');
% Create xlabel xlabel('x');
% Create ylabel ylabel('y');
figure
x = [2 3 4 7 9 4] y = 6*2*x
plot (2*x,y, '-*') grid on % title title ('2x vs y');
% Create xlabels xlabel('2x');
% Create ylabels ylabel('y');
% Typing in 'figure' before plotting each graph ensures that a new figure window will appear with the values that you list below it. If you do not type in 'figure' each time the graph and data will continue to re-write itself. I hope I answered your question and interpreted it right! % Good luck!
  댓글 수: 2
Manuel Sabin
Manuel Sabin 2021년 6월 9일
For some reason ever though I have a figure(1) with two subplots, and a figure (2) that should be on its own, it has places figure(2) in the second sub plot. When I rename it figure(3) it still does it.
Manuel Sabin
Manuel Sabin 2021년 6월 9일
I fixed it. Each subplot needed a figure num

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by