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: adiabatic.m
    path of file: ./repos/MRSignalsSeqs/Matlab
    
    the code of the file until where you have to start completion: %
% function [b1,freq,phase] = adiabatic(peakb1,bw,beta,T,Ts,blochsim)
%
%	Function designs a Silver-Hoult adiabatic pulse with
%	peakb1 = max B1 in Gauss.
%	bw = bandwidth in Hz
%	beta = S-H beta (in Hz)
%	T = duration in secon
    
function [b1,freq,phase] = adiabatic(peakb1,bw,beta,T,Ts,blochsim)
%
%	Function designs a Silver-Hoult adiabatic pulse with
%	peakb1 = max B1 in Gauss.
%	bw = bandwidth in Hz
%	beta = S-H beta (in Hz)
%	T = duration in seconds 
%	Ts = sample period in seconds
%	blochsim = 1 to simulate pulse.
%
%	Run with no arguments for a sample.
%

function [b1,freq,phase] = adiabatic(peakb1,bw,beta,T,Ts,blochsim)

if (nargin < 1) peakb1=0.2;	end