I have signal name which is stored in one variable and I want to make that signal as simulink object, could you please help me to create the object
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Girish Jadhav
le 9 Oct 2019
Commenté : Girish Jadhav
le 10 Oct 2019
B{1,1} = 'InportSignal' now I want to make the InportSIgnal as mpt.signal.
So I try like B{1,1} = mpt.signal, but it is not assigning this to InportSignal instead of that it is creating obejct to B{1,1}
that means it is replacing InportSignal.
Please help
0 commentaires
Réponse acceptée
Fangjun Jiang
le 9 Oct 2019
Modifié(e) : Fangjun Jiang
le 9 Oct 2019
eval([B{1,1},'=mpt.Signal;']);
or
mptsignal=mpt.Signal;
assignin('base',B{1,1},mptsignal)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Physical Units dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!