Using mathematica code in Simulink

4 Ansichten (letzte 30 Tage)
Mehrdad
Mehrdad am 26 Mär. 2014
Beantwortet: Kaustubha Govind am 31 Mär. 2014
Hi. I have a code which is written in Mathematica. I am looking for a method to use this code in simulink/Matlab environment. for example is it possible to use the code with S-function or M-function blocks of simulink?? Does anybody has such experience before?
  1 Kommentar
Kaustubha Govind
Kaustubha Govind am 31 Mär. 2014
Received a personal message from Mehrdad which seems related:
I have a problem and hope you could help me by your experience. I am using S-Function builder with C code. I have a problem when I used a C code which is generated from another program (Mathematica). I think If I generate dll function from Mathematica instead of C code and use it in S-Function builder, it would be better. I am using MATLAB 64bit 2013b and Win7. Is it possible and ok?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Guy Rouleau
Guy Rouleau am 27 Mär. 2014

Kaustubha Govind
Kaustubha Govind am 31 Mär. 2014
Yes. it is possible to call C code (both via DLL or from a source .c file) using S-function Builder.

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by