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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Type Identification에 대해 자세히 알아보기

태그

질문:

2013년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by