How can I add markers into my plot?

11 visualizaciones (últimos 30 días)
Patrik Soukup
Patrik Soukup el 5 de Abr. de 2018
Editada: Patrik Soukup el 5 de Abr. de 2018
Hallo everyone,
I would like to ask you how to add some kind of marker to hightlight an area I want to emphasize. I´m trying to plot a signal in frequency domain via below and I would like to add some thin line (or something like that) on...lets say 49,4 Hz and on about 20 other frequency values. There´s probably a way to draw it line by line, but I´m looking for some easier way, because I´m about to do the same on about 10 other plots.
Thanks in advance,
Patrik
  4 comentarios
Birdman
Birdman el 5 de Abr. de 2018
I need the transformed data.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 5 de Abr. de 2018
Editada: Walter Roberson el 5 de Abr. de 2018
If you have the stats toolbox then perhaps use refline()
You could also consider using fill() and setting the AlphaData of the returned patch to make it semi-transparent.
  1 comentario
Patrik Soukup
Patrik Soukup el 5 de Abr. de 2018
Editada: Patrik Soukup el 5 de Abr. de 2018
Thanks for your answer sir, but unfortunately I´m kind of new to Matlab and I don´t know what stats toolbox is. In fact, I would highly appreciate some code (example) to start with other those from help.

Iniciar sesión para comentar.

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by