matlab help i created this function but need to edit it if the given waist and chest 5188524
Matlab Help
I created this function. but need to edit it.
If the given waist and chest measurements fit more than one size, the function must return the smallest size that fits.
What do I need to add or change?
function ShirtSize=computeShirtSize(chest,waist)
c=chest;
w=waist;
if c50 | w43
ShirtSize=('Not available');
elseif (c>=38 & c<=42) & (w>=30 & w
ShirtSize=('Small');
elseif (c>=40 & c<=44) & (w>=32 & w
ShirtSize=('Medium');
elseif (c>=42 & c<=46) & (w>=34 & w
ShirtSize=('Large');
elseif (c>=44 & c<=48) & (w>=36 & w
ShirtSize=('X-Large');
elseif (c>=46 & c<=50) & (w>=38 & w
ShirtSize=('XX-Large');
end