x = linspace(0,8.7,1000)a = zeros (1,1000)b = zeros (1,1000)c = zeros (1,1000)d = zeros (1,1000)hold on;grid on;%////////////////////////////////////////////////Fall 1///////////////////
figure(1);for i = 1:1000a(i) = 6.5*4000./((6.5-x(i)));b(i) = 10500c(i) = 6.5*9500./((x(i)));d(i) = 500./(x(i)-6.5);if a(i)<b(i)plot(x,a,'.')endif d(i)<c(i)<b(i)plot(x,c,'.')endif d(i)<c(i)plot(x,d,'.')endplot(x,b,'.')endaxis([0 10 0 12000])
MATLAB: Does this split of the plot lines doesn’t work
elseif statementplot
Best Answer