Convert linear functions to matrix form
Versión 1.2.0.2 (487 KB) por
Matt J
Obtaining the matrix representing a given linear function
As is well known, if f() is linear function then there exists a matrix A such that for any Y=f(X), where X and Y are array-valued input/output arguments, the operation can equivalently be expressed Y(:)=A*X(:). In MATLAB, we are often given linear operations f() in function form only, but need the matrix form to do linear algebraic manipulations: transpose, pseudo-inversion, etc...
The file FUNC2MAT in this submission computes the matrix A given a handle, fun, to any linear mapping from N-dimensional to M-dimensional space. An alternative and faster version LOCALFUNC2MAT is also available for certain types of linear transformations where impulse inputs have very localized responses in the output. Many image transformation functions like INTERPN, IMWARP, IMROTATE, etc... satisfy this property.
See the Examples tab for demonstrations of use.
Citar como
Matt J (2024). Convert linear functions to matrix form (https://www.mathworks.com/matlabcentral/fileexchange/44669-convert-linear-functions-to-matrix-form), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2013a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Mathematics and Optimization > Optimization Toolbox > Optimization Results > Solver Outputs and Iterative Display >
Más información sobre Solver Outputs and Iterative Display en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.