Surface Plots of 3D Matrix After sum.

1 visualización (últimos 30 días)
Ali Raza
Ali Raza el 8 de Oct. de 2019
Comentada: Ali Raza el 8 de Oct. de 2019
I have 3D matrix A size of (10 x 3 x 5), and If I sum it one time {i.e. A = sum(A)}, which gives (1 x 3 x 5). How can I plot this using "Surf"? or anyother 3D plot?

Respuesta aceptada

darova
darova el 8 de Oct. de 2019
Try
B = sum(A);
surf(squeeze(B))

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by