Create a Scatter plot from a cell array

18 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(1 个)

José-Luis
José-Luis 2016-7-7
编辑:José-Luis 2016-7-7
load CS06
scatter([CS06{:,3}],[CS06{:,2}])

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by