Hello everyone, I'm creating a code for plotting a function. If I use such function with a proper code it works; however in the GUI, with the same input, I receive the following message:
"Nonfinite endpoints or increment for colon operator in index"
The line of the code is:
q(1:(lf1-1))=qr1*(f(1:(lf1-1))/fr1).^s1;
where lf1 is given by: lf1=round(ft1/delf)+1 (delf is computed inside the function, it isn't 0)
I obtain the input from another gui in the following format:
ft1=str2double(getappdata(0,'ft1'));
Thanks in advance
Best Answer