Effacer les filtres
Effacer les filtres

using elements of table as variable

1 vue (au cours des 30 derniers jours)
Ashbub
Ashbub le 8 Jan 2018
Commenté : Ashbub le 8 Jan 2018
Hi I've a table A which contains numerous sets of data. Each set there are three components x,y and z. I need to plot scatter3 using these data. But don't know how to use these data from table. Files are attached.
Thanks.

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Jan 2018
A_mat = cell2mat(A);
x = A_mat(:,1);
y = A_mat(:,2);
z = A_mat(:,3);
scatter3(x, y, z);
  1 commentaire
Ashbub
Ashbub le 8 Jan 2018
Many thanks Walter.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Tables 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