From: us on 8 Aug 2010 12:08 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <19b8dd1a-4fcc-4136-b4f1-503781cfed00(a)w30g2000yqw.googlegroups.com>... > Talal: > I absolutely agree with the others. It is most likely that you have > an imresize.m file somewhere in your path that is not the official > one. Using the which command will find it. To get that error, the > only way I'm aware of is that you don't have this: > function [B,map] = imresize(varargin) > as the first (non-commented) line in the m-file. Two possibilities: > 1. Someone took out that line from the official imresize by deleting > the line or commenting it out, or > 2. You have another imresize.m somewhere on your path that is also > missing that function line. > If that function line is missing, then MATLAB will consider the m-file > as a simple script, which is unable to take arguments. If you call it > with arguments, then you'll get your error message. > > To solve #1, put the cursor in your imresize and type control-D to > bring up the source code. Then look for the function line. If it's > not at the top of the file, then that's your problem. > For #2, if you don't find imresize.m's evil twin using the which > command, then just use your operating system's file search capability > to search your entire hard disk. > -ImageAnalyst however, make sure that your tbx ver corresponds with your ML ver... just using any old IMRESIZE won't work... us |