Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matlab to workspace and rms value different

I have a very simple circuit in matlab. enter image description here

There is a voltage source of 100 V peak. Both resistance if of 100 ohm. If I see the voltage in display box, it shows 36.476 V

But in the TESTV matrix it shows 25.1761 V

Why is it different?

This is the dialog properties of TESTV testv

like image 319
Santosh Avatar asked Sep 06 '13 17:09

Santosh


2 Answers

Take the decimation as 1

See this link 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.

I took the decimation as 1 and I got same values in workspace and in matrix

testv

like image 113
Santosh Avatar answered Sep 19 '22 21:09

Santosh


The Display box probably show the value from a different time step. I would try changing the configuration parameters and the step time values and the simulation time.

like image 35
m_power Avatar answered Sep 20 '22 21:09

m_power