Companion Matrix

Compute the companion matrix for a vector or matrix.

You are now following this Submission

Compute a companion matrix for a given vector or matrix. This function supercedes the MATLAB compan.m function which only accepts a vector as input.

Cite As

Paul Godfrey (2026). Companion Matrix (https://uk.mathworks.com/matlabcentral/fileexchange/3567-companion-matrix), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Linear Algebra in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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