How can I graph the results of the matrix?

조회 수: 4 (최근 30일)
Damián Muciño
Damián Muciño 2018년 8월 24일
답변: Steven Lord 2018년 8월 24일
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