Info
This question is closed. Reopen it to edit or answer.
Jus a simple expression (easy question)
1 view (last 30 days)
Show older comments
Hi guys, I am just having some iussues with this formula, could some one please help me?
n=5, r=5.
2 Comments
Answers (1)
Ameer Hamza
on 9 May 2020
Try this
a = [...
1.7151 -0.1511 -0.0371 -0.0457 0.0323
0.5975 -0.0172 -0.0483 -0.0186 0.0064
0.0948 -0.0027 -0.0076 -0.0029 0.0010
0.0266 0.0003 -0.0032 -0.0009 0.0001
0.0064 0.0003 -0.0009 -0.0002 0.0000];
n=5;
r=5;
i = 0:r-1;
j = 0:n-11;
Ti= cos(i.*acos(i));
Tj= cos(i.*acos(i));
result = sum(a.*Ti.'.*Tj, 'all')
Result
result =
54.6082
4 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!