Filter löschen
Filter löschen

Create a Scatter plot from a cell array

18 Ansichten (letzte 30 Tage)
David du Preez
David du Preez am 7 Jul. 2016
Kommentiert: David du Preez am 7 Jul. 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 Kommentare
José-Luis
José-Luis am 7 Jul. 2016
What's in each cell?
David du Preez
David du Preez am 7 Jul. 2016
See the attached file.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 7 Jul. 2016
load CS06
x=cell2mat(CS06(:,2))
y=cell2mat(CS06(:,3))
scatter(x,y)

Weitere Antworten (1)

José-Luis
José-Luis am 7 Jul. 2016
Bearbeitet: José-Luis am 7 Jul. 2016
load CS06
scatter([CS06{:,3}],[CS06{:,2}])

Community Treasure Hunt

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

Start Hunting!

Translated by