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 (최근 30일)
이전 댓글 표시
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
채택된 답변
Fangjun Jiang
2019년 10월 9일
편집: Fangjun Jiang
2019년 10월 9일
eval([B{1,1},'=mpt.Signal;']);
or
mptsignal=mpt.Signal;
assignin('base',B{1,1},mptsignal)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Physical Units에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!