Filter löschen
Filter löschen

How can I displayed a large matrix in an axis?

3 Ansichten (letzte 30 Tage)
Oscarin
Oscarin am 21 Okt. 2018
Kommentiert: Oscarin am 23 Okt. 2018
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.
and when I get a large matrix I have this result.
and I get this warning
thanks

Antworten (2)

Image Analyst
Image Analyst am 21 Okt. 2018
You can display a matrix as an image with imshow
imshow(yourMatrix, []);
  7 Kommentare
Image Analyst
Image Analyst am 23 Okt. 2018
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?
Oscarin
Oscarin am 23 Okt. 2018
how can I convert symbolic to matriz?
thanks

Melden Sie sich an, um zu kommentieren.


Steven Lord
Steven Lord am 22 Okt. 2018
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.
  1 Kommentar
Oscarin
Oscarin am 23 Okt. 2018
Bearbeitet: Oscarin am 23 Okt. 2018
how can I show in a graphic interface? because in comand windows I get the figure but not in GUI.
thanks

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by