The input and output from each systems are a vector which has 2 values(flow and temperature). I want to know how to put the vector in the model for the simulations. As of now the values that are to be taken for simulation can be 1
How to create a vector in simulink? I have given an input which has 2 values, one is flow and another is temperature. I don't know how to simulate this model, Kindly, help me
조회 수: 103 (최근 30일)
이전 댓글 표시
답변 (1개)
Paul
2022년 9월 4일
Vector signals are commonly created in one of two ways.
Define the parameters of any source block such that it ouputs a vector signal. That vector signal then propogates downstream. For example, setting the Amplitude parameter of the Sine Wave block to [1 2] wll cause the ouptut to be a vector signal of time with two sine waves, the first the amplitude 1 and the second with amplitude 2.
Or, use the Mux block to comonbine two or more signals (scalar or vectors) into a vector ouput that propagates downstream.
If neither of these are the solution, more info will be needed on the specific problem.
댓글 수: 6
Paul
2022년 9월 5일
Yes, the output of the inport should have two elements. As previously stated, the way to ensure that depends on whether the inport is in the top level of the model or in a subsystem. I can't show how to do that because I don't know enough about the model.
When it's all hooked together correclty, y will also have two elements. I don't think anything in particular will need to be done for that.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!