How can I graph the results of the matrix?

2 views (last 30 days)
Damián Muciño
Damián Muciño on 24 Aug 2018
Answered: Steven Lord on 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]

Answers (2)

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

Steven Lord
Steven Lord on 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.

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!