Creating Line graphs and Surface Plot

10 ビュー (過去 30 日間)
Jonathan Asante
Jonathan Asante 2018 年 6 月 19 日
コメント済み: KSSV 2018 年 6 月 20 日
Hi Everyone
I will be very grateful if anyone can help me create a line graph and also a surface plot using the attached tables. I will like the x-axis to be Abilities and y-axis to be total score and then make the graphs grouping by (Naive C or Naive D).

採用された回答

KSSV
KSSV 2018 年 6 月 19 日
[num,txt,raw] = xlsread('Graph Data.csv') ;
x = num(:,1) ;
y = num(:,2) ;
figure
plot(x,y,'.r')
xi = unique(x) ;
X = reshape(x,length(x)/length(xi),[]) ;
Y = reshape(y,length(x)/length(xi),[]) ;
figure
surf(X,Y,Y)
  2 件のコメント
Jonathan Asante
Jonathan Asante 2018 年 6 月 19 日
Thanks. But I was wondering if we can separate the two distributions on the line plot using different colors for NaiveC and NaiveD
KSSV
KSSV 2018 年 6 月 20 日
Yes..it can be very much done..read about plot. You can specify colors there.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by