This answer is in response to the OP's comment requesting how to set different markers to different colors.
Approach 1: Logical Indexing
Requires you to define the index for each color. In the example below, red markers are selected randomly; the remaining markers will be blue.

% MATLAB R2017a
mat1 = 100*rand(20,1);
mat2 = 100*rand(20,1);
idxRed = rand(20,1)> 0.5;
idxBlue = ~idxRed;
s(1) = scatter(mat1(idxRed),mat2(idxRed),[],'r','filled');
hold on
s(2) = scatter(mat1(idxBlue),mat2(idxBlue),[],'b','filled');
% Cosmetics
daspect([1 1 1])
box on
for j = 1:2
s(j).MarkerEdgeColor = 'k';
s(j).MarkerFaceAlpha = 0.3; % Transparency control
end
Approach 2: Custom Colormap
Create a custom colormap that directly maps to colors you want. In the example below, the color map only contains two colors. The logical variable idxRed only has two possible values, so the call caxis([0 1]) is unnecessary here.

% Create custom colormap
col1 = [0 1 0]; % Green
col2 = [1 0 0]; % Red
cmap = [col1;col2];
% Plot
colormap(cmap), hold on, box on
scatter(mat1,mat2,[],idxRed,'filled');