I want to show my total sample time (H:M:S) in an edit box in Matlab GUI. Here is my code:
samplingrate=200; totalmtime_sec=length(result)/samplingrate; format short; % because totalmtime_sec = 3.000e+3 -> may give error?
makinginteger= round(totalmtime_sec); makinginteger totalmtime = secs2hms(makinginteger); set(handles.edit6,'string' , totalmtime);
Although the variable "makinginteger" is 3000, I get this error:
>>makinginteger = 3000Undefined function 'secs2hms' forinput arguments of type 'double'.
Can anybody fix it? Thanks in advance!
Best Answer