Javatpoint Logo
Javatpoint Logo

MATLAB end

The end keyword in MATLAB serves two main purposes:

  1. It terminates a block of code.
  2. It indicates the last array index.

MATLAB end syntax:

Example: Use end keyword to terminate the block of code:

Output:

a = 44
     1     1     1     1
     1     1     1     1
     1     1     1     1
     1     1     1     1
......
     0     1     1     1
     0     1     1     1
     0     1     1     1
     0     1     1     1
...end

Example: Use end keyword to indicate last array index:







Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA