How can i save matlab struct / class on level 2 matlab s-function ( like pwork) ? level 2 matlab s-function 에서 구조체 저장하는 방법 (pwork 같이 )
Afficher commentaires plus anciens
Hi all,
I have project written by two version of language ( C or matlab )
And i'm trying to imigrate my project to simulink.
In C s-function, I save struct data in p-work vector simply,
but level2 matlab s-function has no feature like that.
Can you help me?
I think s-function will be more compatible with matlab, why is there a feature only in C?
Is it because of the simplicity of the C data structure?
thank you.
I had tried : https://kr.mathworks.com/matlabcentral/answers/163566-how-to-pass-structures-and-strings-to-level-2-s-function
안녕하세요
저는 C / matlab 두가지 언어 버전으로 구현된 프로젝트를 시뮬링크로 이식하고자 합니다.
C s-function에서는 pwork로 간단하게 구조체를 저장할 수 있는데,
matlab s-function 에는 구조체를 저장할수 있는 쉬운 방법이 없는것 같아 질문드립니다.
도움을 받을 수 있을까요?
감사합니다.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Create MATLAB S-Functions 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!