How can I graph the results of the matrix?

1 Ansicht (letzte 30 Tage)
Damián Muciño
Damián Muciño am 24 Aug. 2018
Beantwortet: Steven Lord am 24 Aug. 2018
Code:
A = [.58-.06i -.08+.06i +0; -2.08+.06i 0.1775+.8180i -.0975+.1219i; 0 -.097+.12i .097+.37i]
B = [2.828+2.828i;0;0]
solucion = [A\B]

Antworten (2)

OCDER
OCDER am 24 Aug. 2018
plot(real(solucion), imag(solucion), 'x')
xlabel('real')
ylabel('imag')

Steven Lord
Steven Lord am 24 Aug. 2018
What type of graph are you trying to create? If you're not sure of the name of the graph you're trying to create but you know what it looks like, click on the Plots tab in the Toolstrip and click on the downward pointing triangle to the right of the Plots section on that tab. Look for the type of graph you want to plot and the name of the function that creates that plot will be underneath the picture.
If you have the Workspace window open and have selected the variable you want to graph, the Plots section by default will show you only those functions to which you can pass that variable. So if you select a vector, it won't show you functions like surf that expect matrices as input. If you click on the picture, MATLAB will create a graph using that function on that variable.
See this documentation page for more information about the Plots tab on the Toolstrip.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by