Files
ece210/hw4/inflections.m
2025-03-24 00:43:09 -04:00

6 lines
165 B
Matlab

function [y_inf, x_inf] = inflections(y, x)
y_switch = switchsign( deriv(deriv(y, x), x) );
y_inf = nonzeros(y_switch .* y);
x_inf = nonzeros(y_switch .* x);
end