example of referring elementsthe vector can also


Example of Referring elements:

the vector can also be extended. For illustration, the following generates a vector which has three elements. And then referring to the fourth element in an assignment statement, the vector is then extended to have four elements.

>> rv = [3 55 11]

rv =

3  55  11

>> rv(4) = 2

rv =

3  55  11  2

If there is a gap between the ends of the vector and the specified element, 0's are filled in. For illustration, the following extend the variable generated former again:

>> rv(6) = 13

rv =

3  55  11  2  0  13

 

 

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: example of referring elementsthe vector can also
Reference No:- TGS0174719

Expected delivery within 24 Hours