Slow simulation due to extrinsic function.
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello;
Greetings.
I am kindly seeking a solution to my problem of slow simulation in simulink. I have a simulink model consisiting of a created block (PVT) built based on a MATLAB function that calls an extrinsic function (PVT.m) on each execution. My probable solution would be to eliminate the extrinsic function and have it in one MATLAB function. However, some inbuilt functions (like vpasolve and fsolve) that I call to solve the variables can only be accomodated in the extrinsic function since they are not supportd for code generation. That is why I had to create an extrinsic function that is called on each execution. Therefore, any idea or suggestion is highly welcome to solve the problem. Thank you.
Attached is the model and extrinsic function.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!