简体   繁体   English

MATLAB 未定义 function 错误

[英]MATLAB Undefined function error

I tried running the following image compression code on matlab. It was running properly with no errors up til yesterday.我尝试在 matlab 上运行以下图像压缩代码。直到昨天它运行正常,没有错误。 But today when I tried to run it, It gave me errors regarding undefined function imshow, wavedec2, etc.但是今天当我尝试运行它时,它给了我关于 undefined function imshow、wavedec2 等的错误。

ERRORS:错误:

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

I checked the various toolboxes I have by VER command and Image processing toolbox is in it!我通过VER命令检查了我拥有的各种工具箱,图像处理工具箱就在其中!

This has happened with me before.这以前发生在我身上。 But the program then, ran afterwards.但是程序随后运行了。

PROGRAM:程序:

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

I'm guessing that you are running a version of matlab that must check those toolboxes out from a central repository.我猜您正在运行 matlab 版本,该版本必须从中央存储库中检出这些工具箱。 If so, and there are currently too many people using that specific toolbox, then matlab does not assign you a license.如果是这样,并且当前有太多人使用该特定工具箱,则 matlab 不会向您分配许可证。 We had this problem in the past.我们过去遇到过这个问题。 The only fix when it happened too often was to get the admin person to buy more licenses of that toolbox, or to run at an hour when others had released their license.如果它经常发生,唯一的解决办法是让管理员购买该工具箱的更多许可证,或者在其他人发布许可证的一个小时运行。

John约翰

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM