Needing to increment a number within a sin function
显示 更早的评论
I am creating a matrix which has a sin function in the diagonal. It starts with 10sin(0) and goes on to 10sin(1), 10 sin(2)... all the way to 10sin(19). How can I make this happen?
回答(1 个)
2 个评论
John D'Errico
2022-7-15
Would that be a "sin"ful answer? :)
Star Strider
2022-7-15
Quite definitely!
类别
在 帮助中心 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!