how to compare two matrix by graph?
조회 수: 10 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
Iain
2014년 8월 7일
matrix1 = rand(3,5);
matrix2 = rand(3,5);
difference = matrix2-matrix1;
imagesc(difference)
댓글 수: 2
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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!