CS计算机代考程序代写 function [points, labels] = gettrainingdata(n)

function [points, labels] = gettrainingdata(n)
points(1,:) = [0.8443 0.2286 0.5975 0.1160 0.2857 0.5258 0.3525 0.4252…
0.7008 0.1302 0.0021 0.8071 0.6544 0.6816 0.4773 0.7682 …
0.0447 0.0694 0.6121 0.2080 0.1442 0.6060 0.8391 0.2677 .4];

points(2,:) = [0.7783 0.5140 0.4454 0.5867 0.0420 0.6593 0.6783…
0.0118 0.5405 0.8351 0.5974 0.8158 0.6779 0.2722…
0.4371 0.0358 0.1679 0.1500 0.0766 0.1543 0.6487…
0.3434 0.6329 0.8915 0.1969];
labels(1,:) = [1 0 0 0 1 0 1 0 1 1 0 1 …
1 0 0 0 1 0 0 1 1 1 1 0 1];
labels(2,:) = [0 1 1 1 0 1 0 1 0 0 1 0 …
0 1 1 1 0 1 1 0 0 0 0 1 0];

points = points(:,1:n);
labels = labels(:,1:n);