Hi, I want to know knee point of a curve including the process of by 2nd derivative. Can anyone help by creating the script.
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want to calculate knee point of a curve in existing software through 2nd derivative. Can anyone help to create script.
0 comentarios
Respuestas (1)
Star Strider
el 16 de Oct. de 2021
Editada: Star Strider
el 16 de Oct. de 2021
x = linspace(0, 10);
y = exp(-0.1*x) .* sin(x);
D1 = gradient(y) ./ gradient(x);
D2 = gradient(D1) ./ gradient(x);
figure
plot(x, y, x, D1, x, D2)
grid
legend('$y(x)$', '$\frac{dy}{dx}$', '$\frac{d^2y}{dx^2}$', 'Location','best', 'Interpreter','latex')
EDIT — (16 Oct 2021 at 21:22)
I am not certain what the curve is. Additional options (includeing the derivative approach) could be findchangepts or ischange.
.
0 comentarios
Ver también
Categorías
Más información sobre Interpolation 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!