Hey guys, I'm having trouble with this while loop. The plot will not show up. Thanks in advance
clc, clear all
y=0;
x=0;
e=2.718;
while y<=9.8
y=y+(10*(1-e^(-x/4))) x=x+1;
end
x=linspace(0,4,5);
plot(x,y)
looploopsMATLABplotplottingwhile loop
y=y+(10*(1-e^(-x/4))) x=x+1;
Best Answer