combine different data types as a single output and send to workspace

2 ビュー (過去 30 日間)
Eleni T
Eleni T 2023 年 1 月 12 日
コメント済み: Dongyue 2023 年 1 月 18 日
Hello!
I use a bus creator to combine different data types (e.g double, string) in a single output. However, when i try to send this to workspace using the 'to workspace' block, it does not accept different data types. Do you have any other suggestions?
Thanks
  1 件のコメント
Dongyue
Dongyue 2023 年 1 月 18 日
My suggestion is using two ToWorkspace blocks instead of one. ToWorkspace will store data in array, and array can only store data with the same datatype. In MATLAB, items with different datatypes should be stored in cell, but this is not allowed for ToWorkspace block.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by