You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x=0:0.01:1;
p = [1 1 1 1];
if (p(4) <0)
p(4)=0; %this variable cannot go below zero
end
if (p(1) > 0)
yth=(p(1)*erfc((p(2)-x)/p(3)))+p(4);
end
if (p(1) < 0)
yth=((-2*p(1))+(p(1)*erfc((p(2)-x)/p(3))))+p(4);
end
plot(x,yth)
The text was updated successfully, but these errors were encountered:
Implement MATLAB code
The text was updated successfully, but these errors were encountered: