フィルターのクリア

how to compare two matrix by graph?

10 ビュー (過去 30 日間)
vanita
vanita 2014 年 8 月 7 日
コメント済み: Iain 2014 年 8 月 8 日
I am generating matrix by two different algorithm. Now i have two Matrix R1 and R2. by finding difference between them or by ratio they are nearly same. ratio of each element is nearly 1.00003 and difference of each element is 10^-12.
Now,to represent analysis i want to show them on a graph. How to do that?

採用された回答

Iain
Iain 2014 年 8 月 7 日
matrix1 = rand(3,5);
matrix2 = rand(3,5);
difference = matrix2-matrix1;
imagesc(difference)
  2 件のコメント
vanita
vanita 2014 年 8 月 8 日
Thnx Latin. I'm working on signal processing. I was using same but not sure whether i can use it for any data or just for image it is worth.
Iain
Iain 2014 年 8 月 8 日
Latin? lol
You can definitely use that for analysis (well, displaying the data in a graphical format). There are lots of things you can do with it - changing the colour scheme (colormap) or putting on a scale (colorbar) to make it better for what you need.
Depending on what you want, you should pick the ideal plotting system. - e.g. surf, mesh, plot, plot3, plotyy, stairs, stem, bar, pcolor, contour etc. etc.

サインインしてコメントする。

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 8 月 7 日
R1=sin(0:0.1:10)
R2=R1+1e-12*rand(1,numel(R1))
er=R2-R1
plot(er)
  1 件のコメント
vanita
vanita 2014 年 8 月 8 日
Thnx Azzi for you answer.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by