我在matlab中有一个非常简单的电路.
有一个100 V峰值的电压源.两个电阻都是100欧姆.如果我看到display
框中的电压,它会显示出来36.476 V
但在TESTV
矩阵中它显示了25.1761
V.
它为什么不同?
这是对话框的属性 TESTV
取抽取为1
请参阅此链接 Matlab 帮助链接
For example, suppose you have a simulation where the start time is 0, the Limit data points to last is 100, the Decimation is 1, and the Sample time is 0.5. The To Workspace block collects a maximum of 100 points, at time values of 0, 0.5, 1.0, 1.5, ..., seconds. Specifying a Decimation value of 1 directs the block to write data at each step.
我将抽取设为 1,并且在工作区和矩阵中得到相同的值