>> Y=[1,2,5,3;3,5,5,2;-2,3,3,4;2,3,2,1];
>> figure(1);
>> area(Y);%以Y的列向量作为y坐标绘图
>> set(gca,'Layer','top');
>> colormap summer;
>> figure(2);
>> area(Y,-2);%以-2为底线画区域图
>> set(gca,'Layer','top');
>> grid on;
>> colormap jet;
https://blog.sciencenet.cn/blog-287000-507876.html
上一篇:
实战---无边缘活动轮廓模型(书Page105,图4.25)下一篇:
绘制二维条形图