GUI中axes控件​显示多幅图像(使用s​ubplot函数)后​无法再显示单幅图像,​原因是axes的控件​已删除,求解决办法?​谢谢

5 views (last 30 days)
海煜 秦
海煜 秦 on 15 May 2022
A=img; %读取一个图片
A=rgb2gray(A);
[cA1,cH1,cV1,cD1]=dwt2(A,'haar');%小波变换图像
global h1 h2 h3 h4;
axes(handles.axes2);
h1=subplot(221);imshow(cA1,[]);
h2=subplot(222);imshow(cH1,[]);
h3=subplot(223);imshow(cV1,[]);
h4=subplot(224);imshow(cD1,[]);
axes(handles.axes2);%想显示另一个图像
imshow(A);

Answers (0)

Categories

Find more on Embedded Coder 支持的硬件 in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!