
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 is the vertical deflection at joint C of the truss shown? 75 kN 9 m 7 (3000 mm²) (3000 mm²) (2000 mm²) (3000 mm²) (2000 mm²) 100 kN (3000 mm²) H (3000 mm²) (2000 mm²) (2000 mm²) (3000 mm²)B(3000 mm²) C(3000 mm²)D(3000 mm2)5 a. 9.3 mm↓ b. 9.6 mm↓ c. 8.0 mm ↓ d. 9.1 mm↓ 4 at 6 m = 24 m E = 200 GPa Earrow_forwardINVERSE FROM POINT A TOWARDS POINT B GIVEN THE FOLLOWINGCOORDINATE VALUES: POINT AN=13,163,953.37'E=3,072,227.10' POINT BN=13,163,463.03'E=3,072,129.30' FIND THE FOLLOWING:DISTANCE FROM A TO BNORTH AZIMUTH (NAZ) FROM A TOWARDS BBEARING OF THE LINE FROM A TOWARDS Barrow_forwardFORWARD FROM POINT B TO POINT A GIVEN THE FOLLOWING: POINT BN=13,163,463.03'E=3,072,129.30' DIRECTION FROM B TO A (NAZ)=276.07529° DISTANCE FROM B TO A = 10.00'arrow_forward
- A cheetah is crouched 20 m to the east of an observer. At time t = 0 s, the cheetah begins to run due east toward an antelope that is 50 m to the east of the observer. During the first 2.0 s of the attack, the cheetah's coordinate x varies with time according to the equation x = 20 + 5t?. (a) Find the cheetah's displacement between t1 = 1.0 s and t2 = 2.0 s. (b) Find its average velocity during that interval. (c) Derive an expression for the cheetah's instantaneous velocity as a function of time, and use it to find Vy at t = 1.0 s and t = 2.0 s.arrow_forwardWrite at least 20 words for vocabulary and 10 verbs .for simple present, past, and past participlesarrow_forwardCan you compute the Panel Board Management while using the Lighting and Power Layout Plan as the base for it? The attached Panel Board Management picture is just an example. ps. not graded, I just want to know how to compute it based on a planarrow_forward
- Make Sure the attached pic is correct, because the answer in mannings equation is wrong. Can you design a (Open Channel): -Most Efficient Section (Rectangular Shape) -Cost Estimate -Structural Analysis Design Requirements: Bed Slope= 1:1500 Manning's (n)= 0.015 Discharge: Q= 18 m^3/sarrow_forward2-7 The force P applied at joint D of the square frame causes the frame to sway and form the dashed rhombus. Determine the average normal strain developed in wire AC. Assume the three rods are rigid. I understand how you calculate length LAC its just the sqrt(400^2+400^2) = 565.685mm. I do understand that you have to take LAC'-LAC/LAC to get .0258mm/mm. I'm just not understanding the cosine law used to calculate LAC'. I guess what I'm asking is why do you use cos instead of sin or tangent? I've been trying to understand why that was used for a bit now and it's probably something simple I'm forgetting. If you can, please clarify it in detail. Thank you so much!arrow_forwardTraffic flow on a three-lane (one direction) freeway can be described by the Greenshields model. One lane of the three lanes on a section of this freeway will have to be closed to undertake an emergency bridge repair that is expected to take 2 hours. It is estimated that the capacity at the work zone will be reduced by 30 percent of that of the section just upstream of the work zone. The mean free flow speed of the highway is 70 mi/h and the jam density is 150 veh/mi/In. If it is estimated that the demand flow on the highway during the emergency repairs is 85 percent of the capacity, using the deterministic approach, determine the following. (a) the maximum queue length (in veh) that will be formed veh (b) the total delay (in h) h (c) the number of vehicles that will be affected by the incident veh (d) the average individual delay (in min) minarrow_forward
- Non-constant sections are used in bridges without changing the appearance of the bridge significantly. Refer to the figure below. Compute the ratio of moment inertial after to before of the plate girder shown (greater than 1). A 10x0.5" steel plate of the same grade as the plate girder and is fillet welded to the flangesarrow_forward8-18. Determine the vertical displacement of joint C if member CD is fabricated 10 mm too long. 4m D E B Carrow_forward8-17. Determine the vertical displacement of joint C if members AB and BC experience a temperature increase of ST = 50°C. Take a = 12(10-6)/°C. A 4 m E 4 m 4 m B Darrow_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



