Switching frequency-determining
Afficher commentaires plus anciens
how i can determin the switching freqency for the inverter coltage output as it show in the scope ,
is there any features in matlab help in this

5 commentaires
Mathieu NOE
le 15 Oct 2020
hi
you mean, you would like to measure the time interval between spikes for positive and negative wave form ?
Ahmad Badran
le 19 Oct 2020
Mathieu NOE
le 19 Oct 2020
hi
if you want to do it directlty in the simulink model , you need to create a counter which is triggered and reset by the pulses. the output of the counter gives you the period between pulses.
The solver must hav fixed sampling frequency
if you can save your simulink data and post process it inside matlab, I can share the example in the attachement.
of course , the frequency resolution depends of your simulink sampling frequency.
in the code , you just have to select a non zero threshold value (positive for the positive peaks detection and negative for .... you have understood !)
hope it helps
Ahmad Badran
le 20 Oct 2020
Mathieu NOE
le 20 Oct 2020
see example attached (R2015a)
the output of the last bloc gives you the period measured between two rising pulses (generated by the hit bloc)
the sampling frequency is 1000 Hz (dt = 1e-3)
Réponses (1)
Rhea Chandy
le 6 Nov 2020
0 votes
Hello Ahmad,
A built-in block that determines the switching frequency of a signal is not available in the Simulink library. This previously answered question may help you get some insight on this.
Catégories
En savoir plus sur Modeling dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
