Creating Line graphs and Surface Plot
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jonathan Asante
el 19 de Jun. de 2018
Comentada: KSSV
el 20 de Jun. de 2018
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 comentarios
Respuesta aceptada
KSSV
el 19 de Jun. de 2018
[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 comentarios
KSSV
el 20 de Jun. de 2018
Yes..it can be very much done..read about plot. You can specify colors there.
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!