필터 지우기
필터 지우기

Create a Scatter plot from a cell array

조회 수: 18 (최근 30일)
David du Preez
David du Preez 2016년 7월 7일
댓글: David du Preez 2016년 7월 7일
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
José-Luis
José-Luis 2016년 7월 7일
What's in each cell?
David du Preez
David du Preez 2016년 7월 7일
See the attached file.

댓글을 달려면 로그인하십시오.

채택된 답변

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