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: probability.m
    path of file: ./repos/YALMIP/extras/@probability
    
    the code of the file until where you have to start completion: function sys = probability(c)
% PROBABILITY Create basis for chance constraint

    
function sys = probability(c)
% PROBABILITY Create basis for chance constraint
%
% EXAMPLE:
% The following example computes the largest value t such that the
% probability that a zero mean unit variance of a Gaussian variable is
% larger than t, is larger than 0.9  
%
%  w = sdpvar(1,1);
%  t = sdpvar(1);
%  Model = [probability(a >= t) >= 0.9,uncertain(a,'normal',0,eye(1))];
%  solvesdp(derandomize(Model),-t)

if isa(c,'constraint') | isa(c,'lmi')
    if ~is(c,'elementwise')
        error('Probability constraints only applicable to single elementwise constraints');
    else
        sys.Constraint = c;
        sys = class(sys,'probability');
    end