Hi lech,
I understand that you want to train a binary classifier using logistic regression.
You can find the “fitclinear” method in the “Machine Learning and Statistics Toolbox”. You can train a logistic regression model using your data by specifying the “Learner” parameter as “logistic”.
Mdl = fitclinear(X,Y,'Learner','logistic');
Make use of the “predict” method:
ypred = predict(Mdl,Xnew);
I hope this helps!