Answered step by step
Verified Expert Solution
Question
1 Approved Answer
% PLEASE READ ALL THE LOCKED COMMENTS CAREFULLY BEFORE SUBMITTING ANY ANSWERS. % IF YOU DO NOT READ THESE COMMENTS, YOU ARE LIKELY TO OVERLOOK
PLEASE READ ALL THE LOCKED COMMENTS CAREFULLY BEFORE SUBMITTING ANY ANSWERS.
IF YOU DO NOT READ THESE COMMENTS, YOU ARE LIKELY TO OVERLOOK AN IMPORTANT DETAIL
OF THE REQUIRED SUBMISSION STYLE.
Import your data and make any preliminary calculations between here and the next
set of locked lines.
Create your Boyle's Law plot between here and the next set of locked lines.
F figure create a figure handle called F for checking your answers
make sure your figure has a legend or MATLAB Grader will not grade your work correctly.
Plot your GayLussac's Law figure between here and the next set of locked lines.
F figure create a figure handle called F for checking your answers
make sure your figure has a legend or MATLAB Grader will not grade your work correctly.
Perform the rest of your calculations below this locked line.
Define the Excel file name
filename 'RawData.xlsx;
Read data from each sheet
Make sure the sheet names match exactly with those in the Excel file
dataair readtablefilename 'Sheet', 'Air';
dataco readtablefilename 'Sheet', CO;
datan readtablefilename 'Sheet', N;
Example: Assuming the first column is temperature and the rest are pressures
Convert temperatures from Celsius to Kelvin
temperaturesair tablearraydataair:; Celsius to Kelvin
Assuming the first row is volume and the rest are pressures
Extract volumes assuming they are in the first row
volumes dataair.Properties.VariableNames:end; Variable names from the second column onwards
Boyle's Law for Air: P vs V at constant T
You would use specific rows for specific temperatures
This is just an example, you need to modify it to match your data
F figure;
hold on;
for i : Assume we are plotting for first three temperatures
Pair tablearraydataairi:end; Pressure values for a specific temperature
V strdoublevolumes; Convert volume strings to numbers
plotV Pair, o 'DisplayName', T numstrtemperaturesairi K;
end
hold off;
legendshow;
titleBoyles Law for Air';
xlabelVolume L;
ylabelPressure kPa;
GayLussac's Law for CO: P vs T at constant V
Again, you need to choose the appropriate columns for constant volumes
F figure;
hold on;
for j : Assume we are plotting for first four volumes
Pco tablearraydataco: j; Pressure values for a specific volume
plottemperaturesair, Pcos 'DisplayName', V volumesj;
end
hold off;
legendshow;
titleGayLussac's Law for CO;
xlabelTemperature K;
ylabelPressure kPa;
Is Boyle's Law plot x data correct?
Assertion failed.
Is Boyle's Law plot y data correct?
Assertion failed.
Assessment result: incorrect Is GayLussac's Law plot x data correct?
Assertion failed.
Assessment result: incorrect Is GayLussac's Law plot y data correct?
Assertion failed.
Assessment result: incorrect Is Rair correct?
The submission must contain a variable named Rair.
Make sure you are using all the given data points for air, using absolute temperature and pressure, and calculating the gas constant with the proper units.
Assessment result: incorrect Is the percent difference for Rair correct?
The submission must contain a variable named diffRair.
Make sure you are working in a consistent set of units and multipying by to convert to
Assessment result: incorrect Is the uncertainty in Rair correct?
The submission must contain a variable named uRair.
Make sure you are using the default normalization factor of the std function in MATLAB.
Assessment result: incorrect Is RCO correct?
The submission must contain a variable named RCO
Make sure you are using all the given data points for carbon dioxide, using absolute temperature and pressure, and calculating the gas constant with the proper units.
Assessment result: incorrect Is the percent difference for RCO correct?
The submission must contain a variable named diffRCO
Make sure you are working in a consistent set of units and multipying by to convert to
Assessment result: incorrect Is the uncertainty in RCO correct?
The submission must contain a variable named uRCO
Make sure you are using the default normalization factor of the std function in MATLAB.
Assessment result: incorrect Is RN correct?
The submission must contain a variable named RN
Make sure you are using all the given data points for nitrogen, using absolute temperature and pressure, and calculating the gas constant with the proper units.
Assessment result: incorrect Is the percent difference for RN correct?
The submission must contain a variable named diffRN
Make sure you are working in a consistent set of units and multipying by to convert to
Assessment result: incorrect Is the uncertainty in RN correct?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started