Question
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
%Clearing the screen and workspaceclc;
clear;
%Defining empty strings
A1='';
A2='';
A3='';
A4='';
color='';
%Getting input from the user and checking if they entered correct
%information
prompt='Please enter A1 allele (Brown or Blue): ';
while ~(strcmpi(A1, 'Brown') || strcmpi(A1, 'Blue'))
A1=input(prompt,'s');
end
prompt='Please enter A2 allele (Brown or Blue): ';
while ~(strcmpi(A2, 'Brown') || strcmpi(A2, 'Blue'))
A2=input(prompt,'s');...