Hellow,
I'm trying to use the explanation of the following link to link through csv, matlab and metatrader. https://www.mql5.com/es/articles/1489
I made the first steps, but when entering the code:
% --- Executes on button press in pushBrowse.
function pushBrowse_Callback(hObject, eventdata, handles)[fileName, filePath] = uigetfile('*.txt'); % receive and the path from the user
if fileName==0 % if it is canceled
fileName=''; % create an empty name
filePath=''; % create an empty path
endfullname = [filePath fileName] % form a new name
set(handles.editPath,'String', fullname); % write in the editPath
It gives me the following error:
fullname =H:\FXPRO4\MQL4\Files\EURUSD.txtAttempt to reference field of non-structure array.Error in FromfTo>pushBrowse_Callback (line 107)set(handles.editPath,'String', fullname); % write in the editPathError in gui_mainfcn (line 96) feval(varargin{:});Error in FromfTo (line 42) gui_mainfcn(gui_State, varargin{:});Error in@(hObject,eventdata)FromfTo('pushBrowse_Callback',hObject,eventdata,guidata(hObject))Error while evaluating uicontrol Callback
Therefore, the first step towards choosing the file path is blocked by pressing the Browse button
Anyone know what's wrong?
Thank you very much
Best Answer