Effacer les filtres
Effacer les filtres

How to plot horizontal line with waveform like the green line in the photo

2 vues (au cours des 30 derniers jours)
john m
john m le 19 Mar 2021
Commenté : Mathieu NOE le 19 Mar 2021
How i plot like the green line in the photo

Réponses (1)

Mathieu NOE
Mathieu NOE le 19 Mar 2021
hi
looks like this would be the RMS value of the signal; so you simply have to calculate that rms value and plot it with the same length as your x vector
  2 commentaires
john m
john m le 19 Mar 2021
No it is not the RMS it is just a value. And how i plot in the same figure of the wave ? Can you write the code pl?
Mathieu NOE
Mathieu NOE le 19 Mar 2021
something like
plot(xData,yData,'b',xData,my_value*ones(length(xData)),'g')

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by