Matlab 对角线元素赋值。
Show older comments
a(1:7:end)=3;%对角线元素赋值为3
自己动手操作了,确实是对角线元素赋值为3,但是不大理解这行代码为什么可以实现对角线元素的赋值,求解
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!