function [x_train,x_test,y_train,y_test] = split_data(x,y)
%SPLIT_DATA Summary of this function goes here
%   Detailed explanation goes here

N_samples = length(y);
N_train = round(0.7*N_samples);

ind = randperm(N_samples);

x_train = x(ind(1:N_train),:);
x_test = x(ind(N_train+1:end),:);
y_train = y(ind(1:N_train),:);
y_test = y(ind(N_train+1:end),:);

end

