![]() ![]() Follow 59 views (last 30 days) Show older comments. sz must contain at least 2 elements, and prod (sz) must be the same as numel (A) resizing an array in MATLAB. For example, reshape (A, ) reshapes A into a 2-by-3 matrix. an if statement to check divisibility by 3 and then to remove the correct number of elements from the end of the array B = reshape (A,sz) reshapes A using the size vector, sz, to define size (B). I want to be able to remove the last value of from the vector in this case, via an if statement (sometimes maybe to remove the last 2 values if there were 62 rows instead) i.e.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |