Combining two figures in MATLAB

조회 수: 3 (최근 30일)
Sarah
Sarah 2011년 10월 20일
Hey everyone. I am trying to combine these two figures together, but it keeps giving me the following error.
??? Error using ==> copyobj Invalid handle
Help would be much appreciated (:
figure(2);
clf;
subplot(1,1,1); plot(TPV1.Num,TPV1.TriSig,'b.-')
datetick('x',26,'keepticks');
grid on;
title('TPV1 v Time - ORIGINAL')
figure(3);
clf;
subplot(1,1,1); plot(TSP1.Num,TSP1.TriSig,'--r')
datetick('x',26,'keepticks');
grid on;
title('TPV1/TSP1 v Time - ORIGINAL')
H = findobj(2,'type','line');
copyobj(L,findobj(3,'type','axes'));
Legend = legend('TPV1','TSP1',2);
set(h,'Interpreter','none')

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 10월 21일
You may just have a typo.
You want to copy H, right? What is L in the copyobj() line?
Also, what is h in the last line?
  댓글 수: 1
Sarah
Sarah 2011년 10월 27일
Yes, it was a typo. Thanks a lot.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by