【问题标题】:Matlab to workspace and rms value differentMatlab对工作区和rms值不同
【发布时间】:2013-09-10 20:50:33
【问题描述】:

我在 matlab 中有一个非常简单的电路。

有一个 100 V 峰值的电压源。两个电阻如果为 100 欧姆。 如果我在display 框中看到电压,它会显示36.476 V

但在TESTV 矩阵中显示25.1761 V

为什么不一样?

这是TESTV的对话框属性

【问题讨论】:

    标签: matlab simulink


    【解决方案1】:

    Display box 可能显示来自不同时间步的值。我会尝试更改configuration parameters 和步进时间值以及simulation time

    【讨论】:

      【解决方案2】:

      在“To Workspace”块中,Decimation 为 5。这意味着您不会在每个时间步都记录数据。您每 5 个时间步仅记录一次数据。就像 m_power 指出的那样,您可能不会比较同一时间步的值。

      【讨论】:

        【解决方案3】:

        以抽取为 1

        查看此链接 Matlab help link

        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,我在工作区和矩阵中得到相同的值

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2012-10-21
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2022-12-06
          相关资源
          最近更新 更多