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 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Girish Jadhav
il 9 Ott 2019
Commentato: Girish Jadhav
il 10 Ott 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 Commenti
Risposta accettata
Fangjun Jiang
il 9 Ott 2019
Modificato: Fangjun Jiang
il 9 Ott 2019
eval([B{1,1},'=mpt.Signal;']);
or
mptsignal=mpt.Signal;
assignin('base',B{1,1},mptsignal)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Physical Units in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!