You are on page 1of 2

Uiimport

A=tennis

[row,col]=size(a) show row and column of dataset

a.PlayTennis

a(1:2,:)

a.Temperature(1:2)

Replace value
a.Temperature(3)=55.5

rmmissing(a) to fill missing values

ismissing(a)

Find Mean
m=mean(a.Temperature,'omitnan') to find mean of temperature

Temperature=fillmissing(a.Temperature ,'constant', m) fillmissing

Find Median
me=median(a.Temperature,'omitnan')

Temperature=fillmissing(a.Temperature ,'constant', me)

Cal Varience
v=var(a.Outlook)

Standard Deviation
s=std(a.Outlook)

Range
ma = max(a.Outlook)

mi=min(a.Outlook)

range = ma-mi
1. plot

plot(data.sepal_lengthcm);

plot(data.sepal_widthcm);

plot(data.target);

2. qqplot

qqplot(data.sepal_lengthcm);

3. histogram

hist(data.sepal_lengthcm);

4. boxplot

boxplot(data.sepal_lengthcm);

5. bar

bar(data.sepal_lengthcm);

Replacing missing values from height


m=mean(h.height,'omitnan');

height=fillmissing(h.height,'constant',m);

h.height=height;

Replacing missing values from weight


me=median(h.weight,'omitnan');

weight=fillmissing(h.weight,'constant',me);

h.weight=weight;

Replacing missing values from gender column


h.gender=categorical(h.gender);

mo=mode(h.gender);

gender=fillmissing(h.gender,'constant',cellstr(mo));

h.gender=gender;

You might also like