필터 지우기
필터 지우기

subplot, and axes gui error

조회 수: 1 (최근 30일)
Paolo Rossi
Paolo Rossi 2012년 2월 23일
i have write two version of the same algoritm to visualize a matrix but in one case it doesen't work:
CASE 1) RUNNING OK
subplot(1,6,2)
waterfall(phid,1:NLINEE,ZRAV1_10); shading flat
set(findobj('Type','patch'),'linewidth',24)
axis ([-200 200 0 NLINEE+1])
drawnow
where:
phid = -pi:pi/60:((pi)-(pi/60));
NLINEE = 16;
ZRAV1_1 = 16 X 120 initializaterd at 0
CASE 2) NOT WORK ERROR MESSAGE CAT
ax2 = axes('Box','on',...
'XMinorTick','on',...
'Fontsize',8,...
'Position',[0.24 0.35 0.14 0.6],...
'Xlim',[-200 200],...
'Ylim',[0 17],...
'Xtick',-180:60:180,...
'CLim',[0 1],...
'NextPlot','replacechildren');
waterfall(ax2,phid,1:NLINEE,ZRAV1_10); shading flat
set(findobj('Type','patch'),'linewidth',24)
axis ([-200 200 0 NLINEE+1])
drawnow
any idea ?
thanks
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 2월 23일
Is the error on the waterfall() call?
Which MATLAB version are you using?
Image Analyst
Image Analyst 2012년 2월 23일
It worked for me. No error message once I changed ZRAV1_1 to ZRAV1_10 and got rid of the blank line in the ax2 line. Even before then I never got any sort of "cat" error message.

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

답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by