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: shuntvalve.m
    path of file: ./repos/segment-open/source
    
    the code of the file until where you have to start completion: function varargout = shuntvalve(varargin)
%Functionality for Qp/Qs and Shunt and Valve analysis
%Nils Lundahl

if nargin == 0
  varargin = {'qpqs'};
end

macro_helper(varargin{:});
[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard

%-----------------------------------------------------------------
function [svaorta,svpulmo,fwao
    
function [svaorta,svpulmo,fwaorta,bwaorta,fwpulmo,bwpulmo] = getsv
%-----------------------------------------------------------------
%Calculate and return stroke, forward and backward volumes both for the 
%aorta and the pulmonary artery.
global SET
%Find magnitude image on flow
[~,~,flowno] = findfunctions('findno');
flowmagnitudeno = [];
for loop = flowno
  if loop == SET(loop).Flow.MagnitudeNo
    flowmagnitudeno = [flowmagnitudeno loop]; %#ok<AGROW>
  end