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: VBA_PPM.m
    path of file: ./repos/VBA-toolbox/utils
    
    the code of the file until where you have to start completion: function [p,f,gridx] = VBA_PPM(m,v,t,form,disp,ha)

    
function [p,f,gridx] = VBA_PPM(m,v,t,form,disp,ha)
% computes (and displays) P(x>t|m,v) or 1-P(t1<x<t2|m,v)
% FORMAT [p,f,gridx] = VBA_PPM(m,v,t,disp,form)
% IN:
%   - m/v: sufficient statistics of the pdf
%       -> if form='gaussian', m=E[x] and v=V[x]
%       -> if form='beta', m=counts for y=1 and v=counts for y=0, where y
%       would be the conjugate binomial variable.
%   - t: if t is a scalar, then it is a threshold (to calculate p =
%   P(x>t)) ; if it is a vector, then it is an interval (to calculate p =
%   P(x<t(1) or x>t(2)).
%   - form: 'gaussian' or 'beta'
%   - disp: a binary switch that flags whether or not to display the pdf.
%   - ha: axis' handle for display (relevant only if disp=1)
% OUT:
%   - p: P(x>t|m,v) or 1-P(t1<x<t2|m,v)
%   - f: pdf (either Gaussian or Beta) evaluated on a grid
%   - gridx: grid over which the pdf is evaluated

try, form; catch form='gaussian'; end