Click to See Complete Forum and Search --> : urgent.. matlab experts help needed


fahiemulleh
October 1st, 2005, 01:29 PM
Please help me regarding the following problem.

suppose i have a matric

x = 1 2 3
? 5 ?
5 ? 7

where ? are unknown values.

I have found the mean of X by :

m = nanmean(x)
now help me regarding two problems:

1.Fill in the missing values by the respective attribute means.
2.Fill in the missing values by the attribute means of the respective classes. Report the mean values for each class.

how they can be solved in matlab ?
i woule be very thankful to u

Pinky98
October 5th, 2005, 04:33 PM
Eh? respective attribute means? What is that?

Do you mean the mean of the column / row? Well if so then you have to solve the equation:
ave = (x1 + x2 + x3) / 3
for each row / column.

and... exactly what classes are you talking about? I don't see any classes here.