uploaded all materials
This commit is contained in:
5
hw4/extrema.m
Normal file
5
hw4/extrema.m
Normal file
@@ -0,0 +1,5 @@
|
||||
function [y_ext, x_ext] = extrema(y, x)
|
||||
y_switch = switchsign( deriv(y, x) );
|
||||
y_ext = nonzeros(y_switch .* y);
|
||||
x_ext = nonzeros(y_switch .* x);
|
||||
end
|
||||
Reference in New Issue
Block a user