Professional Documents
Culture Documents
Replace Value
Replace Value
A=tennis
a.PlayTennis
a(1:2,:)
a.Temperature(1:2)
Replace value
a.Temperature(3)=55.5
ismissing(a)
Find Mean
m=mean(a.Temperature,'omitnan') to find mean of temperature
Find Median
me=median(a.Temperature,'omitnan')
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);
height=fillmissing(h.height,'constant',m);
h.height=height;
weight=fillmissing(h.weight,'constant',me);
h.weight=weight;
mo=mode(h.gender);
gender=fillmissing(h.gender,'constant',cellstr(mo));
h.gender=gender;