MATLAB未定义的函数错误

时间:2012-04-10 08:29:50

标签: matlab

我尝试在matlab上运行以下图像压缩代码。它运行正常,直到昨天没有错误。但今天当我试图运行它时,它给了我关于未定义函数imshow,wavedec2等的错误。

错误:

??? Undefined function or method 'wavedec2' for input arguments of type 'uint8'.
Error in ==> wave_project at 45
[c,s]=wavedec2(input_image,n,wname);

??? Undefined function or method 'imshow' for input arguments of type 'uint8'.
Error in ==> wave_project at 17
imshow(input_image);

我通过VER命令查看了各种工具箱,图像处理工具箱就在其中!

之前发生过这件事。但随后该计划开始运行。

方案:

clear all;
close all;

input_imag7e1 = imread('101_1.tif');
input_image=imnoise(input_image1,'speckle',0.01);

figure;

imshow(input_image);

p=input('enter the number of vanishing moments of wavelett M ');
n=input('enter the decomposition level');

wname = strcat('db',int2str(p));
disp(wname);

[c,s]=wavedec2(input_image,n,wname);

1 个答案:

答案 0 :(得分:1)

我猜你正在运行一个必须从中央存储库检查这些工具箱的matlab版本。如果是这样,并且目前有太多人使用该特定工具箱,那么matlab不会为您分配许可证。我们过去遇到过这个问题。经常发生的唯一解决方法是让管理员购买该工具箱的更多许可证,或者在其他人发布许可证的一小时内运行。

约翰