simulinke with m-file
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
can i make interface between a simulink file and m- file ? simulink the op signal is sin and i need m-file to calculate frequency of signal?
0 commentaires
Réponse acceptée
K E
le 14 Mar 2012
You can run Simulink from the matlab prompt or from within a script using the sim command, and pass the simulation output back to the workspace. For example,
simOut = sim('myModel') ;
See this tutorial and 'Communication between the Matlab’s Command window/workspace and Simulink’s Model window' in this tutorial. In Matlab, you can then calculate the frequency of the output signal.
Plus de 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!