Why trapz is giving me negative area?
Hey all,
I have two vectors, frequency and power. I’m trying to get the area under the curve of the power plot but it ends up giving me a negative value. When I do trapz(power) alone, it’s a positive value. diff(freq) is also positive. I’m attaching the data for your reference. Thanks!Hey all,
I have two vectors, frequency and power. I’m trying to get the area under the curve of the power plot but it ends up giving me a negative value. When I do trapz(power) alone, it’s a positive value. diff(freq) is also positive. I’m attaching the data for your reference. Thanks! Hey all,
I have two vectors, frequency and power. I’m trying to get the area under the curve of the power plot but it ends up giving me a negative value. When I do trapz(power) alone, it’s a positive value. diff(freq) is also positive. I’m attaching the data for your reference. Thanks! integral, trapz MATLAB Answers — New Questions