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.

 채택된 답변

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

질문:

2015년 7월 30일

댓글:

2015년 7월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by