I have received this error message, but I am not using an infinite loop:
function [t_winding,pc,pe] = fcn(ta,tw,net_torque,motor_speed)tm = 0.5*(ta+tw);B = 1.32-0.0012*(tm-293);i = 0.561*B*net_torqueR = 0.0575*(1+0.0039*(tw-293));pc = 3*i^2*R;pe = (9.602e-06*(B*motor_speed)^2)/R;t_winding = 0.455*(pc+pe)+ta; if (abs(t_winding-tw)) > 1 [t_winding,pc,pe] = fcn(ta,t_winding,net_torque,motor_speed); endend
Best Answer