The Algorithms logoThe Algorithms
About
function plotdata(x, Y)

figure;

plot(x, Y, 'rx', 'MarkerSize', 10); % rx means red coloured x.

ylabel('Profit in $10,000s');

xlabel('Population of city in 10,000s');

end

Plotdata

A