Quote (FamilyGuyViewer @ 4 Mar 2018 20:14)
another question is... how do i pull out the aboluste maximum value of a function?
like say I have a u(t), U(t) is supppose to go up down up down like crazy, like a wave.. and i want to pull out the extreme maximum (highest/lowest point)
Say you have the equation y = sin(x)
You would want to plug in a range of values. So you could let:
x = 0 : 0.1 : 2*pi;
then,
y = sin(x);
Then just use,
max(y)
min(y)
and Matlab will give you the min and max for the function (only within the range of values that you input however)