%GETCHOICE Return specified condition choice or all choices
%
% COND_VAL = getChoice(P, 'Condition') returns a 2-element cell-array
% output COND_VAL containing the condition and value pair of the variant
% choice corresponding to condition 'Condition'. 
% COND_VAL = getChoice(P, {'Condition1', ..., 'ConditionN'}) returns a N*2
% length cell-array output COND_VAL containing the condition and value
% pairs of the variant choices corresponding to the specified conditions.
% COND_VAL = getChoice(P) will return all choice condition-value pairs in
% cell-array COND_VAL.
%
% Specifying a condition that does not exist for P will result in an error.
%
% Example 1: Get all choices of a variant variable.
%   P = Simulink.VariantVariable('Choices', {'V==1', 3.5, 'V==2', 8.3}); 
%   P = addChoice(P, {'V==3', 11.2}); 
%   choices = getChoice(P)
%
% Example 2: Get specific choice of a variant variable.
%   P = Simulink.VariantVariable('Choices', {'V==1', 3.5, 'V==2', 8.3}); 
%   choice = getChoice(P, 'V==2')

%   Copyright 2020 The MathWorks, Inc.