H = 
syms t
n = 4; % Degree of the Hermite polynomial
H = hermiteH(n, t); % Generate Hermite polynomial of degree n
coeffs_vec = sym2poly(H); % Get vector of coefficients
disp(coeffs_vec);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!