Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB Suppose that a file named sensor . dat contains information collected from a set of sensors . Each row contains a set of sensor
MATLAB
Suppose that a file named sensordat contains information collected from a set of sensors Each row contains a set of sensor readings, with the first row containing values collected at seconds, the second row containing values collected at seconds, and so on
Load the data file.
a Read the data file and print the number of sensors and the number of seconds of data contained in the file. Use the size functiondon't just count the two numbers. call your result numsensors
b Find both the maximum value and the minimum value recorded on each sensor and use MATLAB to determine at what times they occurred. Create an array called maxtime that contains the time when the maximum occurs for each sensor in column and the corresponding temperatures in column Create a similar array called mintime for the minimums.
c Find the mean and standard deviation for each sensor and for all the data values collected. Your result should be vectors named sensormeans and sensorstds
d Find the overall mean for all the sensor readings. Name your result overallmean.
e Find the overall standard deviation for all the sensor readings. Name your result overallstd
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