Circular Matrix computation

Commodity function for building a circulant matrix given a vector


Updated 2 Feb 2009

View License

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

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 (2023). Circular Matrix computation (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: Hysteresis Thresholding

Inspired: Circulant matrix, circulant

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Slightly modified the help and matched the file description with it

UPDATE Feb 02, 2009: added help