Thinking Like An Engineer: An Active Learning Approach, Student Value Edition (4th Edition)
Thinking Like An Engineer: An Active Learning Approach, Student Value Edition (4th Edition)
4th Edition
ISBN: 9780134640150
Author: STEPHAN, Elizabeth A.; Bowman, David R.; Park, William J.; Sill, Benjamin L.; Ohland, Matthew W.
Publisher: PEARSON
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 19, Problem 29ICA

Write a function named EvenSum that will accept a matrix of unknown size and return the sum of all elements at the intersection of even numbered rows and even numbered columns. Note that your function must work with any sixe matrix. Also note that if the matrix is a scalar or a vector, the function will return zero since there are no even numbered rows or columns in those cases. Accomplish this using two methods:

a.    a for loop without using built-in functions like sum

b.    direct matrix operations, no loops

EXAMPLE: For the matrix shown, A=EvenSum(Test); will place the value 13 in A.

The numbers added together are shown in red.

     = [ 1 3 5 7 9 0 1 2 3 4 6 4 2 1 8 3 5 2 4 0 ]

Blurred answer
Students have asked these similar questions
20-4-2025 Exam-2-Tribology Q1: What are the assumptions of hydrodynamic lubrication theory: Q2: Explain with sketch the cycle or process of engine lubrication system-pressurized lubrication system Q3: A short bearing is designed to operate with an eccentricity ratio = 0. 7. The journal diameter is 60 mm, and its speed is 1300 r.p.m. The journal is supported by a short hydrodynamic bearing of length L/D = 0. 5, and clearance ratio C/R = 103. The radial load on the bearing is 9800 N. a. Find the Sommerfeld number. b. Find the minimum viscosity of the lubricant for operating at ε = 0.7 c. Select a lubricant if the average bearing operating temperature is 70°c Q4: Two parallel circular disks of 100 mm diameter have a clearance of Imm between them. Under load, the downward velocity of the upper disk is 2 m/s. At the same time, the lower disk is stationary. The clearance is full of SAE 40 oil at a temperature of 60°c. a. Find the load on the upper disk that results in the instantaneous…
Tribobolgy 15/2022 Monthly Exam. Automobile Eng. Dert 2nd Semster/3rd class Max. Mark: 100% 7. Viscosity of multi-grade oils (a) Reduces with temperature (c) is less sensitive to temperature (b) Increases with temperature (d) None of the above 8. In a hydrodynamic journal bearing if eccentricity ratio = 1, it means (a) Journal/shaft is subjected to no load and the rotational speed is very high. (b) Journal is subjected to no load and the rotational speed is moderate (c) Journal is subjected to very light load and the rotational speed is very high. (d) Journal is subjected to very high load and the rotational speed is negligible. Q4/ The journal speed of a 100mm diameter journal is 2500 rpm. The journal is supported by a short hydrodynamic bearing of length L=0.6D, eccentricity ratio = 0.75 and a clearance ratio C/R=0.001. The radial load on the bearing is 10 kN. The lubricant is SAE 30, and the operating temperature of the lubricant in the bearing is 700C. 1- Assume…
1 of 2 Monthly Exam. Automobile Eng. Dert 2nd Semster/3rd class Max. Mark: 100% Q1/A/ Compare between the long and short journal bearings B/ With the help of Stribeck's curve, discuss different regimes of lubrication. C/ Explain the importance of Tribology in the design of different machine elements Q2 /A/ According to the SAE viscosity grading system all engine oils are divided into two classes: monograde and multi-grade. Compare between them? B/What are the differences between grease and Synthetic oils C/ Explain the effect of eccentricity ratio & with respect to hydrodynamic journal bearing. Q3/A/ What are the major factors which affect the selection of lubricants? B/What are the criteria to classify sliding bearings? C/ Answer of the following: 1. According to the SAE viscosity classification, the oil (SAE 40) is lower viscosity than the oil (SAE 20) at the same temperature. (True or False) 2. For a slow speed-highly loaded bearing, used oils of high viscosity; while for high-speed…

Chapter 19 Solutions

Thinking Like An Engineer: An Active Learning Approach, Student Value Edition (4th Edition)

Ch. 19.3 - Write a for loop to display every even number from...Ch. 19.3 - Write a for loop to display every multiple of 5...Ch. 19.3 - Write a for loop to display every odd number from...Ch. 19.3 - Assume a vector Vals has already been defined....Ch. 19.3 - Consider the following table of values. Determine...Ch. 19.3 - Write two nested for loops to determine how many...Ch. 19.3 - Assume a matrix MZ has already been defined. Write...Ch. 19.3 - Prob. 18CCCh. 19.3 - Determine the output of the following code:Ch. 19 - Prob. 1ICACh. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - For each of the following code segments, determine...Ch. 19 - a. Assume CA1 and CA2 are cell arrays that both...Ch. 19 - Fill in the table with the values of k, b, x, and...Ch. 19 - Assume that a simple menu has been created by the...Ch. 19 - Write a MATLAB program to implement the algorithm...Ch. 19 - Write a program that will ask the user to input a...Ch. 19 - Write a MATLAB program to implement the algorithm...Ch. 19 - Write a function named CountDown that accepts a...Ch. 19 - While experimenting with coding sequences, you...Ch. 19 - Answer the question with each of the following...Ch. 19 - For each of the following code segments, determine...Ch. 19 - a.Explain what the following function does,...Ch. 19 - For each of the following code segments, determine...Ch. 19 - Prob. 23ICACh. 19 - Prob. 24ICACh. 19 - Write a MATLAB program to implement the algorithm...Ch. 19 - Prob. 26ICACh. 19 - Write a function named GetArray that will accept...Ch. 19 - Assume the vector AM contains an even number of...Ch. 19 - Write a function named EvenSum that will accept a...Ch. 19 - Prob. 30ICACh. 19 - Write a function named CLASS that will accept a...Ch. 19 - You are assessing the price of various components...Ch. 19 - You are studying the number of defective parts...Ch. 19 - The pascal triangle an amazing number of uses,...Ch. 19 - Write a function named Prodstate that will accept...Ch. 19 - Design a flowchart for a program to help students...Ch. 19 - Create an algorithm to allow the user to enter a...Ch. 19 - Write a program to implement the algorithm...Ch. 19 - A zombie picks up a calculator and starts adding...Ch. 19 - Write a function called Balloon that will accept a...Ch. 19 - Prob. 7RQCh. 19 - Prob. 8RQCh. 19 - You are to program part of the interface for a...Ch. 19 - Prob. 13RQCh. 19 - A matrix names mach contains three columns of data...Ch. 19 - Prob. 15RQCh. 19 - You are programming the control system for a robot...Ch. 19 - Write a program to implement the GPA calculator...Ch. 19 - The Fibonacci sequence is an integer sequence...Ch. 19 - As early as 650 BC, mathematicians have been...Ch. 19 - Write a program to analyze the cooling of a cup of...Ch. 19 - After numerous experiments with a circuit...
Knowledge Booster
Background pattern image
Mechanical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Text book image
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Text book image
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Text book image
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Text book image
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Text book image
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Force | Free Body Diagrams | Physics | Don't Memorise; Author: Don't Memorise;https://www.youtube.com/watch?v=4Bwwq1munB0;License: Standard YouTube License, CC-BY