Engineering Your Future
Engineering Your Future
9th Edition
ISBN: 9780190279264
Author: William C. Oakes, Les L. Leone
Publisher: Oxford University Press, USA
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, 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, 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, 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, Chapter C, Problem C.1E , additional homework tip  4

It resulted Engineering Your Future, 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!
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.
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