System of equations Simulink

1 次查看(过去 30 天)
Lenin Cruz
Lenin Cruz 2019-8-28
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by