Was only missing the transpose trick!
Sorry,:)
sorry for cheating, David's entry made me do it :)
this is strange... this works on my computer (win64 running matlab7.7) but not on the servers, perhaps is some different behavior of histc in the newer version? (and why not use 'hist' or 'accumarray' instead?)
Just using inspection, I see a space in your function (between "function" and "x9") whereas your code predicts no spaces.
thanks for the help! it seems in my version textscan(fid,'%c','CommentStyle','%','Whitespace','') removes the spaces from the resulting string...
Remove any row in which a NaN appears
6873 Solvers
Renaming a field in a structure array
739 Solvers
Is this date a palindrome?emordnilap a etad siht sI
50 Solvers
76 Solvers
371 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!