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
- a. A b. A 3. Sketch normal depth, critical depth and the water surface profile. Assume at A and B the water is flowing at normal depth. Label and Identify all curves (i.e., M1, S2, etc.) Yn > Ye Уп Ye Уп> Ус yarrow_forward2. Design a trapezoidal ditch to carry Q = 1000 cfs. The ditch will be a lined channel, gravel bottom with sides shown below on a slope of S = 0.009. The side slopes of the 20-ft wide ditch will be 1 vertical to 3 horizontal. a) Determine the normal depth of flow (yn) using the Normal value for Manning's n. b) If freeboard requirements are 25% of the normal depth, how deep should the ditch be constructed? c) Classify the slope. T b Уп Z 1 Yn + FBarrow_forwardP15.45 WP A stainless steel pipe (Figure P15.45) with an outside diameter of 2.375 in. and a wall thickness of 0.109 in. is subjected to a bending moment M = 50 lb ft and an internal pressure of 180 psi. Determine the absolute maximum shear stress on the outer surface of the pipe. M FIGURE P15.45 Marrow_forward10.72 What power must the pump supply to the system to pump the oil from the lower reservoir to the upper reservoir at a rate of 0.3 m³/s? Sketch the HGL and the EGL for the system. p=940 kg/m³ v = 10-5 m²/s Elevation 100 m Elevation 112 m L= 150 m Oil Steel pipe D = 30 cm Problem 10.72arrow_forwardL / 83° 28° $75°E M 202° Q2: The scanning process was completed from point J to point N. The direction of the straight line was LM and the angles of deviation are shown in the figure below. Find the direction of the remaining sides? Narrow_forwardQ3: The scanning process was completed from point F to point G. The direction of the line Fl and the angles of deviation and interior are shown in the figure below. Find the direction of the remaining sides? Azimn = 60° F 52° 52° 72° R= 572.958/D ° T-R tan(A/2) • LC 2R sin (A/2) • E-R (sec(A/2)-1) • M-R (1-cos (A/2)) L= 10 A/D •C=2R sin(2D/2) • d=Dc/10 c' 2R sin (d/2) • Y= √√R2-X2-K • K= R2- K=R-M G H معادلات :مفيدةarrow_forwardPlease write me Background Reviews;arrow_forwardQ1/ The specific gravity of the soil is 1.41 percentage of water content by weight at field capacity and wilting point are 15% and 7% respectively calculate the equivalent moisture content as equivalent depth for 1.2m root zone : 1. at permanent wilting point 2. at field capacity 3. for ready available waterarrow_forwardKindy explain the pie chart percentage and give some related study and references about Value of travel time connected to the pie chartarrow_forwardConsider the specifications for an asphaltic concrete mixture and the results of a sieve analysis below. Coarse aggregates: Fine aggregates: Filler: 60% 35% 5% Percent of Weight of Aggregate or Filler Passing Sieve Designation Retained on Sieve Designation Coarse Aggregate Fine Aggregate Mineral Filler 3/4 in. (19 mm) 1/2 in. 6 1/2 in. (12.5 mm) 3/8 in. 15 3/8 in. (9.5 mm) No. 4 50 - No. 4 (4.75 mm) No. 10 20 1 No. 10 (2 mm) No. 40 (0.425 mm) No. 40 9 35 - No. 80 31 40 No. 80 (0.180 mm) No. 200 (0.075 mm) Total No. 200 - 33 - - 25 35 100 100 100 Determine the proportion of different aggregates to obtain the required gradation. Percent of Total Weight of Mixture Passing Sieve Designation Retained on Sieve Designation Coarse Aggregate Fine Aggregate 3/4 in. (19 mm) 1/2 in. (12.5 mm) 3/8 in. (9.5 mm) 1/2 in. 3/8 in. No. 4 No. 4 (4.75 mm) No. 10 No. 10 (2 mm) No. 40 No. 40 (0.425 mm) No. 80 No. 80 (0.180 mm) No. 200 No. 200 (0.075 mm) Total Need Help? Read It Mineral Filler Total 100arrow_forwardResults obtained from laboratory tests on a sample of RC-250 asphalt cement are given. Determine whether the properties of this material meet the Asphalt Institute specifications for this type of material; if not, note the differences. (For each specification, enter the minimum acceptab value in the same units as used in the test results.) • Kinematic viscosity at 140°F (60°C) = 230 centistokes • Flash point (Tagliabue open cup) = 89°F • Distillation test where distillate percent by volume of total distillate to 680°F (360ºC) • To 437°F (225°C) = 27% • To 500°F (260°C) = 69% • To 600°F (316°C) = 72% • Residue from distillation to 680°F (360°C) by volume percentage of sample by difference • Tests on Residue from Distillation: • Ductility at 77°F (25°C) = 92 cm • Absolute viscosity at 140°F (60°C) = 620 poises ⚫ Solubility = 90% Property Kinematic Viscosity = 74% Specification Test Results Were Specifications Met? centistokes 230 centistokes ---Select--- ✓ Flash Point °F 89°F…arrow_forwardProblem 2 Two machines produce rivets for a factory job. The number of sub-standard rivets per hour by the two machines are random variables, denoted by X1 and X2. The bivariate PMF of X1 and X2, Px,x,(x1,x2), is given in the table below. X2=0 X2=1 X2=2 X2=3 X₁-0 0.07 0.05 0.02 0.01 X₁ =1 0.05 0.16 0.12 0.02 X₁ =2 0.02 0.12 0.17 0.05 X₁ =3 0.01 0.01 0.05 0.07arrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_ios
- 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



