How do I incorporate the following lines to Matlab R2013: Because it keeps giving errors that legendrep is not defined
2 views (last 30 days)
Show older comments
Bongani Mndawe
on 1 Sep 2015
Answered: Star Strider
on 1 Sep 2015
arg = 0.5;
P = legendrep(2,'cos(arg)');
P_n = eval(P);
0 Comments
Accepted Answer
Star Strider
on 1 Sep 2015
Since MATLAB is case-sensitive, you needto capitalize the ‘P’. This works (in R2015a):
arg = 0.5;
P_n = legendreP(2, cos(arg))
P_n =
0.6552
0 Comments
More Answers (0)
See Also
Categories
Find more on Downloads 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!