Retrieving RMS of a signal with variable sample rate
Hello community,
I’m using PLECS, with a variable solver, and would like to postprocess its data within matlab. Trying to extract the RMS value of signals has been a struggle, as the sampling rate increases a lot when there are transient phenomena. Therefore, using rms(values) gives me an extremely higher rms value than the expected, as I am working with pulsed values. Also changing to a discrete solver to have equal sampling rate, is not wanted because it’s much slower.
I’ve been looking at a method to attach the timestamps in my signals somehow, to work around this problem. Yet, I’m not having any luck. Does anyone know of an available function or code snipper to figure this out, please?
Thank you for any help.Hello community,
I’m using PLECS, with a variable solver, and would like to postprocess its data within matlab. Trying to extract the RMS value of signals has been a struggle, as the sampling rate increases a lot when there are transient phenomena. Therefore, using rms(values) gives me an extremely higher rms value than the expected, as I am working with pulsed values. Also changing to a discrete solver to have equal sampling rate, is not wanted because it’s much slower.
I’ve been looking at a method to attach the timestamps in my signals somehow, to work around this problem. Yet, I’m not having any luck. Does anyone know of an available function or code snipper to figure this out, please?
Thank you for any help. Hello community,
I’m using PLECS, with a variable solver, and would like to postprocess its data within matlab. Trying to extract the RMS value of signals has been a struggle, as the sampling rate increases a lot when there are transient phenomena. Therefore, using rms(values) gives me an extremely higher rms value than the expected, as I am working with pulsed values. Also changing to a discrete solver to have equal sampling rate, is not wanted because it’s much slower.
I’ve been looking at a method to attach the timestamps in my signals somehow, to work around this problem. Yet, I’m not having any luck. Does anyone know of an available function or code snipper to figure this out, please?
Thank you for any help. rms, variable sampling, plecs MATLAB Answers — New Questions