Question: PLEASE HELP IN MATLAB Write a code segment that sets the variable gastest to the word OXYGEN, NITROGEN, or CO2 according to the guidelines below

PLEASE HELP IN MATLAB
Write a code segment that sets the variable gastest to the word OXYGEN, NITROGEN, or CO2 according to the guidelines below
- Assume the variable molarmass is defined and is a row vector of a list of the molar mass each molecule in a gas. Each number in the list will either be 28, 32, or 44.
- Compute the median of the list molarmass and use the median of molarmass to determine if the gas is mostly 'OXYGEN' NITROGEN' or 'CO2' using the table.
- Store the result ('OXYGEN', 'NITROGEN' or 'CO2') in the variable gastest
2. 239s Write a code segment that sets the variable gastest to the word OXYGEN, NITROGEN, or CO2 according to the guidelines below of a list of the molar mass Assume the varlable molarmass is defined and is a row vector each molecule in a gas. Each number in the list will either be 28, 32, or 44. Compute the medlan of the llst molarmass and use the medlan of molarmass to determine If the gas is mostly 'OXYGEN' NITROGEN' or CO2 using the table. Store the result ('OXYGEN, 'NITROGEN' or CO2') in the variable gastest Median molarmass gastest 32 28 OXYGEN NITROGEN CO2 Notes Write a code segment, not a functlon Do not include any test cases in the code you submit. Don't forget end statements . Check variable names and spelling in CO2 "O" is a letter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
