Circular Matrix computation
Version 1.2.0.0 (1.36 KB) by
Massimo Fierro
Commodity function for building a circulant matrix given a vector
circulant Computes the circulant matrix of a vector.
circulant(vec) is a max(size(vec))-by-max(size(vec)) circulant
matrix built with the elements of vec
Note: The parameter may be either a column or row vector
Example:
v = [ 1 2 3 4 ];
circulant( v )
ans =
1 2 3 4
2 3 4 1
3 4 1 2
4 1 2 3
Cite As
Massimo Fierro (2024). Circular Matrix computation (https://www.mathworks.com/matlabcentral/fileexchange/22814-circular-matrix-computation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Find more on Linear Algebra in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.