Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
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 = 4�4
     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