I have a cell with 30 rows., In each row there are 39 columns. Every ten folders belong to one person. For each column I want to calculate the average value for the ten folders and give this value instead of 10 different amounts. then do it for folders from 11 to 20 and 21 to 30.
sorry not folder.cell mat contain 30 rows.and each row have 39 features. each 10 row Owned by an individual.but attribute values are different in 10 rowa for each person.for this reason,i want to find the mean values in each 10 rows and put them instead of the original values.
i want do train and test with this data.in cell.mat there are 30 rows that each 10 rows Are related to one person but with diffrenet values.For every ten lines must be do mean that you do it perfect. but this mean value should be replaced in 10 rows instead of previous numbers.for 11 to 20 and 21 ta 30 too.output must have 30 rows. that each 10 rows are similar and contain mean valuse
i dont write this code.please help me :( my cell attached above its 30*1 cell.then in each cell there are 39 features that they are numerical. name of cell is data_all.mat. what write instead of A?
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
7 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225391
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225391
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225397
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225397
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225400
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225400
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225402
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225402
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225420
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225420
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225423
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225423
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225436
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/141587-calculate-mean-af-cell#comment_225436
Sign in to comment.