Plotting experimental data from excel spread sheet vs model data on same set of axes

1 view (last 30 days)
Hi everyone,
I am trying to compare data (i.e. plot on same set of axes) generated by a model I created in MATLAB with data from an Excel spread sheet. The problem is that the number of elements in the Excel data columns is not the same as the number of elements from the data coming from the model. When I use linspace to try to adjust the number of elements on my model data to match the Excel data, my curve gets messed up. I would appreciate any form of assistance regarding this. Thanks.

Accepted Answer

Sean de Wolski
Sean de Wolski on 30 Jul 2015
plot(x1,y1,'rp',x2,y2,'b*')
This will put both plots on the same graph at their correct x/y locations.

More Answers (0)

Categories

Find more on Data Import from MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!