

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A comprehensive tutorial on matlab vectors, including how to create row and column vectors, reference vector elements, and perform vector operations such as addition, subtraction, scalar multiplication, transpose, appending, and magnitude. It also covers vector dot product and vectors with uniformly spaced elements.
Typology: Cheat Sheet
1 / 3
This page cannot be seen from the preview
Don't miss anything!


r
r =r =
c
c =c =
Live Demo
Live Demo
Live Demo
Live Demo
v
creating a column vector
creating a column vector of
of 6
elements
elements
v
v (
ans =ans = 33
v
creating a column vector
creating a column vector of
of 6
elements
elements
v v(:)(:)
ans =
ans =
rv
sub_rv
rv
rv (
sub_rv =sub_rv =
Vector Operations Vector Operations
th
th
Live Demo
Live Demo
Live Demo Live Demo
Live Demo
Live Demo