spy2.m

버전 1.0.0.0 (927 Bytes) 작성자: Rasmus Anthin
With this you can easier se the element locations of matrices.
다운로드 수: 2.5K
업데이트 날짜: 2003/9/17

라이선스 없음

This is another "spy"-function which, instead of MATLAB's spy function draws each element in a matrix as a square, which makes it much easier to see where each element in the matrix is located.
The syntax is: SPY(M[,COLOR]).

SPY2(A) where A is a matrix, will plot
the matrix with color codes.
Elements containing NaN or Inf will be
counted as non-zero but will be
displayed as zero elements.

SPY2(A,COLOR) will plot zero elements
with white color and nonzero elements
with black color.
Elements containing NaN or Inf will be
counted as non-zero and will also be
displayed as non-zero elements.

The displayed matrix will have sides
proportional to the number of elements
in each row/column.
If the matrix contains complex numbers,
only the real part will be displayed.

NB! For matrix sizes > 400 x 400, it will be hard to see the elements if you don't increase the figure size.

more programs/toolboxes can be found at:
http://www.etek.chalmers.se/~e8rasmus/eng/matlab_programs.html

인용 양식

Rasmus Anthin (2024). spy2.m (https://www.mathworks.com/matlabcentral/fileexchange/2775-spy2-m), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R10
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Discrete Data Plots에 대해 자세히 알아보기
도움

줌: spy3D

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

I've optimized it so it is much faster than before. Also I've included two plotting modes instead of just one.