MATLAB: AN INTRODUCTION WITH APPLICATIO
MATLAB: AN INTRODUCTION WITH APPLICATIO
6th Edition
ISBN: 9781119626596
Author: GILAT
Publisher: WILEY
bartleby

Videos

Question
Book Icon
Chapter 6, Problem 1P
To determine

(a)

To evaluate:

The expression 6×4>323 without using MATLAB then check the answer with MATLAB.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The value of the expression 6×4>323 is 0.

Explanation of Solution

The given expression is,

6×4>323

Assign 1 if the comparison is correct otherwise assign 0.

Simplify the above equation,

6×4>32324>290

Write the MATLAB script to evaluate the expression 6×4>323.

MATLAB Code:

%Evaluate the expression

6.*4>32-3

%Assign 1 if the comparison is correct otherwise assign 0.

Save the MATLAB script with name, Chapter6_56830_6_1Pa.m in the current folder. Execute the script by typing the script name at the command window to evaluate the expression 6×4>323.

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 6, Problem 1P , additional homework tip  1

Conclusion:

Therefore, the value of the given expression is 0.

To determine

(b)

To evaluate:

The expression y=4×37<153>1 without using MATLAB then check the answer with MATLAB.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The value of the expression y=4×37<153>1 is 1.

Explanation of Solution

The given expression is,

y=4×37<153>1

Assign 1 if the comparison is correct otherwise assign 0.

Simplify the above equation,

y=4×37<153>1(5<5)>10>11

Write the MATLAB script to evaluate the expression y=4×37<153>1.

MATLAB Code:

%Evaluate the expression

y = 4*3-7<15./3>-1

%Assign 1 if the comparison is correct otherwise assign 0.

Save the MATLAB script with name, Chapter6_56830_6_1Pb.m in the current folder. Execute the script by typing the script name at the command window to evaluate the expression y=4×37<153>1.

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 6, Problem 1P , additional homework tip  2

Conclusion:

Therefore, the value of the given expression is 1.

To determine

(c)

To evaluate:

The expression y=2×(3<8/4+2)2<(2)3 without using MATLAB then check the answer with MATLAB.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The value of the expression y=2×(3<8/4+2)2<(2)3 is 0.

Explanation of Solution

The given expression is,

y=2×(3<8/4+2)2<(2)3

Assign 1 if the comparison is correct otherwise assign 0.

Simplify the above equation,

y=2×(3<8/4+2)2<(2)32×(9<16)<(2)3(18<32)<8

Simplify the above equation,

0<80 Write the MATLAB script to evaluate the expression y=2×(3<8/4+2)2<(2)3.

MATLAB Code:

%Evaluate the expression

y = 2*(3<8/4+2).^2<-2.^3

%Assign 1 if the comparison is correct otherwise assign 0.

Save the MATLAB script with name, Chapter6_56830_6_1Pc.m in the current folder. Execute the script by typing the script name at the command window to evaluate the expression y=2×(3<8/4+2)2<(2)3.

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 6, Problem 1P , additional homework tip  3

Conclusion:

Therefore, the value of the given expression is 0.

To determine

(d)

To evaluate:

The expression (5+0)/3==3(10/52) without using MATLAB then check the answer with MATLAB.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The value of the expression (5+0)/3==3(10/52) is 1.

Explanation of Solution

The given expression is,

(5+0)/3==3(10/52)

The sign ~ represents NOT operation. Assign 0 if NOT operation contains non-zero term otherwise assign 1.

Assign 1 if the comparison is correct otherwise assign 0.

Simplify the above equation,

(5+0)/3==3(10/52)2==312==21

Write the MATLAB script to evaluate the expression (5+0)/3==3(10/52).

MATLAB Code:

%Evaluate the expression

(5+~0)/3==3-~(10/5-2)

%Assign 1 if the comparison is correct otherwise assign 0.

Save the MATLAB script with name, Chapter6_56830_6_1Pd.m in the current folder. Execute the script by typing the script name at the command window to evaluate the expression (5+0)/3==3(10/52).

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 6, Problem 1P , additional homework tip  4

Conclusion:

Therefore, the value of the given expression is 1.

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
21. ANALYSIS OF LAST DIGITS Heights of statistics students were obtained by the author as part of an experiment conducted for class. The last digits of those heights are listed below. Construct a frequency distribution with 10 classes. Based on the distribution, do the heights appear to be reported or actually measured? Does there appear to be a gap in the frequencies and, if so, how might that gap be explained? What do you know about the accuracy of the results? 3 4 555 0 0 0 0 0 0 0 0 0 1 1 23 3 5 5 5 5 5 5 5 5 5 5 5 5 6 6 8 8 8 9
A side view of a recycling bin lid is diagramed below where two panels come together at a right angle. 45 in 24 in Width? — Given this information, how wide is the recycling bin in inches?
1 No. 2 3 4 Binomial Prob. X n P Answer 5 6 4 7 8 9 10 12345678 8 3 4 2 2552 10 0.7 0.233 0.3 0.132 7 0.6 0.290 20 0.02 0.053 150 1000 0.15 0.035 8 7 10 0.7 0.383 11 9 3 5 0.3 0.132 12 10 4 7 0.6 0.290 13 Poisson Probability 14 X lambda Answer 18 4 19 20 21 22 23 9 15 16 17 3 1234567829 3 2 0.180 2 1.5 0.251 12 10 0.095 5 3 0.101 7 4 0.060 3 2 0.180 2 1.5 0.251 24 10 12 10 0.095

Chapter 6 Solutions

MATLAB: AN INTRODUCTION WITH APPLICATIO

Ch. 6 - The Pascal triangle can be displayed as elements...Ch. 6 - Fibonacci numbers are the numbers in a sequence in...Ch. 6 - The reciprocal Fibonacci constant ?is defined by...Ch. 6 - The value of p can be estimated from:...Ch. 6 - The value of p can be estimated from the...Ch. 6 - Write a program that (a) generates a vector with...Ch. 6 - A vector is given by x= [9 -1.5 13.4 13.3 -2.1 4.6...Ch. 6 - The Pythagorean theorem states that a2+ b2= c2....Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - A safe prime is a prime number that can be written...Ch. 6 - Sexy primes are two prime numbers that the...Ch. 6 - A Mersenne prime is a prime number that is equal...Ch. 6 - A perfect number is a positive integer that is...Ch. 6 - A list of exam scores (S) (in percent out of 100%...Ch. 6 - The Taylor series expansion for axis:...Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - The following are formulas for calculating the...Ch. 6 - Body mass index (BMI) is a measure of obesity. In...Ch. 6 - Write a program in a script file that calculates...Ch. 6 - Write a program that determines the change given...Ch. 6 - The concentration of a drug in the body CPcan be...Ch. 6 - One numerical method for calculating the cubic...Ch. 6 - Write a program in a script file that converts a...Ch. 6 - In a one-dimensional random walk, the position x...Ch. 6 - The Sierpinski triangle can be implemented in...Ch. 6 - The roots of a cubic equation a3x3+a2x2+a1x+a0=0...Ch. 6 - The overall grade in a course is determined from...Ch. 6 - A Keith number is a number (integer) that appears...Ch. 6 - The following MATLAB commands create a sine-shaped...
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc
Text book image
Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning
Text book image
Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning
Text book image
Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON
Text book image
The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman
Text book image
Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman
Ring Examples (Abstract Algebra); Author: Socratica;https://www.youtube.com/watch?v=_RTHvweHlhE;License: Standard YouTube License, CC-BY
Definition of a Ring and Examples of Rings; Author: The Math Sorcerer;https://www.youtube.com/watch?v=8yItsdvmy3c;License: Standard YouTube License, CC-BY