Creating Line graphs and Surface Plot
10 次查看(过去 30 天)
显示 更早的评论
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).
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!