matlab错误求解

[复制链接]
查看11 | 回复1 | 2008-5-23 22:08:27 | 显示全部楼层 |阅读模式
帅哥,你的程序是在什么编辑器你编的啊?佩服,我给你改格式都改的快要放弃了:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%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); title('第一次压缩图像'); disp('第一次压缩图像的大小:'); whos('ca1'); axis square; ca2 = appcoef2(c,s, 'bior3.7',2); ca2 =wcodemat(ca2,440, 'mat',0); ca2 =0.25*ca2; subplot(2,2,4);image(ca2); axis square; title('第二次压缩图像'); disp('第二次压缩图像的大小:');whos('ca2'); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%你先把上面的程序在命令行里执行一下看看还有问题吗?
回复

使用道具 举报

千问 | 2008-5-23 22:08:27 | 显示全部楼层
你是把上面的东西copy到m文件里了么?>>是在workspace里显示的,m文件里当然不能有
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行