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

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.

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Jul. de 2015

Comentada:

el 30 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by