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: An Introduction to Engineering (MindTap Course List)
- What are some software tools that have been designed to produce an automatic quantity takeoff in construction?arrow_forwardWhen constructing a sand volleyball court how would you control drainage and erosion, mitigation dust and noise, and control traffic on the construction site?arrow_forwardWhat are the building code requirements when building an outdoor sand volleyball court in Kentucky?arrow_forward
- H.W. A soil profile is shown in figure below. Calculate the values of ot, o', u at points A, B, C and D. draw the variation of ot, o', u with the depth. 3m Water table 2.5m + 2m D Rock Dry sand, e=0.52, Gs=2.65 Sand, e=0.52, Gs=2.65 Clay, w=45%, e = 1.22arrow_forwardNo chatgpt pls will upvotearrow_forwardCalculate steel quantity in kg for CF3, CF4,CF5, CF6 from foundation layout and other footing? The depth of CF3, CF4,CF5 and CF6 are 50, 55,55 , 60 cm in order. Both long and short bar for CF3, CF4,CF5 and CF6 are Y14@15c/c T&B, Y14@15c/c T&B, Y14@15c/c T&B, Y14@12c/c T&B in order. 2. Calculate quantity of flexible sheet from foundation layout?arrow_forward
- (A): As shown in the rig. A hydraulic jump was occurred in a rectangular channel,the velocity of flow before and after the jump equal to 8 m/s and 2 m/s respectively. Find: The energy dissipation for the jump (AE) and what is the name of this jump. V1-8 m/s -V2-2 m/sarrow_forwardA cylinder of fluid has dimensions of 0.2 ft in diameter by 0.45 ft high. If the weight of thefluid is 0.55 lb , determine the specific gravity and density of fluid.arrow_forwardA cylinder of fluid has dimensions of 0.2 ft in diameter by 0.45 ft high. If the weight of thefluid is 0.55 lb , determine the specific gravity and density of fluid.arrow_forward
- A cylinder of fluid has dimensions of 0.2 ft in diameter by 0.45 ft high. If the weight of thefluid is 0.55 lb , determine the specific gravity and density of fluid.arrow_forwardDraw the shear and bending moment diagrams and find the immediate deflection for a simply supported beam of length 20 ft. with the same live load at ½ span and cross-section as the previous problem. Assume a reasonable Modulus of Elasticity and concrete self-weight. Hint: You may look online for typical concrete self-weights and compressive strengths. You may also use the ACI 318 Code equation for the Modulus of Elasticity shown below, and the supplied Design Aids.arrow_forwardProblem 4. A major transmission pathway of the novel coronavirus disease 2019 (COVID- 19) is through droplets and aerosols produced by violent respiratory events such as sneezes and coughs (Fig. 1). For the purpose of providing public health guidelines, we would like to estimate the amount of time it takes for these droplets to settle from air to the ground. The relevant parameters are the settling time (ts), the initial height of the droplets (H), gravitational acceleration (g), density of the droplets (pa), radius of the droplets (R), as well as dynamic viscosity of the ambient air (Pair). Use dimensional analysis and the Buckingham theorem to answer the following questions: 1. Find the independent dimensionless parameters using the table method. Then, express the settling time as a function of the other relevant parameters. Your solution should match the physical intuition that the settling time scales linearly with the initial height. 2. How would the settling change if the…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