I have a variable classi which is composed out of cells (269×500), it can be found here http://ojtwist.be/data.mat . I’m trying to sum the rows of this matrix so that i get a vector of 269×1. I tried converting the variable to a matrix with cell2mat but this doesn’t work. Or matlab sees the sign (-) as a seperate cell. Therefore i can’t use sum(classi(:),2). My question is now, how can I do this efficiently ?
Thx
Here’s how you could do it: