Circular Matrix computation
by Massimo Fierro
29 Jan 2009
(Updated 02 Feb 2009)
Commodity function for building a circulant matrix given a vector
|
Watch this File
|
| File Information |
| Description |
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
|
| Acknowledgements |
This submission has inspired the following:
Circulant matrix
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
| Other requirements |
Any version of Matlab with the circshift function |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 01 Feb 2009 |
UPDATE Feb 02, 2009: added help |
| 02 Feb 2009 |
Slightly modified the help and matched the file description with it |
|
Contact us at files@mathworks.com