How can I graph the results of the matrix?

4 次查看(过去 30 天)
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]

回答(2 个)

OCDER
OCDER 2018-8-24
plot(real(solucion), imag(solucion), 'x')
xlabel('real')
ylabel('imag')

Steven Lord
Steven Lord 2018-8-24
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.

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by