![]() You can't make a 1x5 vector turn into a 2x3 vector, as one element would be missing. For this to be possible, you need to have the same number of elements in the input matrix as you have in the output matrix. ![]() What reshape does is to take the matrix A, straightens it out, and gives it a new size, that's determined by the 2nd, 3rd to the Nth argument. Let's start with the syntax used in the documentation: B = reshape(A,sz1.,szN)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |