how can i find mean to training data set code in matlab?

 Accepted Answer

Image Analyst
Image Analyst on 8 May 2015

0 votes

Um, how about mean() or mean2()? If not, why not?

More Answers (1)

Suzanne Hussein
Suzanne Hussein on 9 May 2015

0 votes

I have data set divided it to training set and test set, i want to find mean of each one???

4 Comments

m1 = mean(trainingSet(:));
m2 = mean(testSet(:));
i need mean point of training set such us, m1=[0 0],m2=[1 2]??
mean ponit for these two classes
What are your x and y variables called?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!