Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Only USE MATLAB. 2) Student ID number is 12345 (for random number generator is STEP 1). 3) Create a histogram with 5 ranges after

1) Only USE MATLAB.

2) Student ID number is 12345 (for random number generator is STEP 1).

3) Create a histogram with 5 ranges after getting min and max values.

4) Follow instructions and everything is given so no questions asked and only correct answer is required.

5) I need Editable typed MATLB code. Along with Output screenshot.

image text in transcribed

ENGR/EGTG 4221 - Lab Exercise 1 (Sec. 1.7.3 in text) Use MATLAB to simulate the number of daily work trips (Y) in a zone. Find the minimum and maximum values and generate a histogram with five ranges - i.e. hist(Y,5). Note: First set MATLAB's random number generator using rng(*******), replacing ******* by your student ID number. Compare your histogram to the one you would get for the actual data in Table C.2. 1.7.3 Traffic Estimation Study Traffic engineers need estimates of the number of vehicles on roads in a local community. These estimates are used to set the timing of traffic lights and for the design of roadways. Table C.2 con- tains a set of data for a median-sized city that is separated into 46 zones. The variable of interest (1) is the number of daily work trips made in a zone. This variable is some function of the zone popu- naz lation, the number of dwellings in the zone, and the number of vehicles in the zone. 46 Using the data of Table C.2, find the minimum and maximum values of Y. Then generate 28 values of Y using the rand function. Transform each of the 28 random values (u) to values of Y using the following transformation model: 46 Y = min + u(max-min) t t use rand (1,46) C.2 TRAFFIC ESTIMATION STUDY Variable Y X, X, X Definition Units Number of daily work trips made in a zone Count (10%) Zone population Count (10%) Number of dwellings in a zone Count (10) Number of vehicles in a zone Count (109) X Y Y 20.009 21.739 24.471 17589 , 10.223 5.661 7.509 6.237 7.806 8.034 24.285 1270 9.108 15.582 19.967 14.970 18.327 20.342 21.068 21.192 26.998 100 19.925 17219 20.172 20.465 20.599 24.416 19.724 24.505 9.726 X X 6.330 2.327 2.170 1.851 5.109 5.476 6.016 3.575 6.717 4.375 3.391 4.160 2.976 3.671 3.568 4.905 3410 3.410 2715 3.715 3.115 1.209 3.643 4.954 .4313 6.452 12.142 7.073 6.071 7.764 5.792 9.176 11634 10:14 7845 8.665 7.291 " 9.182 5.719 6.821 7.716 7.450 1776 1479 O 858 0.542 1627 1.289 1.384 1.103 1.256 1.081 1440 1.175 1556 1.455 1.432 1.489 1.233 View 1217 1.094 0.721 0.797 1.640 0.975 X, X 23 235 14.258 18.497 10.761 13.840 17.776 17875 17254 21493 19.874 10.00 19.225 14.848 19.547 24.242 22.189 ace 19.780 22 949 26.663 13.010 23.880 11.243 15.016 19.528 4.170 7.398 2.836 4.131 2.186 6.699 4.310 4.445 4.356 4.069 1.425 4.227 3.478 2931 3.929 8.150 2850 2.809 5.570 6.388 4.672 2.526 4.797 X, Y 7.156 1.616 12.071 1.500 6.096 0.788 6.923 0.912 4.882 0.783 8.775 1.469 6234 1281 9.435 1.171 7.367 0.997 6.843 1.282 3.873 0.571 6.173 1135 5.234 0.956 ac 7.135 1173 6.513 1175 11272 1743 4.857 1458 Try 8.262 1.167 8.999 1.086 100 8.616 1.687 5.357 1.011 6.983 0.919 7.932 1. 176

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago