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

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

Antworten (0)

Kategorien

Mehr zu Embedded Coder 支持的硬件 finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 15 Mai 2022

Community Treasure Hunt

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

Start Hunting!