How to find the difference between two graphs?
古いコメントを表示

I have a graph shown in the figure below and now i have to find difference between two graphs, red line is drawn from some A= 59x2 matrix(taken from matlab Simulink) and blue line drawn from B= 149x2 matrix both drawn for same parameters and i don't have any idea how to find the difference between both the lines. So if anyone has any idea please help me with that.
code used is
figure();plot(simout.A.Time,simout.A.Data);
hold on;
plot(B(:,1),B(:,2));
Thanks in advance Agastya
採用された回答
その他の回答 (1 件)
Ahmet Cecen
2014 年 11 月 24 日
0 投票
One way is to interpolate the 59x2 matrix to be 149x2. Check spectral interpolation using Fourier transforms. You might even be able to get away with imresize in your case.
カテゴリ
ヘルプ センター および File Exchange で Spline Postprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!