Graham's Convenience Bundle

A bundle containing functions I use for the sake of convenience in projects

您现在正在关注此提交

cof(M) computes cofactor matrices via cofactor determinants.
Useful for matrix inversion in modular arithmetic
collate(v1,v2,...) collates same-size vectors.
convert(x1,u1,u2) converts the input from the first set of units to the second.
Declutters the typical unit conversion and uses string inputs rather than symbolic.
(Requires Symbolic Math Toolbox)
crossmat(a) converts between vectors and skew-symmetric matrices.
cvander(v) computes confluent Vandermonde matrices.
Allows for least-squares polynomial approximation, minimum-norm polynomial interpolation, and
polynomial interpolation using derivatives
increment(v,min,max,inc) increments within the provided number system.
Prevents excessive loop nesting to allow for multiple indices to be updated in a single loop.
intpartition(n) generates the integer partitions of "n".
pagediag(V) performs the diag() function along array pages.
pagemexp(M) performs matrix exponential across array pages.
pagemlog(M) performs matrix logarithm across array pages.
placeX(A,B,eig) places poles for state feedback design.
(Requires Symbolic Math Toolbox)
placeY(A,B,C,D,eig) places poles for output feedback design.
(Requires Symbolic Math Toolbox)
rotTheta(theta,u) generates a rotation matrix according to the Principle Axis Theorem.
roundd(x,roundTo) rounds to the nearest decimal.
Allows for rounding according to significant figures, rounding towards any value (including +/-Inf)
while preserving the number of digits/significant figures, and rounding to multiples of "roundTo"

引用格式

Graham Holt (2026). Graham's Convenience Bundle (https://ww2.mathworks.cn/matlabcentral/fileexchange/184461-graham-s-convenience-bundle), MATLAB Central File Exchange. 检索时间: .

标签

添加标签

Add the first tag.

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.1

For consistency with existing literature

1.1.0

Includes the functions placeX() and placeY() for pole placement in state-feedback and output-feedback control

1.0.0