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!