Creating Line plot with matlab

1 view (last 30 days)
Jonathan Asante
Jonathan Asante on 13 Jun 2018
Answered: KSSV on 13 Jun 2018
Hi I would be glad if someone can help me to create a line plot for the table below. AgentID Strategy Abilities Score Agent 1 NaiveC 159 980 Agent 6 NaiveD 159 980 Agent 4 NaiveC 157 970 Agent 5 NaiveC 157 970 Agent 9 NaiveD 157 970 Agent 10NaiveD 157 970 Agent 3 NaiveC 156 965 Agent 8 NaiveD 156 965 Agent 2 NaiveC 143 900 Agent 7 NaiveD 143 900
I will like abilities on the x-axis, score on the y-axis and two plots grouped by Strategy representing NaiveC and NaiveD.
Thanks for the help

Answers (1)

KSSV
KSSV on 13 Jun 2018
x = 1:10 ;
y = 1:10 ;
[X,Y] = meshgrid(x,y) ;
plot(X,Y,'k')
hold on
plot(X',Y','k')

Community Treasure Hunt

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

Start Hunting!