Surface Plots of 3D Matrix After sum.

2 vues (au cours des 30 derniers jours)
Ali Raza
Ali Raza le 8 Oct 2019
Commenté : Ali Raza le 8 Oct 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?

Réponse acceptée

darova
darova le 8 Oct 2019
Try
B = sum(A);
surf(squeeze(B))

Plus de réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by