Undefined function or variable error

Hi There
I have been using MATLAB R2016a version for a while , it is working perfectly but i need to activate it monthly , I observe undefined function error or variable during my work even though i am sure about the work space and the typed command
for example when i write any command with psnr or immse , it gives me the mentioned error
it was working previously but now i do not know why ?
Kind Regards, Ayidh

 Accepted Answer

Both commands are part of the image processing toolbox. Maybe you have not installed this toolbox in your current version? To check what is installed, type
ver

4 Comments

Hi thorsten,
I have already checked it , the image processing toolbox 9.4 is installed
On my system I get
> which psnr
/Applications/MATLAB_R2015b.app/toolbox/images/images/psnr.m
Have you checked that at the image toolbox is included in your path using path?
And if so, does the directory contains all the files, in particular psnr.m?
And if so, that you have read permission for that file?
ls -l /Applications/MATLAB_R2015b.app/toolbox/images/images/psnr.m
should give something starting with
-r--r--r-- 1
i tried to type which psnr and immse , it seems my version have no license avaliable for
C:\Program Files\MATLAB\R2016a\toolbox\images\images\psnr.m % Has no license available Trial>> which immse C:\Program Files\MATLAB\R2016a\toolbox\images\images\immse.m % Has no license available
so is there any way to solve that or i have to get a version which is not trial
thanks
If you have a trial version you should have asked for all at the toolboxes you need. Otherwise you get only the basic Matlab without any toolboxes.

Sign in to comment.

More Answers (0)

Categories

Asked:

on 16 Aug 2016

Commented:

on 16 Aug 2016

Community Treasure Hunt

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

Start Hunting!