【发布时间】:2016-03-01 16:05:44
【问题描述】:
我在 Matlab 中绘制了(fy 对 uy)的滞后曲线。我想找到情节的面积。我知道 trapz 命令。但是,就我而言,我没有两个特定的曲线方程。我应该怎么做?
此外,曲线的某些部分位于负值区域。如何确保这些区域不会相互取消?
uy =
1.0e-03 *
[-0.2238
-0.3616
-0.4817
-0.5642
-0.5962
-0.5752
-0.5048
-0.3945
-0.2603
-0.1222
-0.0020
0.0807
0.1129
0.0918
0.0213
-0.0889
-0.2232
-0.3615
-0.4819
-0.5648
-0.5972
-0.5760
-0.5055
-0.3952
-0.2607]
fy =
-0.0000
-1.4886
-2.7506
-3.5939
-3.8900
-3.5939
-2.7506
-1.4886
0.0000
1.4886
2.7506
3.5939
3.8900
3.5939
2.7506
1.4886
-0.0000
-1.4886
-2.7506
-3.5939
-3.8900
-3.5939
-2.7506
-1.4886
0.0000
【问题讨论】:
-
应用格林定理在等高线积分中进行面积计算:en.wikipedia.org/wiki/Green%27s_theorem#Area_calculation
标签: matlab matlab-figure matlab-guide area