How can i plot a 3d graph using a matrix?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want to plot a 3D graph using a matrix and i want matrix values to be on Z axis and define values on X & Y axes separately.
Can you help me please?
Thanks
0 comentarios
Respuestas (1)
Walter Roberson
el 29 de Jul. de 2012
What kind of graph? What you describe could be for a surface graph,
surf(X, Y, Z)
or for a mesh(), or (with more work) a 3D line plot using plot3() (but then you have to say what should be connected to what)
2 comentarios
Walter Roberson
el 29 de Jul. de 2012
You can use bar3() but it does not permit passing in Y values. You would have to modify the barseries returned by bar3, especially the coordinates in the patches that are children of the barseries.
Possibly there is a MATLAB File Exchange (FEX) contribution that does this work.
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!