Strona 1 z 1

Problem z guide Matlab

: 29 paź 2018, o 20:45
autor: shinigacu
Potrzebuję pomocy próbuje stworzyć małe guide połączone ze sobą i właśnie tu wynika problem gdyż kiedy przechodzę z guide w którym znajdują się tylko push button do guide z axesami to wywala mi błąd nie wiem czy ja źle wczytuję pliki guide czy jest coś nie tak z samym wczytywaniem obrazu czy wczytaniem guide proszę o pomoc

Poniżej zamieszczam wczytanie obrazu
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global A FileName
[FileName, PathName ] =uigetfile({'*.jpg;*.tif;*.png;*.gif','All Image Files';...
'*.*', 'All Files (*.*)'}, ...
'Pick a file', ...
'MultiSelect', 'on');
addpath('zdjęcia','FExtraction');

% set(handles.axes1, 'string', 'bla'),

A = imread (FileName);
% axes(handles.axes1);
imshow(A,'Parent',handles.axes1);

oraz wczytanie guide

Kod: Zaznacz cały

 h = findobj('Tag','GPA');

 % if exists (not empty)
 if ~isempty(h)
    % get handles and other user-defined data associated to Gui1
    g1data = guidata(h);

    % maybe you want to set the text in Gui2 with that from Gui1
    set(handles.text1,'String',get(g1data.edit1,'String'));

    % maybe you want to get some data that was saved to the Gui1 app
    x = getappdata(h,'x');
 end
   open Rtg_glowa_PA.fig;

close rtg_glowa