Rank: 4449 based on 4 downloads (last 30 days) and 1 file submitted
Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Vincent
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Oct 2007 flat flatten a matrix, i.e. make it a vector Author: Vincent matrices, flat matrix, flatten, vectorize, indexed matrices, matrix manipulation 4 16
  • 3.33333
3.3 | 10 ratings
Comments and Ratings on Vincent's Files View all
Updated File Comment by Comments Rating
15 Jul 2010 flat flatten a matrix, i.e. make it a vector Author: Vincent Ben

Love it.

04 Nov 2009 flat flatten a matrix, i.e. make it a vector Author: Vincent Armyr, Daniel

After having had this file in my librarby now for a moth, I am upping the rating to a five. The help section is still kinda child-like, but the fact is that there is no file-exchange sumbission I have used more than this little piece of code.

It may be trivial, and self-named gurus might find it beneath them to use it, but for those of us who code matlab for a living and need to type legible code accurately and fast, it is a perfect tool.

In particular:
a = rand(3,4,5,6);
b = mean(flat(a(:,1,:,2));

Is as legible and as hard to get wrong as they come.

14 Apr 2009 flat flatten a matrix, i.e. make it a vector Author: Vincent Armyr, Daniel

This is a function that I have been lacking for a while. The real fix would be to allow sum() std() etc to accept a vector as the dimension argument, but untill Mathworks fixes that, this will give cleaner code.

But yeah, get that help line fixed.

24 Jun 2008 flat flatten a matrix, i.e. make it a vector Author: Vincent x@y.z, Jos

This submission (still) lacks a proper help section (H1 line, example, See Also line). Therefore, I doubt this will be useful to anyone who does not has any experience in matlab syntax.

Moreover, flat(x) equals reshape(x,1,[]) in all respects, but in the latter it is immediately clear (possibly after typing "help reshape") that you will end up with a row vector. "help flat" tells you nothing useful ...

My rating of 2 stars reflects the needed improvement of the help section.

21 Jun 2008 flat flatten a matrix, i.e. make it a vector Author: Vincent Walsh, Gregory
Top Tags Applied by Vincent
flat matrix, flatten, indexed matrices, matrices, matrix manipulation
Files Tagged by Vincent
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Oct 2007 flat flatten a matrix, i.e. make it a vector Author: Vincent matrices, flat matrix, flatten, vectorize, indexed matrices, matrix manipulation 4 16
  • 3.33333
3.3 | 10 ratings

Contact us at files@mathworks.com