Engineering Your Future: Comprehensive
Engineering Your Future: Comprehensive
8th Edition
ISBN: 9780199348015
Author: William C. Oakes, Les L. Leone
Publisher: Oxford University Press
bartleby

Concept explainers

Question
Book Icon
Chapter C, Problem C.1E
To determine

a)

Use the lookfor command to find the MATLAB commands that deal with “sine”.

Expert Solution
Check Mark

Answer to Problem C.1E

Using lookfor command we can find the MATLAB command which deals with sine.

Explanation of Solution

Given:

Look for command.

Calculation:

Syntax.

Y = sind(x)

Here we can describe the syntax as.

Y = sind(x) which gives the sine of the elements in x, which are shown in degree.

for calculating sind(180) SOLUTION will be zero because 180 degree compare to sine of pi radian.

So, value of sin(pi) = 1.2246e-16.

Conclusion:

Lookfor command use for finding matlab functions.

To determine

b)

Use the lookfor command to find the MATLAB commands that deal with “plot”.

Expert Solution
Check Mark

Answer to Problem C.1E

Using lookfor command we can find the MATLAB command which deals with plot.

Explanation of Solution

Given:

Lookfor command.

Calculation:

By using plot function in matlab command, can be plot the graph by performing following steps.

1. define x, by deciding the range of value for the variable x, for that function is to be plotted.

2. define the function, y = f(x)

3. call the plot command as plot(x, y)

For example, plotting simple function y = x, and the range of values for x from 0 to 100, with an increment of 5.

Code will be x = [0:5:100];

y = x;

plot (x, y)

when you execute the file, MATLAB displays the below plot as:

Engineering Your Future: Comprehensive, Chapter C, Problem C.1E , additional homework tip  1

Conclusion:

Lookfor command use for finding matlab functions.

To determine

c)

Use the lookfor command to find the MATLAB commands that deal with “logarithm”.

Expert Solution
Check Mark

Answer to Problem C.1E

Using lookfor command we can find the MATLAB command which deals with logarithm.

Explanation of Solution

Given:

Lookfor command.

Calculation:

LOG function in MATLAB whose base is 10 logarithm and it is calculated as log10.

It is natural logarithm.

lookfor logarithm.

the result shown below:

LOGSPACE logarithm spaced vector.

LOG Natural logarithm.

LOG10 common base10 logarithm.

LOG2 Base2 logarithm and dissect floating point number,

BETALN Logarithm of beta function,

GAMMALN logarithm of gamma function.

LOGM Matrix logarithm.

Conclusion:

Lookfor command use for finding matlab functions.

To determine

d)

Use the lookfor command to find the MATLAB commands that deal with “variable”.

Expert Solution
Check Mark

Answer to Problem C.1E

Using lookfor command we can find the MATLAB command which deals with variable.

Explanation of Solution

Given:

Lookfor command.

Calculation:

In MATLAB environment, every variable is an array or matrix.

We can assign variables as x = 3; defining x and starting with a value.

x = 3.

Engineering Your Future: Comprehensive, Chapter C, Problem C.1E , additional homework tip  2

It creates a 1 by 1 matrix named x and stores the value in its element.

Let us have example, x = sqrt(16);

Engineering Your Future: Comprehensive, Chapter C, Problem C.1E , additional homework tip  3

Conclusion:

Lookfor command use for finding matlab functions.

To determine

f)

Use the lookfor command to find the MATLAB commands that deal with “path”.

Expert Solution
Check Mark

Answer to Problem C.1E

Using lookfor command we can find the MATLAB command which deals with path.

Explanation of Solution

Given:

Lookfor command.

Calculation:

It is must ensure before loading file in MATLAB that it can find the files. Initially MATLAB look in current directory after that it find paths which is previously saved.

To explore the path available in MATLAB type “path” at MATLAB prompt. MATLAB would search files that we want or follow by the list of the directories.

Conclusion:

Lookfor command use for finding matlab functions.

To determine

g)

Use the lookfor command to find the MATLAB commands that deal with “exponential”.

Expert Solution
Check Mark

Answer to Problem C.1E

Using lookfor command we can find the MATLAB command which deals with exponential.

Explanation of Solution

Given:

Lookfor command.

Calculation:

Syntax a = exp(b)

If a = exp(b) will return exponential ex for each element in array b.

For complex elements Engineering Your Future: Comprehensive, Chapter C, Problem C.1E , additional homework tip  4

It resulted Engineering Your Future: Comprehensive, Chapter C, Problem C.1E , additional homework tip  5

Conclusion:

Lookfor command use for finding matlab functions.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Continuity equation A y x dx D T معادلة الاستمرارية Ly X Q/Prove that ди хе + ♥+ ㅇ? he me ze ོ༞“༠ ?
Q Derive (continuity equation)? I want to derive clear mathematics.
motor supplies 200 kW at 6 Hz to flange A of the shaft shown in Figure. Gear B transfers 125 W of power to operating machinery in the factory, and the remaining power in the shaft is mansferred by gear D. Shafts (1) and (2) are solid aluminum (G = 28 GPa) shafts that have the same diameter and an allowable shear stress of t= 40 MPa. Shaft (3) is a solid steel (G = 80 GPa) shaft with an allowable shear stress of t = 55 MPa. Determine: a) the minimum permissible diameter for aluminum shafts (1) and (2) b) the minimum permissible diameter for steel shaft (3). c) the rotation angle of gear D with respect to flange A if the shafts have the minimum permissible diameters as determined in (a) and (b).
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