pass array to gui in matlab

I want to pass an array to a gui and display each element of that array on axes...the elements are the filenames of images...I have written a piece of code...this is my xyz.m file from which i want to pass an array "result" to a gui result_image.m
result_image(result);
In opening_fn of the gui i wrote...
result = varargin{1};
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
%axes(handles.axes1);
%imshow(im2fn);
for jj = 1:length(result)
axes(handles.axesjj);
imshow(result(jj));
I am getting an error as str2func Invalid function name ''
I dunno what is '' here and also iam getting the error on line
result_image(result);

Réponses (0)

Catégories

En savoir plus sur Data Type Identification dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by