Difference Plot in matlab

1 view (last 30 days)
SGK
SGK on 11 Feb 2024
Moved: Torsten on 11 Feb 2024
Hello
I have a set of values of time signal (400x1) and out.values.A (400x1)
Another set of simulated values of time signal (1000x1) and out.values.B (1000x1)
Is it possible to plot the difference plot between A and B (ie. Time signal in X axis and difference between A and B in Y axis).

Accepted Answer

Torsten
Torsten on 11 Feb 2024
Moved: Torsten on 11 Feb 2024
You must either interpolate the output values of the first signal to the times of the second signal or the output values of the second signal to the times of the first signal. In both cases use "interp1".

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!