Pages

Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

1.3.14

Smart way to write "trace" command in Matlab - Boost your code, save time

Sometimes is necessary to write complex operations in Matlab involving matrices. These operations can be of different type and they operate in different ways.

Today I'll show you how write in a smart way the "trace" command of a matrix or a product/sum/difference of the using matrices notation to speed up your code.