Effacer les filtres
Effacer les filtres

Create a Scatter plot from a cell array

18 vues (au cours des 30 derniers jours)
David du Preez
David du Preez le 7 Juil 2016
Commenté : David du Preez le 7 Juil 2016
I have a cell and array of 336x4. The values in column 2 and 3 are correlated to one another. How do I create a scatter plot to show this with the values from column 2 on the y axis and from 3 on the x axis.
  2 commentaires
José-Luis
José-Luis le 7 Juil 2016
What's in each cell?
David du Preez
David du Preez le 7 Juil 2016
See the attached file.

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 7 Juil 2016
load CS06
x=cell2mat(CS06(:,2))
y=cell2mat(CS06(:,3))
scatter(x,y)

Plus de réponses (1)

José-Luis
José-Luis le 7 Juil 2016
Modifié(e) : José-Luis le 7 Juil 2016
load CS06
scatter([CS06{:,3}],[CS06{:,2}])

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