Introduction - If you have any usage issues, please Google them yourself
function [TrainingTime, TestingTime, TrainingAccuracy, TestingAccuracy] = LSM(Inputs, Targets, No_of_Output)
a1=[];
a2=[];
a3=[];
a4=[];
%%%%%%%%%%%%% Selecte training set randomly
a = Inputs;
b = Targets;
c = [ b' a'];
[M,N] = size(c);
id = randperm(M,floor(0.7*M)).';
train1 = c(id,:);
c(id',:) = [];
test1 = c;