MATLAB: How to find different values of a function for i = 0 to 10

MATLAB

i want to calculate different values of h_k for k = 0 to 10 and alpha = beta = 1/2 where
how to solve this in MATLAB?

Best Answer

It is a Home Work problem. As gamma function is involved, I am helping you out.
clc; clear all
a = 1/2 ;
b = 1/2 ;
hk = zeros(10,1) ;
for k = 1:10
hk(k) = 2^(a+b+1)*gamma(k+a+1)*gamma(k+b+1)/((2*k+a+b+1)*gamma(k+1)*gamma(k+a+b+1));
end