How can I combine strings in SIMULINK like in a MATLAB cell array?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi folks,
Imagine I have 3 string constant blocks:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/415978/image.png)
How can I combine them in such a way to get something like a cell array in MATLAB so that there are 3 elements corresponding to the three strings?:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/415983/image.png)
(Note: The three strings may be of different lengths)
(Note2: I should have made it clearer that the rightmost block is a display block)
Thank you,
Rafael
0 件のコメント
採用された回答
Paul
2020 年 11 月 17 日
However, it appears that you can pack them all into a bus if all you need to do is flow them as a group from one portion of your model to another and then unpack them for processing.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!