0% found this document useful (0 votes)
12 views5 pages

Lecture 4 - Notes

s

Uploaded by

os.nahswan77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views5 pages

Lecture 4 - Notes

s

Uploaded by

os.nahswan77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MATLAB Problem:

In a biology experiment, researchers collected data on the growth rates of a particular species of
plant under different light conditions. The data file, named "plant_growth_data.mat," contains the
growth measurements (in centimeters) recorded over a period of several weeks. The first column
represents the growth rate under natural sunlight, while the second column corresponds to growth
under artificial light.

Task:

1.Load the data from "plant_growth_data.mat" into MATLAB.

2.Construct a frequency table for the plant growth rates under both natural sunlight and artificial light.

3.Calculate the relative frequency table for each light condition.

4.Plot histograms for the growth rates under natural sunlight and artificial light on the same graph for
comparison.

5.Use different colors for each histogram and include appropriate labels and a legend.
Provide your analysis and observations on how the growth rates differ between the two light
conditions based on your frequency tables and histograms.

You might also like