arg = 0.5; P = legendrep(2,'cos(arg)'); P_n = eval(P);
MATLAB: How to incorporate the following lines to Matlab R2013: Because it keeps giving errors that legendrep is not defined
legendre function in matlab 2013
legendre function in matlab 2013
arg = 0.5; P = legendrep(2,'cos(arg)'); P_n = eval(P);
Best Answer