Matrix cos. Did I write the expression and correctly?
Show older comments
function M = cosM(A)
M=A;
for i=0:1:100
M=M-(-1)^i*A^(1*i+1)
end
end
Accepted Answer
More Answers (1)
Steven Lord
on 28 Sep 2020
0 votes
You can check your answer using the funm function in MATLAB.
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!