How can I displayed a large matrix in an axis?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello I was trying to display some matrices, that matrices are the result about an analysis.
When I get a short matrix I have this result.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192225/image.jpeg)
and when I get a large matrix I have this result.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192226/image.jpeg)
and I get this warning
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192228/image.jpeg)
thanks
댓글 수: 0
답변 (2개)
Image Analyst
2018년 10월 21일
You can display a matrix as an image with imshow
imshow(yourMatrix, []);
댓글 수: 7
Image Analyst
2018년 10월 23일
H needs to be a matrix - actual numbers - not a symbolic variable. I don't have the symbolic Toolbox. Is there anything in there that can make H into a matrix?
Steven Lord
2018년 10월 22일
Are you trying to display a symbolic matrix in a text box in a figure window? Try something like:
syms a b c x
eq = a*x.^2+b*x+c == 0
S = solve(eq, x)
t = text(0.25, 0.75, ['$$' latex(S) '$$'], 'Interpreter', 'LaTeX')
t.FontSize = 30
Alternately, try writing those first three commands in a Live Script. The output is formatted in much the same way as the text object with the LaTeX interpreter is formatted. See this example for a sample of how symbolic expressions are formatted in a Live Script.
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!