Matrix cos. Did I write the expression and correctly?

 Accepted Answer

It should be something like this
function M = cosM(A)
M=E; % I don't know how E is defined in that equation
for k=1:1:100
M=M+(-1)^k*A.^(2*k)/factorial(2*k);
end
end

More Answers (1)

You can check your answer using the funm function in MATLAB.

Asked:

on 28 Sep 2020

Answered:

on 28 Sep 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!