Borrar filtros
Borrar filtros

how to find the change in curve

4 visualizaciones (últimos 30 días)
prashant singh
prashant singh el 25 de Sept. de 2017
Respondida: Image Analyst el 25 de Sept. de 2017
i have plotted a curve on my image. The curve is shown in red. I want to find the jump in my curve with some good algroithm. The area in the curve where i want to detect jump is shown in blue. I have tried to find difference between two point to detect jump but that always does not return me the points in the curve i want(show in blue).
  2 comentarios
Cedric
Cedric el 25 de Sept. de 2017
But you have the red curve as e.g. a row vector already? If so, could you attach it?
prashant singh
prashant singh el 25 de Sept. de 2017
Attaching row vector for the curve.

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 25 de Sept. de 2017
Have you tried findchangepts()?

Más respuestas (1)

Star Strider
Star Strider el 25 de Sept. de 2017
Try this:
D = load('ridx.mat');
ridx = D.ridx;
ridx = max(ridx)-ridx;
x = 1:length(ridx);
dt_ridx = detrend(ridx);
mask = dt_ridx > 27;
figure(1)
plot(x, ridx)
hold on
plot(x(mask), ridx(mask), '-r', 'LineWidth',1.2)
hold off
grid
Here mask is a logical vector that identifies the ‘jump’ region.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by