MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]matlab中作图遇到的问题 (https://www.labfans.com/bbs/showthread.php?t=3834)

cnhacker 2008-07-07 13:40

[求助]matlab中作图遇到的问题
 
我利用.m 文件输出了下边的一组数据,现在要做出图像 t-v1,v2(t是自变量,v1,v2是两个函数),请问如何实现,谢谢。
t v1 v2
1.0 1.8994 1.8816
2.0 2.4175 2.3745
3.0 2.6438 2.5868
4.0 2.7325 2.6696
5.0 2.7660 2.7007
6.0 2.7784 2.7122
7.0 2.7829 2.7165
8.0 2.7846 2.7180
9.0 2.7852 2.7186
10.0 2.7855 2.7188

未注册 2008-07-09 10:33

>> t=1.0:1.0:10.0;
>> v1=[1.8994 2.4175 2.6438 2.7325 2.7660 2.7784 2.7829 2.7846 2.7852 2.7855];
>> v2=[1.8816 2.3745 2.5868 2.6696 2.7007 2.7122 2.7165 2.7180 2.7186 2.7188];
>> plot(t,v1,t,v2)


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

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