MATLAB: Error using plot; invalid first data argument

invalid first data argumentplot

%this is my code. it is returning the titular error and I cannot figure out why
data=load('riverspeed.html')
x=data(1,:)
y=data(2,:)
color=input('select color')
symbol=menu('Select symbol','point','circle')
switch symbol
case 1
plot(x,y,color,'.')
case 2
plot(x,y,color, 'o')
end
%'riverspeed.html' is a random two row matrix

Best Answer

data=load('riverspeed.html')
x=data(1,:) ;
y=data(2,:) ;
color=input('select color:')
symbol=menu('Select symbol:','point','circle')
switch symbol
case 1
plot(x,y,strcat(color,'.'))
case 2
plot(x,y,strcat(color,'o'))
end