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=13267)

nin 2011-04-28 08:58

简单的matlab画二维图问题
 
1 个附件
请见附件的图
我画了一个二维图,明明是一一对应的自变量和因变量,为什么前面会有那么多线线,一个自变量对应着多个因变量,请问这是什么原因,怎么画出像后面那样简单的线?代码是
Q=1931/457;
emax=1+1/Q+2*sqrt(1/Q);
emin=1+1/Q-2*sqrt(1/Q);
y=(Q/(2*pi))*sqrt((emaxx-eignuni).*(eignuni-eminn))./eignuni;
plot(eignuni,y,'r--');
axis([0,3,0,1.2]);
eignuni是一个457的向量


所有时间均为北京时间。现在的时间是 12:57

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