subplot, and axes gui error

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 件)

製品

質問済み:

2012 年 2 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by