I have data points 1000 and for the first 1000 I'm using mean [-2 1] and std of 0.85 and for the other 1000 I'm using mean [4 5] and std 2 and I'm trying to plot the data but I'm getting this error
function kmean( ) data1 = 1000;s =[-4 0;1 0.75];a =[3 0;4 2.0];data3 = s * data1;data4 = a * data1;figureplot(data3(:,1) , data3(:,2) , 'r.');plot(data4(:,1) , data4(:,2) , 'g.');xlabel('x-value');ylabel('y-value');axis square axis ([-10 10 -10 10])end
Best Answer