怎么用matlab画同潮图

2025-03-23 05:02:13
推荐回答(1个)
回答1:

1、绘制图像前首先需要得到曲线数据,如下所示即为计算过程: % calculate the first line x1 = 0:0.01:10; y1 = x1.^2; % calculate the second line x2 = 0:0.01:10; y2 = x2; plot(x2,y2); 2、在绘制曲线时常用plot(x,y)函数