Prev: targets for neural network
Next: solutions book
From: Zubia on 24 Jul 2010 01:23 "Zubia " <zubi024(a)hotmail.com> wrote in message <i2d2mk$3vr$1(a)fred.mathworks.com>... > Walter Roberson <roberson(a)hushmail.com> wrote in message <i2d1oq$a24$1(a)canopus.cc.umanitoba.ca>... > > Zubia wrote: > > > there is an external function of load image an in my GUI there is a > > > button of load image and axis...i want that if i press that button a > > > dialog appear to select an image and after selecting it will appear on axis > > > > > this is call back behind button > > > function pushbutton15_Callback(hObject, eventdata, handles) > > > > > > [image1]=loadimage; > > > > You load the image into an array, but you fail to display the image. See the > > documentation for image() and imagesc() > > > I tried alott butt i cant get solution plzz can u write the code here LIST OF ERRORS Error using ==> feval Undefined command/function 'text1_CreateFcn'. Error in ==> gui_mainfcn at 75 feval(varargin{:}); Error in ==> main at 44 gui_mainfcn(gui_State, varargin{:}); ??? Error using ==> struct2handle Error while evaluating uicontrol CreateFcn. ?? Undefined function or variable 'loadimage'. Error in ==> main>pushbutton15_Callback at 158 [image1]=loadimage; Error in ==> gui_mainfcn at 75 feval(varargin{:}); Error in ==> main at 44 gui_mainfcn(gui_State, varargin{:}); ??? Error while evaluating uicontrol Callback.
From: Zubia on 24 Jul 2010 01:28 "Zubia " <zubi024(a)hotmail.com> wrote in message <i2dtbp$f3r$1(a)fred.mathworks.com>... > "Zubia " <zubi024(a)hotmail.com> wrote in message <i2d2mk$3vr$1(a)fred.mathworks.com>... > > Walter Roberson <roberson(a)hushmail.com> wrote in message <i2d1oq$a24$1(a)canopus.cc.umanitoba.ca>... > > > Zubia wrote: > > > > there is an external function of load image an in my GUI there is a > > > > button of load image and axis...i want that if i press that button a > > > > dialog appear to select an image and after selecting it will appear on axis > > > > > > > this is call back behind button > > > > function pushbutton15_Callback(hObject, eventdata, handles) > > > > > > > > [image1]=loadimage; > > > > > > You load the image into an array, but you fail to display the image. See the > > > documentation for image() and imagesc() > > > > > > I tried alott butt i cant get solution plzz can u write the code here > > LIST OF ERRORS > > Error using ==> feval > Undefined command/function 'text1_CreateFcn'. > > Error in ==> gui_mainfcn at 75 > feval(varargin{:}); > > Error in ==> main at 44 > gui_mainfcn(gui_State, varargin{:}); > > ??? Error using ==> struct2handle > Error while evaluating uicontrol CreateFcn. > > ?? Undefined function or variable 'loadimage'. > > Error in ==> main>pushbutton15_Callback at 158 > [image1]=loadimage; > > Error in ==> gui_mainfcn at 75 > feval(varargin{:}); > > Error in ==> main at 44 > gui_mainfcn(gui_State, varargin{:}); > > ??? Error while evaluating uicontrol Callback. PLZZZ make it run... i hav to show it to my teacher
From: Prashant Somani on 24 Jul 2010 08:06 Please send all files in attachement.
From: Zubia on 24 Jul 2010 15:24 "Zubia " <zubi024(a)hotmail.com> wrote in message <i2d0sh$arv$1(a)fred.mathworks.com>... > there is an external function of load image an in my GUI there is a button of load image and axis...i want that if i press that button a dialog appear to select an image and after selecting it will appear on axis > > THIS IS EXTERNAL FUNC > function image1=loadimage > % dialog for opening fingerprint files > %Honors Project 2001~2002 > %wuzhili 99050056 > %comp sci HKBU > %last update 19/April/2002 > > [imagefile1 , pathname]= uigetfile('*.bmp;*.BMP;*.tif;*.TIF;*.jpg','Open An Fingerprint image'); > if imagefile1 ~= 0 > cd(pathname); > image1=readimage(char(imagefile1)); > image1=255-double(image1); > > end; > > this is call back behind button > function image1=loadimage > % dialog for opening fingerprint files > %Honors Project 2001~2002 > %wuzhili 99050056 > %comp sci HKBU > %last update 19/April/2002 > > [imagefile1 , pathname]= uigetfile('*.bmp;*.BMP;*.tif;*.TIF;*.jpg','Open An Fingerprint image'); > if imagefile1 ~= 0 > cd(pathname); > image1=readimage(char(imagefile1)); > image1=255-double(image1); > > end; > > > > this is call back behind button > function pushbutton15_Callback(hObject, eventdata, handles) > > [image1]=loadimage; > > > > but itz not working > tell me wat to do > its urgent plzzzzzzzzzz help i submit the file plzz look at it as soon as possible plzz
From: Walter Roberson on 24 Jul 2010 20:16
Zubia wrote: >> I tried alott butt i cant get solution plzz can u write the code here > > LIST OF ERRORS > > Error using ==> feval > Undefined command/function 'text1_CreateFcn'. You have errors in how you used GUIDE. In my experience it is far easier to not use GUIDE at all than to use GUIDE to do anything non-trivial. I am unable to offer assistance with GUIDE. I do note that in your latest version of the program that you posted, you still do not use image() or imagesc() to load the image you have read in. You do, however, have a commented-out line in which you once used imagesc() to display the image. |