zhu23897899
2012-10-28, 19:04
我的程序编写如下:
我的目的是要获得d为x轴,T为y轴的图像,但是运行后是一条水平线,请高手帮忙
clear
clc
M=120;
K=1;
T=M*K;
d=30:5:160;
while T<2000-K*d;
K=K+1;
T=M*K;
end
plot(d,T)
我的目的是要获得d为x轴,T为y轴的图像,但是运行后是一条水平线,请高手帮忙
clear
clc
M=120;
K=1;
T=M*K;
d=30:5:160;
while T<2000-K*d;
K=K+1;
T=M*K;
end
plot(d,T)