how to call m-file in block simulink model???
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
i have written the m-file to solve numerically a system of 4 partial differential equations which represent the infrared food dryer, and i have gotten result from that. the m-file that i wrote for this system has 4 function, one is for initial conditions of the equations, one is for the boundary conditions of the equations , one function is for main factors of the equations and last function gather all these functions and sole the equations. now , i want to connect a controller to this dryer in order to control the temperature of the emitter, so i need to put the m-file solution of the PDEs in the block simulink in order to connect with the controller block. i used s-function and matlab function to do that, but i got errors and i couldn't get result from that.
0 Commenti
Risposta accettata
David Sanchez
il 10 Mag 2013
I think you are doing something wrong. I've been using m-files in Simulink to avoid the extra work of block-building what I have in a m-file, and some times it gets tricky, but if done with care, it should work. Since you do not give more info on how you are doing what you are doing, I can not help you out more. Check that your functions are in the proper directory and rightly linked.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su PDE Solvers in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!