E.g: The Command y 1:5 Will Create The Row Vector (1 2 3 4 5) y 1:n:5 Will Have The Step Value of N. Note That If 1+n 5, y
E.g: The Command y 1:5 Will Create The Row Vector (1 2 3 4 5) y 1:n:5 Will Have The Step Value of N. Note That If 1+n 5, y
***note that it is not necessary to use [] to create an array thorugh this method
A(x, n) selects xth element to the nth. for rectangular matrices, the indexing is as follows:
A = a1 a4 a7
a2 a5 a8
a3 a6 a9
linspace
syntax: linspace(x,y,n)
create a linearly spaced vector in inclusive range [x,y] with number of elements n:
if n is ommited, the default number of values that will be created is 100.