
Concept explainers
(a)
Using the MATLAB Help menu discuss how the function ABS(X) used.
(a)

Explanation of Solution
In MATLAB, go to Help, it shows the documentation, examples, wed support, and academy symbols. Open the documentation then search for the specific functions, it will provides the syntax function then click on it, will shows the information about each of the function.
Search for the function ABS(X), the function ABS(X) is used to display the absolute value of the real values and complex values.
Example 1:
In the MATLAB command window type the code as follows,
X=-5;
abs(X)
The output will be displayed as follows,
ans =
5
Example 2:
In the MATLAB command window type the code as follows,
X=-5+6*i;
abs(X)
The output will be displayed as follows,
ans =
7.8102
Conclusion:
Thus, the function ABS(X) has been explained.
(b)
Using the MATLAB Help menu discuss how the function TIC, TOC used.
(b)

Explanation of Solution
Now Search for the command, it is TIC is used to start a stopwatch timer and the command TOC is used to print the number of seconds required for the operation. Both are used to find the program elapsed time.
Example:
In the MATLAB command window write the code as follows,
tic
P = rand(1000,300);
Q = rand(1000,300);
toc
C = P'.*Q';
toc
Its output displays as below, but it is changes every time as the execution time elapsed different time length for each execution,
Elapsed time is 0.049194 seconds.
Elapsed time is 0.067125 seconds.
Conclusion:
Thus, the function TIC, TOC has been explained.
(c)
Using the MATLAB Help menu discuss how the function SIZE(x) used.
(c)

Explanation of Solution
Now search for the SIZE (x), it is the two
Example:
Consider the matrix as follows:
In the MATLAB command window write the code as follows,
x=[1 2 3;4 5 6;7 8 9];
D=size(x)
The output will be displayed as follows,
D =
3 3
Conclusion:
Thus, the function SIZE(x) has been explained.
(d)
Using the MATLAB Help menu discuss how the function FIX(x) used.
(d)

Explanation of Solution
Now search for the command FIX(x) in Help tab, it is used to round the element of x to the nearest integer towards zero.
Example:
In the MATLAB command window write the code as follows,
x=3.48;
fix(x)
The output will be displayed as follows:
ans =
3
Conclusion:
Thus, the function FIX(x) has been explained.
(e)
Using the MATLAB Help menu discuss how the function FLOOR(x) used.
(e)

Explanation of Solution
The command FLOOR(x) is used to round the element of x to the nearest integer towards negative infinity.
Example:
In the MATLAB command window write the code as follows,
x=-3.67;
floor(x)
The output will be displayed as follows,
ans =
-4
Conclusion:
Thus, the function FLOOR(x) has been explained.
(f)
Using the MATLAB Help menu discuss how the function CEIL(x) used.
(f)

Explanation of Solution
In MATLAB Help tab search the function, the command CEIL(x) is used to round the element of x to the nearest integer towards infinity.
Example:
In the MATLAB command window write the code as follows,
x=3.67;
ceil(x)
The output will be displayed as follows,
ans =
4
Conclusion:
Thus, the function CEIL(x) has been explained.
(g)
Using the MATLAB Help menu discuss how the function CALENDAR used.
(g)

Explanation of Solution
The CALENDAR function is a
Example 1:
In the MATLAB command window write the code as follows,
calendar (1989,10)
The output will be displayed as follows,
Oct 1989
S M Tu W Th F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 0 0 0 0
0 0 0 0 0 0 0
Example 2:
In the MATLAB command window write the code as follows,
calendar (8,10)
The output will be displayed as follows,
Oct 0008
S M Tu W Th F S
0 0 0 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 0
0 0 0 0 0 0 0
Conclusion:
Thus, the function CALENDAR has been explained.
Want to see more full solutions like this?
Chapter 15 Solutions
ENGINEERING FUNDAMENTALS
- Calculate: a) effective stresses at points A and B before the placement of foundations 1 and 2, b)the increase of pressure at point A as a result of the placement of the circular foundation 1, c) theincrease of pressure at point B as a result of the placement of the strip foundation 2.arrow_forwardConsider the total head-loss in the system forthis flow is 18.56 ft (head-losses in first and second pipe are 13.83 ft and 4.73 ftrespectively). Please show numerical values for EGL/HGL at the beginning/end/intermediatechange point. (Point distribution: elevation determination 5 points, EGL, HGL lines 4points)arrow_forwardAs shown in the figure below, a 1.5 m × 1.5 m footing is carrying a 400 kN load. P Depth (m) 0.0 1.0 2.0 Df Groundwater table (Yw = 9.81 kN/m³) 3.5 Yt = 16.5 kN/m³ E = 9,000 kPa Sandy soil Ysat 17.5 kN/m³ E = 15,000 kPa 6.0 Stiff Clay (OCR = 2) Bedrock Ysat 18.0 kN/m³ eo = 0.8 Cc = 0.15, Cr = 0.02 Eu =40,000 kPa (a) Estimate the immediate settlement beneath the center of the footing. Assuming that Poisson's ratios of sand and soft clay are 0.3 and 0.5, respectively. Use numerical integration approach. For the calculations, use layers (below the bottom of the footing) of thicknesses: 1 m; 1.5 m, and 2.5 m. (b) Determine the primary consolidation settlement beneath the center of the footing. (c) Redo Part (b) if OCR=1.1. Note: Use the 2:1 method to determine the stress increase below the footing. For parts (b) and (c), use the one-dimensional consolidation theory.arrow_forward
- Assuming that the whole DMV is only handled by one queue and one server and both the arrival rate (20 customer per hour) and the service rate (30 customers per hour) random variables are Markovian. (a) What is the mean queue length? [3 pts] (b) Percentage of Idle time of the server? [3 pts] (c) Average number in the queue? [3 pts] (d) Average number in the system? [3 pts] (e) The average wait time in the queue? [3 pts] (f) The average wait time in the system? [3 pts] (g) The probability that no one is in the system. [2 pts]arrow_forwardA toll booth on the Thruway experiences an average inter-arrival time of 3 minutes between each vehicle. As an operator, you want to have a mean queue length of at most 2 vehicles. What mean service rate (per hour) will the toll booth need to provide?arrow_forwardA freeway is to be designed at a location on level terrain for an annual average daily traffic (AADT) of 45,000 vehicles per day. For a conversion of AADT to an annual hourly volume, assume that the K-factor is 0.10 (i.e., the 30th highest hourly volume of the year). In addition, 55% of the peak-hour traffic volume is expected to travel in the peak direction (D = 0.55). This freeway segment will be for regular commuters. Other estimates include: PHF of 0.95, free-flow speed of 65 mph, and 20% trucks of the traffic stream. In order to determine the number of lanes required to provide at least LOS C, answer the following questions. (a) Determine Free Flow Speed (FFS) [4 pts] (b) Find the directional design-hour volume (DDHV) [4 pts] (c) Find fHv [4 pts] (d) Determine the number of lanes required. [4 pts] (e) Check the expected LOS for 2-directional lanes on this freeway segment. [4 pts]arrow_forward
- Observing a deterministic queue in 3 hours, suppose vehicles arrive at a rate of 500 vph for the first hour and 150 vph for the second and third hours. The service rate is 150 vph for the first two hours. The server can discharge 500 vehicles for the last hour. (a) What is the queue length after 30 minutes? [4 pts] (b) What is the maximum queue length? [4 pts] (c) When does the maximum queue happen? [4 pts] (d) What is the total delay? [4 pts] (e) Describe how the queue grows and discharges in this queuing process. [4 pts]arrow_forwardPlease explain step by step and show the formula usedarrow_forwardFind the increase of pressure at points A and B due to a loading q=400 kPa placed on the givenfoundation.arrow_forward
- The 4-story building has a floor dead load D = 80 psf, floor live load , L = 100 psf, roof dead load Dr = 40 psf, roof live load Lr = 60 psf, and snow load S = 50 psf. The length of columns is 18 ft and the column ends are pins (Lx = Ly = 18 ft). 1) Determine Pu on interior columns B2-4 and B2-1 2) Use Table 4-1a (pg 4-12 to 4-24) in AISC to select the lightest W shapes for these columns 3) Use Table 4-4 (pg 4-69 to 4-83) in AISC to select lightest square HSS shape for the columns.arrow_forward1:08 Il LTE Individual Assignment CEQ 31... CIVIL ENGINEERING ROANTICLO (Earthworks Quantities) (Due Date: Friday, 28/03/2025) Done Thumbi Irrigation Scheme in Mzimba district is under threat of flooding. In order to mitigate against the problem, authorities have decided to construct a flood protection bund (Dyke). Figure 1 is a cross section of a 300m long proposed dyke; together with its foundation (key). Survey data for the proposed site of the dyke are presented in Table 1. Table 2 provides swelling and shrinkage factors for the fill material that has been proposed. The dyke dimensions that are given are for a compacted fill. (1) Assume you are in the design office, use both the Simpson Rule and Trapezoidal Rule to compute the total volume of earthworks required. (Assume both the dyke and the key will use the same material). (2) If you are a Contractor, how many days will it take to finish hauling the computed earthworks using 3 tippers of 12m³ each? Make appropriate assumptions.…arrow_forwardThumbi Irrigation Scheme in Mzimba district is under threat of flooding. In order to mitigate against the problem, authorities have decided to construct a flood protection bund (Dyke). Figure 1 is a cross section of a 300m long proposed dyke; together with its foundation (key). Survey data for the proposed site of the dyke are presented in Table 1. Table 2 provides swelling and shrinkage factors for the fill material that has been proposed. The dyke dimensions that are given are for a compacted fill. (1) Assume you are in the design office, use both the Simpson Rule and Trapezoidal Rule to compute the total volume of earthworks required. (Assume both the dyke and the key will use the same material). (2) If you are a Contractor, how many days will it take to finish hauling the computed earthworks using 3 tippers of 12m³ each? Make appropriate assumptions. DIKE CROSS SECTION OGL KEY (FOUNDATION) 2m 1m 2m 8m Figure 1: Cross section of Dyke and its foundation 1.5m from highest OGL 0.5m…arrow_forward
- Engineering Fundamentals: An Introduction to Engi...Civil EngineeringISBN:9781305084766Author:Saeed MoaveniPublisher:Cengage LearningResidential Construction Academy: House Wiring (M...Civil EngineeringISBN:9781285852225Author:Gregory W FletcherPublisher:Cengage LearningFundamentals Of Construction EstimatingCivil EngineeringISBN:9781337399395Author:Pratt, David J.Publisher:Cengage,
- Architectural Drafting and Design (MindTap Course...Civil EngineeringISBN:9781285165738Author:Alan Jefferis, David A. Madsen, David P. MadsenPublisher:Cengage Learning



