plotting graph and mark points

2 visualizaciones (últimos 30 días)
Silpa K
Silpa K el 15 de Sept. de 2019
Comentada: Walter Roberson el 22 de Feb. de 2021
Hi, I have a set A that contain 200 points and a subset of the set B.I need to graph the A and I need to mark the points in the set B in A.I can't mark those points correctly.Please help me.
  3 comentarios
dpb
dpb el 15 de Sept. de 2019
Answer moved to Comment...dpb
I use a ucr time series data set.I extract some points based on a condition.The extracted points I need to mark in the original set.I use the plot function.
dpb
dpb el 15 de Sept. de 2019
I don't know what "ucr" means, not do you say a thing useful to help us know what, specifically you have done nor what "a condition" is...POST CODE and DATA, not just words....

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de Sept. de 2019
d = xlsread('FaceFour_TRAIN.xlsx');
plot(d);
hold on
idx = find(d>0.04);
pointsize = 20;
scatter(idx, d(idx), pointsize, 'b', '*')
hold off
  15 comentarios
Walter Roberson
Walter Roberson el 18 de Sept. de 2019
s = d(1:1,2:end);
fa = movstd(s,20,1);
secarray = movstd(fa,20,1) ;
secidx = find(secarray>.04);
f = secarray(secidx);
[maxvals, maxidx] = maxk(f,10);
sidx = secidx(maxidx);
x = 1:length(s);
plot(x, s, 'b-', sidx, s(sidx), 'go')
Silpa K
Silpa K el 18 de Sept. de 2019
thank you very much sir.

Iniciar sesión para comentar.

Más respuestas (2)

Silpa K
Silpa K el 16 de Sept. de 2019
d = xlsread('FaceFour_TRAIN.xlsx')
f=d(d>.04);
plot(d)
I need to mark the f in d and the d I need to represent like a single plot.How it possible please help me.

inusah alhassan
inusah alhassan el 21 de Feb. de 2021
s = d(1:1,2:end);
fa = movstd(s,20,1);
secarray = movstd(fa,20,1) ;
secidx = find(secarray>.04);
f = secarray(secidx);
[maxvals, maxidx] = maxk(f,10);
sidx = secidx(maxidx);
x = 1:length(s);
plot(x, s, 'b-', sidx, s(sidx), 'go')
  1 comentario
Walter Roberson
Walter Roberson el 22 de Feb. de 2021
This does not appear to be an answer to the user's question?

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics 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