How to convert a multidimensional array into an acceptable string for Simulink.Signal initialization?
Afficher commentaires plus anciens
I need to initialize a Simulink.Signal with a 4-D array:
Q_dro.DataType = 'double';
Q_dro.Dimensions = [101 5 61 3];
Q_dro.Complexity = 'real';
Q_dro.InitialValue = 'tmp.Q_dro';
The 'tmp.Q_dro' is the name of a 4-D array, but the Simulink.Signal.InitialValue needs string scalar as its input, so I don't know how to convert this multidimensional array into an acceptable string. Since its dimensions could be multidimension, so I guess it's actually available but I have no idea how to achive it. Hope to get answer, sincerely thanks:)
2 commentaires
Fangjun Jiang
le 17 Avr 2023
Not sure if you need a Simulink.Signal object or a Simulink.Parameter object.
I've experienced at most 2-D signals (e.g. front/rear, left/right wheel speeds). Otherwise, multiple dimensional sigal comes in as a bus, which is nested in strucutre, but not in 3-D or 4-D.
tux tu
le 18 Avr 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur String dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!