MATLAB: Problem “Invalid first data argument” when plot a figure

MATLABplot

Dear Colleagues My name is Le Thanh Ha. I am quite new to Matlab. I write a code to draw a figure, but the problem came out like "Invalid first data argument" and I do not know to what is the problem and how to figure out it. Please give me some advice to overcome it. Any comment and suggestion is greatly appreciated. Best

Best Answer

hold on
x=(1:127);
col={'b','r','k','y'}
data={vxo_cycle*0.1,gdp_cycle*0.01,pi_cycle,hoursworked_cycle}
for ii=1:4
plot(x,data{ii},col{ii})
hold on
end