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)
- Note: Provide a clear, step-by-step, simplified handwritten solution (no explanations), ensuring it is completed without any AI involvement. The solution must demonstrate expert-level accuracy and will be evaluated for its quality and precision. Please refer to the provided image for additional clarity. Double-check all calculations for correctness before submission. Thank you!. Question 1: (refer to the image for visual understanding) For the soil element shown on the right: a) Draw the Mohr’s circle for this case b) Find the major and minor principal stresses c) Find the normal and shear stresses on plane AB. Question 2: (refer to the image) A soil sample in a triaxial test with a cell pressure of 100 kPa fails when the vertical stress reaches 400 kPa. The resulting failureplane is observed to dip 60 degrees from horizontal (see figure). Assume that the soil is drained during the test, i.e. there is no pore pressure. a) Determine the friction angle of the soil. Hint: draw the…arrow_forwardPlease solve all pointsarrow_forward1: find out the optimal solution: 1- Reliability Function 2- Serial Configuration 3- M.T.T.F 4- Probability distribution function (P.D.F) 5- Failure rate function :calculate the reliability of the system for the following Figure 0.90 0.80 0.95 0.80 0.80 0.94) 0.80 : A system containing four connected compounds in series, each one has a distribution and its parameters as shown in the table below Component Scale parameter Shape parameter 1 100 1.20 2 150 0.87 3 510 - 1.80 4 720 1.00arrow_forward
- Time: 1. Hrs During the last ten days: In one of the productive operations, the electronic control calculator equipped with No. of defects for a specific volume of samples as shown: 10 9 8 7 6 5 4 3 2 1 Day No. 6673 6976 7505 6991 7028 6960 7916 7010 6591 7350 Total No. 53 55 60 58 16 22 49 48 64 17 Defect No. DRAW THAT & CHOOSE THE BEST A-P chart. B-C chart 1. Key functions of quality control include: A) Control of design, materials received and products and conduct studies of operations B-Design and develop reasonable specifications C) The use of equipment that gives the required accuracy D) Provide appropriate screening equipment 2. The basic principles of critical pathways are: A-fragmentation of the system to the objectives of the secondary clear and specific B-Drawing the network diagram C-Finding the critical path D- All of the above 3- The production system is the following: A-An integral part of the plant's completion B-An effective system to integrate the efforts of various…arrow_forwardPlease solve all pointsarrow_forwardPlease solve all pointsarrow_forward
- Please solve the question by hand with a detailed explanation of the steps.arrow_forward) We started a new production process and its study gave the total deviations The standard value (for 25 samples of the product, sample size 4) is .105 .Calculate the capacity of this process The product specification limits are: 6.30 = LSL 6.50 = USL Standard deviation in a manufacturing system is 0.038 = We made improvements to the system and the deviation has become Standard 0.030 = σ What is required is to calculate the estimated coefficient before and after the operation Optimization. What is your conclusion? : A find out the optimal solution: 1-Average Outgoing Quality AOQ 2- operating Characteristics Curve 100% Inspection 3-Acceptable Quality level 4- Average outgoing Quality AOQ 5- Capability Index CPKarrow_forwardFollowing are the data of gauge and discharge collected at a particular section of the river by stream gauging operation. Gauge reading Discharge Gauge reading Discharge (m) (cms) (m) (cms) 7.65 15 8.48 170 7.70 30 8.98 400 7.77 57 9.30 600 7.80 39 9.50 800 7.90 60 89 10.50 1500 7.91 100 11.10 2000 8.08 150 11.70 2400 1. Develop a rating curve for this stream at this section for use in estimating the discharge for a known gauge reading and fit a linear regression equation for use in estimation of stage for a known value of discharge. Use a value of 7.50 as the gauge reading corresponding to zero discharge. (20 pts) Equation 1 arith 2. What is the coefficient of correlation of the derived relationship? (10 pts) R2² arith Equation 2 log R2 log 3. Determine the stage for a discharge of 3500 cms (5 pts) 4. Determine the discharge for a stage of 15 m (5 pts) NB Do both arithmetic and logarithmic plotsarrow_forward
- Q2/ A (2m x 4 m) rectangular flexible foundation is placed above the ground surface (G.S) for two layers of clay, each layer 10 m thick. The modulus of Elasticity (E.) of the upper layer is 13 MN/m² and that of the lower layer is 15 MN/m². The Poisson ratio is (u, = 0.6) for the two layers. The pressure (stress) of 100 kN/m²is distributed along the surface of foundation. Determine the rigid immediate settlement at the corner of the foundation using Elastic theory method?arrow_forwardQ1/ Find the maximum allowable load for a square foundation (3 m x 3 m) placed vertically in cohesive soil? (Use Terzaghi equation) Note: Yt=Yeat=18 kN/m³ Depth of foundation = 1.5 m Depth of water table below the ground surface = 0.8 m Factor of safety 3 C=20 Yw = 10 kN/m³ = No vertical or inclined loadsarrow_forwardP.3.3 Oil of sp.gr. 0.9 flows through a vertical pipe (upwards). Two points A and B one above the other 40 cm apart in a pipe are connected by a U-tube carrying mercury. If the difference of pressure between A and B is 0.2 kg/cm², 1- Find the reading of the manometer. 2- If the oil flows through a horizontal pipe, find the reading in manometer for the same difference in pressure between A and B. Ans. 1- R= 0.12913 m, 2- R = 0.1575 m,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