필터 지우기
필터 지우기

What is the "-C-" block in this example?

조회 수: 3 (최근 30일)
Achilles Chan
Achilles Chan 2023년 7월 11일
편집: Sudil 2023년 7월 11일
Comparison between SIMULINK/Aerospace and AOCS
what is the "-C-" block?(the PV0 one)
I think its a constant, but dont know what should have inside it,
aslo when I try to give it "1" it will show those error.
Error:Invalid setting for dimensions of input port of 'untitled2/Demux'. The Demux cannot be used to split matrices
Error:Error in port widths or dimensions. 'Output Port 1' of 'untitled2/Integrator1' is a [2x3] matrix.
thanks.
  댓글 수: 1
Nikhil
Nikhil 2023년 7월 11일
The additionla input port in the integrator block is for specifying the intial condition.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sudil
Sudil 2023년 7월 11일
편집: Sudil 2023년 7월 11일
Hi Achilles,
Yes, you are correct that is the constant block.
In your Simulink model, you're using that constant block to set the initial condition of the Integrator block. The error is because of the dimensions of the constant block(1x1) not matching that of the integrator block (2x3).
To fix that, try changing the value of the constant block to a 2x3 array.
Also, you can refer to the documentation to understand how the integrator and the constant blocks work: https://in.mathworks.com/help/simulink/slref/integrator.html

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by