MATLAB: Plotting graph with uneven amount of vectors

plotunevenvectors

Hello everyone,
So, I want to plot a graph pressure over volume. Both values have been measured over a time of 0.85 seconds, however the pressure has been recorded at a 170 moments and the volume has been recorded at only 69 moments. How can I make this work?

Best Answer

take the later of the two start times and the earlier of the two end times. linspace some points between the two. interp1 the pressure at those query points and the temperature at those query points . Now you can plot the interpolated values against each other .
Related Question