![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/835275/image.png)
Plotting only few indices over time series
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
BR
am 15 Dez. 2021
Kommentiert: Mathieu NOE
am 16 Dez. 2021
Hi,
I wanted to highlighted with a different marker may be, over a plot only for a fewer indices over time series.
e.g. for a time series x having size(x) = 400 x 1
plot(x) first and highlight only set of indices y = [28,300,349,388,389] over the original curve.
I tried to find the solutions on mat exchange but couldn't. Any help would do please?
0 Kommentare
Akzeptierte Antwort
Mathieu NOE
am 15 Dez. 2021
hello
my 2 cents suggestion :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/835275/image.png)
n = 1:500;
x = n.*(1+rand(size(n)));
ind = [28,300,349,388,389];
plot(n,x,'b',n(ind),x(ind),'dr','markersize',15);
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!