![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1654116/image.png)
Simulink Vector to PS vector conversion
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
In my simulation I have a vector signal coming from simulink domain. I want to give the signal to different blocks in PS domain. Something like shown below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1644841/image.png)
This gives me an error :
Error in port widths or dimensions. 'Output Port 1' of 'untitled/Constant' is a one dimensional vector with 3 elements.
Error in port widths or dimensions. 'Input Port 1' of 'untitled/Simulink-PS Converter' is a one dimensional vector with 1 elements.
Any suggestions on how to extract simulink vector/array in different PS signals?
0 件のコメント
回答 (1 件)
Abhinav Aravindan
2024 年 3 月 28 日
It is my understanding that you would like to extract a Simulink vector elements and use them as inputs for different PS signals. A possible workaround is to use “Demux” to extract the vector elements and use separate “Simulink-PS Converter” blocks for each element.
A sample model illustrating the approach is provided below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1654116/image.png)
A similar MATLAB Answers query has been addressed in the following link for your reference.
Please find below relevant documentations for further detail.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!