Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Eleni T
Eleni T le 12 Jan 2023
Commenté : Dongyue le 18 Jan 2023
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 commentaire
Dongyue
Dongyue le 18 Jan 2023
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Event Functions dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by