フィルターのクリア

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 件のコメント
David du Preez
David du Preez 2016 年 7 月 7 日
Thanks.

サインインしてコメントする。

その他の回答 (1 件)

José-Luis
José-Luis 2016 年 7 月 7 日
編集済み: José-Luis 2016 年 7 月 7 日
load CS06
scatter([CS06{:,3}],[CS06{:,2}])

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by