Concept explainers
Write a MATLAB program to evaluate the following mathematical expression. The equation should utilize a variable for x. Test the program with x = 30.
Want to see the full answer?
Check out a sample textbook solutionChapter 16 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- Q2: Write all the necessary steps to draw the following figure using relative coordinate system. For example; the draw of (L1, L2) as following > Dynamic input > of > Home> Draw> Line> 50,50>Enter>@100,0>Enter> @0,50 > Enter> and so on 100 100 100 100 A L1 L2 Start Point (50,50) 100 200 100 007 000 007arrow_forwardFix my MATLAB code. % Define unknown quantities in x-y system % abc = Acceleration of B wrt C on beam CD in i direction % vbc = Velocity of B wrt C on beam CD in i direction % xacd = Angular acceleration of beam CD in k direction % xvcd = Angular velocity of beam CD in k direction syms abc vbc xacd xvcd; % Create Unit Vectors in x-y coordinates i = [1,0,0]; j = [0,1,0]; k = [0,0,1]; % Create Unit Vectors in X-Y coordinates (R is rotation Matrix) Theta = 150; % Angle from X-axis to x-axis R = [[cosd(Theta),-sind(Theta), 0]; ... [sind(Theta), cosd(Theta), 0]; [0, 0, 1]]; XYZ = R*[i;j;k]; I = XYZ(1,:); J = XYZ(2,:); K = XYZ(3,:); % Set known quantities for Beam AB (no slider connection). xVab = -2.5*K; % Angular Velocity of Beam AB xAab = -3*K; % Angular Acceleration of Beam AB Rba = 0.2*(cosd(135)*I + sind(135)*J ); % Vector from A to B in X-Y % Calculate velocity and acceleration of point B % due to rotation of Beam AB (no slider connection). Vb1 = cross(xVab,Rba); Ab1 =…arrow_forwardQuestion 4 List the steps in details to draw the shape below using AutoCAD commands 190 220 50 -90 - 50 114 81 R80 450 122 -R125 68 65 290 50 290 630arrow_forward
- 2. There were 42 mangoes in each crate. 12 such crates of mangoes were delivered to a factory. 4 mangoes were rotten and had to be thrown away. The remaining mangoes were packed into boxes of 10 mangoes each. Write a numerical expression in MATLAB syntax to represent this situation and then find how many boxes of mangoes were there? OFocus 4:20 AM 28°C Mostly clear 3/26/2022 LG CVENUENS THANOS BOBBLEHEAD AMANLANTE A ON CABIA ANn POCKET YOP! AVENGES KEYCHAIN INFINITY WAR Handy Fan THANOS BOBBLE HEAD IGENA ERANLIA P COs CA ANarrow_forwardComplete the following sentence. The function returns true (1) if first n characters of two strings are identical. Submit Answerarrow_forwardPoints for stress vs strain (in image) Assume the compressive concrete strength (f’c) is 3,000 lb/in2 (psi)Calculate a cubic function (3rd order polynomial – Ax3+Bx2+Cx+Constant)Use this function to create a function that describes the slope of the cubic function (the derivative of thecubic function). This new function allows you to calculate the tangent to any point along the curve. Thetangent is the modulus of elasticity (E). The concrete code provides a formula to calculate E for concrete. That formula is:E = 57,000√??′, where f’c is in units of psi, and E is in units of psi.Use the derivative function you calculated to locate the point on the curve where the slope of the curvematches E using the concrete code formula. Express that stress point on the curve as a percentage ofthe compressive strength of the concrete. Now, calculate the secant modulus for the test case using 1,500 psi (50% f’c) as the arbitrary point onthe curve.Assume fracture occurs at the last point…arrow_forward
- docs.google.com/forms/d/e نقطة واحدة The right method to write this-6 equation in Matlab y=2sin(3t)+3e(- * .T) y=2sin(2t)+3exp(-pi) O y=2*sin(2*t)+3*exp(-t) y=2*sin(2*t)+3*exp(-pi) O نقطة واحدة To create black line color to plot-7 * . in matlab you select ('k') O (b) ('b') ("k") O نقطة واحدة To make reduction for the-8 .following connection wasarrow_forward2 3 4 5 6 1. (Make a MatLab code) Using for loop, write a script that will generate the all following multiplication table at once: 4 6 8 10 12 5 7 9 11 10 14 18 22 10 13 16 20 26 32 17 21 34 42 26 52arrow_forwardCreate the following images in AUTOCAD using web.autocad.com (Take screenshots of your work.) Design 3 6.50 1.50-- 3.50 1.00 1.00 4.00 1.00 1.75 2.75 4.75arrow_forward
- The Pascal triangle can be displayed as elements in a lower-triangular matrix as shown on the right. Write a MATLAB program that creates a n × n matrix that displays n rows of Pascal’s triangle. Use the program to create 4 and 7 rows Pascal’s triangles. (One way to calculate the value of the elements in the lower portion of the matrix isarrow_forwardsolve by assuming a value of ζ of 0.5 and plot X/Y vs r and then solve for K and C based on r and ζ. Then plot using the given MATLAB codearrow_forwardFor Questions 3 and 4: A cup of water was heated to a temperature of 90°. It was placed in a refrigerator that had a temperature of 11°C. The water cooled to a temperature of 17°C in 30 minutes. Let the following variables represent the relevant quantities. L = Temperature of the liquid S= Temperature of the surroundings t = Time B = Initial temperature of the liquid (Temperature at t = 0 k = Cooling constant 3. Using the Equation Solver, find the value of k in the equation L = (B - S)e -kt + S. Remember to set the equation equal to zero and then enter it into the Solver.arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY