Chiamata MATLAB Function zero-cross detection

4 vues (au cours des 30 derniers jours)
leonardo romanelli-niro
leonardo romanelli-niro le 28 Mai 2018

Salve, Volevo sapere come si fà per eseguire il MATLAB function ogni volta che un segnale passa per lo zero. Inoltre quando viene chiamato il MATLAB function deve eseguire il codice per una volta sola e mantenere i valori delle variabili ottenute fino alla chiamata successiva. Grazie

  1 commentaire
Image Analyst
Image Analyst le 28 Mai 2018
"Hi, I wanted to know how to do the MATLAB function every time a signal goes through zero. Furthermore, when the MATLAB function is called, it must execute the code for a single time and keep the values of the variables obtained until the next call. Thank you"
Do you have the entire signal? Or are you just getting one element at a time, like you're reading a voltmeter or some other instrument "live"?

Connectez-vous pour commenter.

Réponses (1)

leonardo romanelli-niro
leonardo romanelli-niro le 28 Mai 2018
Sto leggendo da un amperometro (Current Measurement). Il segnale è una corrente alternata

Community Treasure Hunt

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

Start Hunting!