Why not create a Gaussian filter yourself? You can see the formula in fspecial(or any other Gaussian definition):
sigma = 5;
sz = 30; % length of gaussFilter vector
x = linspace(-sz / 2, sz / 2, sz);
gaussFilter = exp(-x .^ 2 / (2 * sigma ^ 2));
gaussFilter = gaussFilter / sum (gaussFilter); % normalize
and to use it you can use filter:
y = rand(500,1);
yfilt = filter (gaussFilter,1, y);
, , , . , conv filter same:
yfilt = conv (y, gaussFilter, 'same');