update i tried using str2num used in at the numerator of the tf() and it worked but it somehow doesnt work on the denominator, any ideas on why this is the case?
FP = str2num(get(handles.edit1, 'string'));
ca = str2num(get(handles.edit3, 'string'));
sys1=tf(FP,poly(ca))
sys1a=feedback(sys1, 1, -1);
rs=tf([1], [1 0]);
cs= rs*sys1a;
axes(handles.axes1);
impulse(cs,rs);
grid on
ERROR message:
Error using str2num (line 35)
Input must be a character vector or string scalar.
Error in testing>pushbutton1_Callback (line 132)
ca = str2num(get(handles.edit3, 'string'));
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in testing (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)testing('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.