![]() % Plotting using the awesome GRAMM-toolbox TAll = įprintf('finished dim1=%i,dim2=%i - took me %.2fs\n',dim1,dim2,toc(tStart)) MATLAB is optimized for vector and matrices. ![]() I did notice that allocating new matrices before doing the arithmetic expansion (vectorization) results in the same behaviour as bsxfun (but more lines of code) A = data(ix,:) Vectorization in MATLAB refers to use of vectors, matrices instead of loops to do computations. FIGURE 6.21 Vector cross product Element-By-Element Multiplication (Vectorize) The shortcut for the. Prompted by Anne Urai, I redid the analysis with multiplication
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |