Hi, I am writing a function to set the string in listbox to concatenate strings vertically. It works well somehow. The problems is that the data cannot be import to workspace and show variables results at command window. The error occur when there is no ';' after each calculation code and the warning message show the error is cause by the code of this function.
function display(handles,string_text) if isnumeric (string_text) string_text = num2str(string_text); end ori_string=get(handles.lstLog,'String'); string_text=sprintf('%s',string_text); set(handles.lstLog,'string',strvcat(ori_string,string_text)); drawnow;
Warning message: ??? Input argument "string_text" is undefined.
Best Answer