How can I add markers into my plot?

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

Birdman
Birdman 2018년 4월 5일
Can you share your data in a mat file?
Patrik Soukup
Patrik Soukup 2018년 4월 5일
I definitely can, but I´m not sure what exactly do you want me to share. This plot is a part of fft transformed from 9M current instantaneous values. So what exactly do you need sir? :)
Birdman
Birdman 2018년 4월 5일
I need the transformed data.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 4월 5일
편집: Walter Roberson 2018년 4월 5일

0 개 추천

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

Patrik Soukup
Patrik Soukup 2018년 4월 5일
편집: Patrik Soukup 2018년 4월 5일
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Blue에 대해 자세히 알아보기

태그

질문:

2018년 4월 5일

편집:

2018년 4월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by