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: plotpsd_documentation.m
    path of file: ./repos/CDT/cdt/doc
    
    the code of the file until where you have to start completion: %% |plotpsd| documentation
% This function plots a power spectral density of a time series using
% the |periodogram| function. *Requires Matlab's Signal Processing Toolbox.*
% 
% <CDT_Contents.html Back to Climate Data Tools Contents>.
%% Syntax 
% 
%  plotpsd(y,Fs) 
%  plotpsd(y,x) 
%  plotpsd(...,LineProperty,Li
    
function plots a power spectral density of a time series using
% the |periodogram| function. *Requires Matlab's Signal Processing Toolbox.*
% 
% <CDT_Contents.html Back to Climate Data Tools Contents>.
%% Syntax 
% 
%  plotpsd(y,Fs) 
%  plotpsd(y,x) 
%  plotpsd(...,LineProperty,LineValue) 
%  plotpsd(...,'logx') 
%  plotpsd(...,'db') 
%  plotpsd(...,'lambda') 
%  h = plotpsd(...) 
% 
%% Description
% 
% |plotpsd(y,Fs)| plots a power spectrum of 1D array |y| at sampling frequency |Fs|
% using the |periodogram| function. Sampling frequency |Fs| must be a scalar.  
%
% |plotpsd(y,x)| plots a power spectrum of |y| referenced to an independ