www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/PlotGegenbauerPolynomialsExample.m

    %% Plot Gegenbauer Polynomials
% Plot the first five Gegenbauer polynomials for the parameter |a = 3|.
syms x y
fplot(gegenbauerC(0:4, 3, x))
axis([-1 1 -10 10])
grid on

ylabel('G_n^3(x)')
title('Gegenbauer polynomials')
legend('G_0^3(x)', 'G_1^3(x)', 'G_2^3(x)', 'G_3^3(x)', 'G_4^3(x)',...
                                               'Location', 'Best')