In Matlab, the "tee" operation refers to splitting a vector into two vectors. You can achieve this by indexing the original vector. Here's an example:
main.m200 chars9 lines
In this code snippet, the vector a
is split into two vectors a1
and a2
at index 3. Vector a1
contains the elements from the beginning of a
up to index 3, and vector a2
contains the elements from index 4 to the end of a
.
gistlibby LogSnag