MATLAB: How to solve ?Error using/Matrix dimensions must agree.’

no lineal

I am working with Matlab app designer, while i was trying to run the interface the program send this message, what is the proble in my code?

Best Answer

Try replacing the line assigning x2 with the following using ./ to get element by element division
y2 = K./(exp((K*x-K*C2))-b);
Related Question