function K = Force(t)if (0 <= t)&&(t < 0.015) K = (58600180.67)*t + 66012.93; elseif (0.015 <= t)&&(t <= 0.0682) K = 945015.64;else K = (-55633369.71)*t + 4739211.454;endplot(t,K)
MATLAB: I am getting an error in the code stating that,”Operands in the operator || and && must be convertible to scalar”. I am very new to programming so can’t really find out where the mistake is
errorlogical errorMATLAB
Best Answer