You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: spm_wavspec.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8/toolbox/spectral
    
    the code of the file until where you have to start completion: function [p] = spm_wavspec (x,freqs,fs,show,rtf)
% Wavelet based spectrogram
% FORMAT [p] = spm_wavspec (x,freqs,fs,show,rtf)
% x         Data vector
% freqs     Frequencies to estimate power at
% fs        sample rate

    
function [p] = spm_wavspec (x,freqs,fs,show,rtf)
% Wavelet based spectrogram
% FORMAT [p] = spm_wavspec (x,freqs,fs,show,rtf)
% x         Data vector
% freqs     Frequencies to estimate power at
% fs        sample rate
% show      1 to plot real part of wavelet basis used (default = 0)
% rtf       Wavelet factor (if > 10, then this parameter defaults to a 
%           fixed window length of rtf milliseconds)
%___________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging

% Will Penny 
% $Id: spm_wavspec.m 3296 2009-07-29 13:38:55Z will $

x=x(:)';
freqs=freqs(:)';

if nargin < 4 | isempty(show)
    show=0;
end