DiagUp works the same way as Diag except the placed elements are extracted from or go onto an upward slope. A vector as the first parameter produces a zero matrix with the vector superimposed. A matrix as the first parameter produces a vertical vector sampling from lower left to upper right. The optional second parameter raises (or lowers if negative) which diagonal, relative to the long diagonal.
引用格式
Charles Kluepfel (2024). diagUp (https://www.mathworks.com/matlabcentral/fileexchange/115870-diagup), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2022a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |