How can we use structures stored in workspace for Embedded function ?
조회 수: 8 (최근 30일)
이전 댓글 표시
hi all,
My question is that how we can use those structure variables that are in workspace as Inputs for the Embedded function ? I'd like to use "mapstd" at the Embedded function but as you know, it needs a structure variable. suppose:
[p,stdp]= mapstd(....); RR.w =[80x2]; RR.s = 12;
Now : we have "stdp" and "RR" as structures. I'd like to use this structure for my Embedded function block. how can I import these structure to the Embedded function ?
thank for replying
댓글 수: 0
채택된 답변
Arnaud Miege
2011년 3월 28일
Have a look at Working with Structures in the Embedded MATLAB documentation and Working with Structures and Bus Signals in the Simulink documentation.
Note that mapstd isn't part of the Embedded MATLAB subset, so you will need to declare it as an extrinsic function (see the doc for eml.extrinsic).
HTH,
Arnaud
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!