I'm trying to introduce data through GUIDE like a vector. I get an error on the function in which the vector is introduced. The error is the following:
Undefined function or variable 'varargin'.
Error in m (line 3)
s_lz=varargin{1};
Error in Interface_for_optimal_values_1>pushbutton1_Callback (line 34)
[Result,Inp,lz,nu,str,c_,f0,fk]=m(hObject,eventdata,handles);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in Interface_for_optimal_values_1 (line 16)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Interface_for_optimal_values_1('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
The GUI's code is the following:
function pushbutton1_Callback(hObject, eventdata, handles)
handles.s_lz=double(handles.lz0):double(handles.lz_step):double(handles.lzf);
handles.s_nu=double(handles.nu0):double(handles.nu_step):double(handles.nuf);
[Result,Inp,lz,nu,str,c_,f0,fk]=m(hObject,eventdata,handles,varargin);
and the function's code:
function [Result,Inp,lz,nu,str,c_,f0,fk]=m(hObject,eventdata,handles,varargin)
s_lz=varargin{1};
s_nu=varargin{2};
s_srt=varargin{3};
s_ak=varargin{4};
s_c=varargin{5};
s_c_k_koef=varargin{6};
s_f0=varargin{7};
s_fk=varargin{8};
0 Comments
Sign in to comment.