ad=readtable("advertising.csv");
ad=rmmissing(ad);
figure
subplot(1,3,1)
plot(ad.TV, ad.Sales,'or','lineWidth',1.5)
xlabel('TV advertising (in $1000)')
ylabel('Sales (in $1000)')
subplot(1,3,2)
plot(ad.Radio, ad.Sales,'or','lineWidth',1.5)
ylabel('Sales (in $1000)')
xlabel('Radio advertising (in $1000)')
subplot(1,3,3)
plot(ad.Newspaper, ad.Sales,'or','lineWidth',1.5)
ylabel('Sales (in $1000)')
xlabel('Newspaper advertising (in $1000)')
