Ways of plotting a matrix

조회 수: 8 (최근 30일)
Marcus Rosales
Marcus Rosales 2020년 2월 6일
댓글: Marcus Rosales 2020년 2월 22일
Hello, I am working on a simulation which diagonalizes a matrix for me, then I take the eigen vectors of said matrix and build a density of states. For computational purposes this is just an NxN matrix and each elements magnitude is the density of states at a specific location.
I am wondering if anyone has a good way to plot these values such that there is an interpolation between neighboring values and decent resolution. I am currently using pcolor and setting this to interpolate, but this does not seem to have the resolution I am after. Maybe there is a way to increase resolution and I am not aware of it?
Any ideas will be appreciated!

채택된 답변

Sai Bhargav Avula
Sai Bhargav Avula 2020년 2월 20일
편집: Sai Bhargav Avula 2020년 2월 22일
Hi,
With my understanding of the question, I believe interpolating the N*N matrix before passing to the pcolor will help in increasing the resolution.
For interpolating the N*N matrix you can use the imresize function.
I would also recommend to look at the following density plotting function,
Hope this helps!
  댓글 수: 1
Marcus Rosales
Marcus Rosales 2020년 2월 22일
What package do you need for densityplot actually? Matlab says unknown variable when I try...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by