MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] matlab画图,菜鸟请大师帮忙 (https://www.labfans.com/bbs/showthread.php?t=17843)

zhu23897899 2012-10-28 19:04

matlab画图,菜鸟请大师帮忙
 
我的程序编写如下:
我的目的是要获得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)


所有时间均为北京时间。现在的时间是 14:39

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.