subplot, and axes gui error
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
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 Center 和 File Exchange 中查找有关 Subplots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!