System of equations Simulink

1 view (last 30 days)
Lenin Cruz
Lenin Cruz on 28 Aug 2019
Hello,
Just wanted to know if there is a way of solving systems of equations in matlab without using 'syms' (symbolic variables)? I need it for running a model in simulink which implies solving systems of equations but it does not work for symbolic functions. I know this can be solved using coder.extrinsic calling an external .mat file where my syms function is running. (it didn't work for me). However, coder.extrinsic prevents simulink generating code for the .mat file, instead simulink just call it and run it in matlab. Eventually, I will need to generate C code for other applications so using the method explained above will not work for me.
Any suggestions about that? would you rather start thinking about implementing the 'system of equations solving' function in C?
Thanks a lot.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!