Companion Matrix

Version 1.0.0.0 (838 Bytes) by Paul Godfrey
Compute the companion matrix for a vector or matrix.
2.7K Downloads
Updated 9 Jun 2003

No License

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 (2024). Companion Matrix (https://www.mathworks.com/matlabcentral/fileexchange/3567-companion-matrix), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear Algebra in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0