MATLAB: Put the fit messenge on text box

fit

I want to build up a fit gui,how can i put the fit messenge(cfit) on the text box.

Best Answer

Assuming your textbox handle is handles.textbox, and c is the cfit object,
cText = evalc('c');
handles.textbox.Max = 2; % this allows for multiple lines of text
handles.textbox.String = cText;