Comparison of two plots - experimental and model results

4 ビュー (過去 30 日間)
Muhammad Imran
Muhammad Imran 2017 年 7 月 12 日
編集済み: dbmn 2017 年 7 月 12 日
Dear Colleagues,
I am trying to calculate the min, max and mean error between two plots. One plot is based on experimental data and the other plot is based on model data. The matrix length of experimental and model data is different. Can anyone guide me how I can calculate the deviation between two plots? Thank you in advance!
Best regards, Muhammad Imran

回答 (1 件)

dbmn
dbmn 2017 年 7 月 12 日
編集済み: dbmn 2017 年 7 月 12 日
One thing you could do is to set both datasets on the same time-base f.ex.
% Model Data x1, y1
% Experiment Data x2, y2
y2_new = interp1(x2,y2,x1);
this gives you 2 new sets of the same length (and you can do your analysis)
% Model Data x1, y1
% Experiment Data x1, y2_new

カテゴリ

Help Center および File ExchangeBar Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by