我有一个从GUIDE (PITGUI.m)创建的GUI,它应该将一些简单的输入从GUI传递给一个巴夫洛夫脚本(PITtask.m)作为一个结构。在运行它时,我收到以下错误:
Error: File: PITtask.m Line: 61 Column: 113
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for
mismatched delimiters.[enter link description here][1]
Error in PITGUI>RunExp_Callback (line 271)
PITtask(handles);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in PITGUI (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)PITGUI('R. unExp_Callback',hObject,eventdata,guidata(hObject)) 使用uiwait时出错(第81行)评估DestroyedObject回调时出现错误。
我还为GUI和巴夫洛维安脚本添加了链接。任何帮助都将不胜感激!
劳伦
https://www.dropbox.com/s/8jspl7l233w62ek/PITGUI.m?dl=0 https://www.dropbox.com/s/g3pabwtqs06g4xj/PITtask.m?dl=0
发布于 2018-10-12 03:18:04
要运行你的代码,你还需要发布'PITGUI.fig‘。但是,您发布的错误消息是在'PITtask.m‘的第61行触发的。在第61行,看起来您有跨越多行的命令,但您没有使用省略号(...)指示多行命令
尝试更改:
fprintf(outfile, '%i %s %s %i %i %s \n', InputDataStruct.subn, InputDataStruct.subname, InputDataStruct.subsex,
InputDataStruct.subage, InputDataStruct.nblocks, InputDataStruct.subnote);至:
fprintf(outfile, '%i %s %s %i %i %s \n', InputDataStruct.subn, InputDataStruct.subname, InputDataStruct.subsex,...
InputDataStruct.subage, InputDataStruct.nblocks, InputDataStruct.subnote);https://stackoverflow.com/questions/52670631
复制相似问题