diagonal

Returns a vector with the main diagonal of a matrix. Similar to the built-in function diag

Download
Download

You are now following this Submission

Cite As

Miguel D. B. (2026). diagonal (https://in.mathworks.com/matlabcentral/fileexchange/10324-diagonal), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0

Download