%ADDCHOICE Add new variant choice with specified condition and value
%
% P = addChoice(P, {'Condition', Value}) adds new variant choice to
% Simulink.VariantVariable P with variant condition 'Condition' and Value.
% P = addChoice(P, {'Condition1', Value1, 'Condition2', Value2, ...}) adds
% multiple choices to P specified in the Condition-Value pairs cell-array.
% Trying to add a choice with a Condition that already exists will result
% in an error.
%
% Example: Add 2 choices to a variant variable.
%   P = Simulink.VariantVariable; 
%   P = addChoice(P, {'V==1', 3.5, 'V==2', 8.3});

%   Copyright 2020 The MathWorks, Inc.