illustration of empty vectorsthe empty vectors


Illustration of Empty vectors:

The Empty vectors can also be used to delete elements from the arrays. For illustration, to remove the third element from array, an empty vector is assigned to it:

>> vec = 1:5

vec =

          1  2  3  4  5

>> vec(3) = []

vec =

         1  2  4  5

The elements in vector are now numbered 1 through 4.

The Subsets of a vector could also be eliminated; for illustration:

>> vec = 1:8

vec =

1  2  3  4  5  6  7  8

>> vec(2:4) = []

vec =

1  5  6  7  8

 

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: illustration of empty vectorsthe empty vectors
Reference No:- TGS0174737

Expected delivery within 24 Hours