matlab错误求解

来源:百度知道 编辑:UC知道 时间:2024/06/17 17:21:50
>>X=(‘wyz.jpg’);
>>save ;
>>imshow(X);
>>clear;
>>load ;
>>subplot(2,2,1);image(X);
>>title(‘原始图像’);
>>disp(‘原始图像X的大小:’);
>>axis square;

>>[c,s]=wavedec(X,2, ‘bior3.7’);
>>cal = appcoef2 (c,s,‘bior3.7’,1);
>>ch1 = detcoef2(‘h’,c,s,1);
>>cv1 = detcoef2(‘v’,c,s,1);
>>cd1 = detcoef2(‘d’,c,s,1);
>>a1 =wrcoef2(‘a’,c,s, ‘bior3.7’,1);
>>h1 =wrcoef2(‘h’,c,s, ‘bior3.7’,1);
>>v1 =wrcoef2(‘v’,c,s, ‘bior3.7’,1);
>>d1 =wrcoef2(‘d’,c,s, ‘bior3.7’,1);
>>c1 = [a1,h1;v1,d1];
>>subplot(2,2,2);image(c1);
>>axis square;
>>title(‘分解后低频和高频信息’);

>>cal = appcoef2 (c,s,‘bior3.7’,1);
>>ca1 =wcodemat(ca1,440, ‘mat’,0);
>>ca1 =0.5*ca1;
>>subplot(2,2,3);image(ca1);

帅哥,你的程序是在什么编辑器你编的啊?佩服,我给你改格式都改的快要放弃了:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
X=('wyz.jpg');
save ;
imshow(X);
clear;
load ;
subplot(2,2,1);image(X);
title('原始图像');
disp('原始图像X的大小:');
axis square;
[c,s]=wavedec(X,2, 'bior3.7');
cal = appcoef2 (c,s,'bior3.7',1);
ch1 = detcoef2('h',c,s,1);
cv1 = detcoef2('v',c,s,1);
cd1 = detcoef2('d',c,s,1);
a1 =wrcoef2('a',c,s, 'bior3.7',1);
h1 =wrcoef2('h',c,s, 'bior3.7',1);
v1 =wrcoef2('v',c,s, 'bior3.7',1);
d1 =wrcoef2('d',c,s, 'bior3.7',1);
c1 = [a1,h1;v1,d1];
subplot(2,2,2);image(c1);
axis square;
title('分解后低频和高频信息');
cal = appcoef2 (c,s,'bior3.7',1);
ca1 =wcodemat(ca1,440, 'mat',0);
ca1 =0.5*ca1;
subplot(2,2,3);image(ca1);