
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
EBK ENGINEERING FUNDAMENTALS: AN INTROD
- ***Please answer all parts. They are part of a single question and not different questions altogether. I will like the solution as well. Thank you!arrow_forwardConsider the geometric and traffic characteristics shown below. Approach (Width) Peak hour Approach Volumes: Left Turn Through Movement Right Turn Conflicting Pedestrian Volumes PHF For the following saturation flows: North (56 ft) South (56 ft) East (68 ft) West (68 ft) 165 105 200 166 442 395 585 538 162 157 191 200 900 1,200 1,200 900 0.95 0.95 0.95 0.95 Through lanes: 1,600 veh/h/in Through-right lanes: 1,400 veh/h/in Left lanes: 1,000 veh/h/in Left-through lanes: 1,200 veh/h/in Left-through-right lanes: 1,100 veh/h/in The total cycle length was 277 s. Now assume the saturation flow rates are 10% higher, that is, assume the following saturation flow rates: Through lanes: Through-right lanes: Left lanes: Left-through lanes: Left-through-right lanes: 1,760 veh/h/in 1,540 veh/h/in 1,100 veh/h/in 1,320 veh/h/in 1,210 veh/h/in Determine a suitable signal phasing system and phase lengths (in s) for the intersection using the Webster method. (Enter the sum of green and yellow times for…arrow_forwardDetermine the minimum of the appropriate yellow interval (Y . approach speed limit: 45 mi/h approach grade: 3.2% downgrade assumed perception-reaction time: 1.0 sec assumed deceleration rate: 11.2 ft/sec² assumed average vehicle length: 20 ft width of intersection to be crossed: 56 ft min' in s) for a signal phase under the following conditions.arrow_forward
- Compute the nominal shear strength of an M10 × 7.5 of A572 Grade 60 steel (Fy = 60 ksi). For M10 × 7.5: d = 9.99 in., tw = 0.13 in., h/tw Vn = x kips = 71.arrow_forwardA flexural member is fabricated from two flange plates 1/2 × 71/2 and a web plate 3/8 × 20. The yield stress of the steel is 50 ksi. a. Compute the plastic section modulus Z and the plastic moment Mp with respect to the major principal axis. (Express your answers to three significant figures.) Z = Mp = in. 3 ft-kips b. Compute the elastic section modulus S and the yield moment My with respect to the major principal axis. (Express your answers to three significant figures.) S = My = in.3 ft-kipsarrow_forwardThe beam shown in the figure below has lateral support at the ends only. The concentrated loads are live loads. Use A992 steel and select a shape. Do not check deflections. Use C = 1.0 (this is conservative). Suppose that PL = 20 k. PL PL Use the table below. Shape Mn Mn Vn Vn Ω Ων W12 × 58 216 144 132 87.8 W12 × 65 269 179 142 94.4 W12 × 72 308 205 159 106 W14 × 61 235 157 156 104 W14 × 68 280 187 174 116 W14 × 74 318 212 192 128 W16 × 67 276 184 193 129 18' a. Use LRFD. Calculate the factored-load moment (not including the beam weight). (Express your answer to three significant figures.) Mu = ft-kips Select a shape. -Select- b. Use ASD. Calculate the required flexural strength (not including the beam weight). (Express your answer to three significant figures.) Ma = Select a shape. -Select- ft-kipsarrow_forward
- Given a portion of a pipe network below. Determine the true discharge in each pipe using the Hardy-Cross method. Use the Darcy-Weisbach formula with f = 0.02 for all pipes.arrow_forwardFor the cantilever retaining wall shown in the figure below, let the following data be given: Wall dimensions: H = 6.5 m, x1 = 0.3 m, x2 = 0.6 m, x3 = 0.8 m, x4 =2m, x5 = 0.8 m, D= 1.5 m, a = 0° Soil properties: 1 = 17.58 kN/m³, 1 = 36°, Y2 = 19.65 kN/m³, 215°, c230 kN/m² For 2=15°: Ne 10.98; N₁ = 3.94; N₁ = = 2.65. H Calculate the factor of safety with respect to overturning, sliding, and bearing capacity. Use Y concrete = 24.58 kN/m³. Also, use k₁ = k₂ = 2/3 and Pp FS (sliding) (EV) tan(k102) + Bk2c₂ + Pp Pa cos a (Enter your answers to three significant figures.) = 0 in equation FS (overturning)= FS(sliding)= FS(bearing)arrow_forwardA W16×67 of A992 steel has two holes in each flange for 7/8-inch-diameter bolts. For A992 steel: Fy = 50 ksi, F₁ = 65 ksi. For a W16×67: bƒ = 10.2 in., tf = 0.665 in., Zx =130 in.3 and S = 117 in.3 a. Assuming continuous lateral support, verify that the holes must be accounted for and determine the nominal flexural strength. (Express your answer to three significant figures.) Mn = ft-kips b. What is the percent reduction in strength? (Express your answer to three significant figures.) % Reduction =arrow_forward
- A gravity retaining wall is shown in the figure below. Calculate the factor of safety with respect to overturning and sliding, given the following data: Wall dimensions: H = 6 m, x1 = 0.6 m, x2 = 2 m, x3 = 2m, x4 = 0.5 m, x5 = 0.75 m, x6 = 0.8 m, D= 1.5 m Soil properties: 1 = 17.5 kN/m³, ø₁ = 32°, 12 = 18 kN/m³, =22°, 40 kN/m² Y₁ H D x2 x3 x5 X6 Use the Rankine active earth pressure in your calculation. Use Yconcrete = 23.58 kN/m³. Also, use k₁ = k₂ = 2/3 and P₁ = 0 in the equation FS S(sliding) | tan(k102) + Bk₂c½ + Pp (Σν). Pa cos a (Enter your answers to three significant figures.) FS (overturning) FS (sliding)arrow_forwardQ4 Use b member Castigliano's second theorem to determine the structure shown Forces In figure below longer than + In IF required. For all members member EC IS 10mm E = 200 KN/mm² 200KN YE FV 100 KN A = 1800 mm² and 2 2m 3m B D 3m 8M *arrow_forwardFor the cantilever retaining wall shown in the figure below, let the following data be given: Wall dimensions: H = 8 m, x1 = 0.4 m, x2 = 0.6 m, x3 = 1.5 m, x4 3.5 m, x5 = 0.96 m, D= 1.75 m, a = 10° Soil properties: ₁ = 17.3 kN/m³, 1₁ = 32°, Y2 = 17.6 kN/m³, 2=28°, c₂ = 30 kN/m² The value of Ka is 0.3210. For 2=28°: N = 25.80; N₁ = 14.72; N₁ = 16.72. 3. Also, use k₁ = k₂ = 2/3 and Pp = 0 in the equation Calculate the factor of safety with respect to overturning, sliding, and bearing capacity. Use concrete = 24.58 kN/m³. A FS (sliding) (V) tan(k₁₂) + Bk₂c½₂ + Pp Pa cos a (Enter your answers to three significant figures.) FS (overturning) FS(sliding) FS (bearing)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



