0% found this document useful (0 votes)
55 views

Essentials of MATLAB Programming 3rd Edi

Uploaded by

Godfrey Jř
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Essentials of MATLAB Programming 3rd Edi

Uploaded by

Godfrey Jř
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

Full file at https://testbankuniv.

eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

(a) The size of is 4 × 5. (b) The value of . / 0 is 23.5. (c)


. / 0 is a 4 × 3 array consisting of the first, third, and fifth columns of :

! "

(d) .1 2/ 0 consists of the elements in the first and third rows on the last column
of :

3 # $!

(a) Legal (b) Illegal—names must begin with a letter. (c) Legal (d) Illegal—names must begin
with a letter. (e) Illegal—the apostrophe and the question mark are illegal characters.

(a) This is a three element row array containing the values 2, 5, and 8:

3 %

(b) This is a 3 × 3 element array containing three identical columns:

3 & # $
4

(c) This is a 2 × 2 element array containing the first and third rows and columns of 4:

3 ' & !

(d) This is a 1 × 3 row array containing the sum of (= [2 5 8]) plus the second row of 4 (= [5 5
5]):

3 & !

5
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

(e) This is a 1 × 9 row array containing:

3 #( )* ! ) * ! " $

that the expression 5 is the same as , because the transpose operator applies to the
single element 5 only: 5 . Both expressions produce the row array 1 2. To produce a
column array, we would write the expression as . 05, so that the transpose operator applied to
the entire vector.

(f) This statement swaps the first and third rows in the second column of array 4:

3 & # $! & # $!
4

(g) This statement produces nothing, because even the first element (1) is below the termination
condition (5) when counting down:

3 "

6" & " & 4

(a) This is the third row of the array:

3 !

(b) This is the third column of the array:

3 !

(c) This array consists of the first and third rows and the third and fourth columns of , with
the third column repeated twice:

3 !# $

(d) This array consists of the first row repeated twice:

3 # $!

6
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

(a) This statement displays the number using the normal MATLAB format:

3 * # + * + $
7 -%

(b) This statement displays the number as an integer:

3 * # + * + $
7 -%

(c) This statement displays the number in exponential format:

3 , , + - . ! +
7 -%

(d) This statement displays the number in floating2point format:

3 , , + -,. ! +
7 -%

(e) This statement displays the number in general format, which uses an exponential form if the
number is too large or too small.

3 , , + -/. ! +
7 -%

(f) This statement displays the number in floating2point format in a 122character field, with 4 digits
after the decimal point:

3 , , + - 0 ,. ! +
7 -%

The results of each case are shown below.

(a) Legal: This is element2by2element addition.

3 * + &
%-&

1 0 
(b) Legal: This is matrix multiplication. Since . 0 is the 2 × 2 identity matrix   , the
0 1
result of the multiplication is just the original matrix .

3 * +
%-&

7
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

(c) Legal: This is element by element array multiplication

3 * + 0
%-&

(d) Legal: This is matrix multiplication

3 * + '
%-&

(e) Illegal: This is element by element array multiplication, and the two arrays have different sizes.

(f) Legal: This is matrix left division

3 * + . &
%-&

(g) Legal: This is element by element array left division: 4. 0 8 . 0

3 * + 0. &
%-&

(h) Legal: This is element by element exponentiation

3 * + 0 &
%-&

(a) 8.2 (b) 8.2 (c) 1.0 (d) 729 (e) 6561 (f) 729 (g) 4 (h) 4 (i) 3

(a) 0.0 + 25.0i (b) 20.6224i

The solution to this set of equations can be found using the left division operator:

3 # 01 "01 01 01 01 01 000
01 01 "01 01 201 01 000
01 201 01 "01 01 01 000
01 01 201 "01 01 01 000
01 201 01 01 201 01 000
01 01 01 01 "01 01 $

3 & # 101 01 201 101 201 01$


3 .&

8
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

A program to plot the height and speed of a ball thrown vertically upward is shown below:

9 : & ; - 4 -- "
9
9 <% $
9 )$ - %- & - &! & = &$ $; 4 --
9 &! $ % & % ; ! >!&
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 > ( - & $ % &$ > 7 & ."8 B 0
9 ! C >!& ."0
9 ! D & - ! >!& ."0
9 & ) " . 0
9 7 E & - : ."8 0
9 7 D & - E & - : ."8 0

9 D & - F &! - & $ % &$ > 7 &


> G

9 < $" & &! % ;$ &! & - 7 -$ &


7 %&.56 & &! & - 7 -$ & $; &! 4 -- 50G

9 < $" & &! % ;$ &! & - ! >!&


! %&.56 & &! & - ! >!& $; &! 4 -- 50G

9 H -- - %- & &! ! >!& ;$ &! ; &


9 $ $; ;- >!& .I$& &! & &! $> " 4
9 ; ;% &! $ - !$ &$ % -$$
9 - & ! & J$ $ / $ 5& , $ !$ &$ & &
9 &! $ & ! &! 4 -- &! $%>! &! > $%
9 & ! >!& 0
& G
! F $ . F .&00G
7 F $ . F .&00G
! K > K & B 7 K & ! G
7 > K & 7 G

9 # - &! %-&
-$&.&/!/&/70G
& &- .5<-$& $; ! >!& 7 & " 50G
- 4 -.5) " . 050G

9
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

- 4 -.5C >!& ."0 : ."8 050G


- > .5C >!&5/5: 50G
> $ G

When this program is executed, the results are:

3 & ++
6 & &! & - 7 -$ & $; &! 4 -- 1
6 & &! & - ! >!& $; &! 4 -- 1

A program to calculate the distance between two points in a Cartesian plane is shown below:

9 : & ; - & "


9
9 <% $
9 )$ - %- & &! & 4 & & $ $ & $
9 & -
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 & # & 4 & $ &
9 / <$ &
9 / <$ &

9 < $" & &! % ;$ &! %& $ &


10
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

%&.56 & 50G


%&.56 & 50G
%&.56 & 50G
%&.56 & 50G

9 - %- & &
& L &.. 0B . 0B 0G

9 ) -- %
.15)! & 5 %" & . &020G

When this program is executed, the results are:

3 *
6 &
6 &
6 & 2
6 & 2
)! &

A program to calculate the distance between two points in a Cartesian plane is shown below:

9 : & ; - & "


9
9 <% $
9 )$ - %- & &! & 4 & & $ $ & $
9 &! " $ - & -
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 & # & 4 & $ &
9 / / F <$ &
9 / / F <$ &

9 < $" & &! % ;$ &! %& $ &


%&.56 & 50G
%&.56 & 50G
F %&.56 & F 50G
%&.56 & 50G
%&.56 & 50G
F %&.56 & F 50G

9 - %- & &
& L &.. 0B . 0B .F F 0B 0G

9 ) -- %
.15)! & 5 %" & . &020G

11
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

When this program is executed, the results are:

3 *
6 &
6 &
6 & F
6 &
6 &
6 & F
)! &

A program to calculate power in dBm is shown below:

9 : & ; - 4 - "
9
9 <% $
9 )$ - %- & &! +" $ $ > &$ % % -
9 $ &&
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 +" <$ +"
9 <$ &&

9 < $" & &! % ;$ &! %& $


%&.56 & &! $ && 50G

9 - %- & +"
+" K -$> . 8 0G

9 ) -- %
.15<$ 5 %" & . +"0 5 +"520G

When this program is executed, the results are:

3 ' & +
6 & &! $ && 1
<$ +"
3 ' & +
6 & &! $ && 10
<$ +"

When this program is executed, the results are:

9 : & ; - 4M -$& "


9
9 <% $
9 )$ -$& $ && 7 $ +" $ -
9 -$> -

12
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 +" <$ +"
9 <$ &&

9 & $; $ &&
G

9 - %- & $ +"
+" K -$> . 8 0G

9 <-$& $ - -
; >% . 0G
-$&. +"/ 0G
& &- .5<-$& $; $ && 7 $ +"50G
- 4 -.5<$ . +"050G
- 4 -.5<$ . && 050G
> $ G

9 <-$& $ " -$> -


; >% . 0G
" -$> . +"/ 0G
& &- .5<-$& $; $ && 7 $ +"50G
- 4 -.5<$ . +"050G
- 4 -.5<$ . && 050G
> $ G

13
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

When this program is executed, the results are:

A program to calculate and plot the power consumed by a resistor as the voltage across the resistor
is varied from 1 to 200 volts shown below:
14
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

9 : & ; - M &$ "


9
9 <% $
9 )$ -$& &! $ $ %" 4 &$ ;% & $
9 $; &! 7$-& > $ &! &$ $ 4$&! -
9 -$> -
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 % & &! &$ .(0
9 <$ &! &$ .H0
9 ? & $; &$ .$!" 0
9 7 E$-& > $ &! &$ .E0
9 7 M 4 E$-& > $ &! &$ . +H0

9 : & &! &


G

9 & $; 7$-& > $ &! &$


7 G

9 - %- & &! % & ;-$ &! $%>! &! &$


7 8 G

9 - %- & &! $ $ %" 4 &! &$ &&


K 7 G

9 - %- & &! $ $ %" 4 &! &$ +H


M 4 K -$> . 0G

9 <-$& $ - -
; >% . 0G
-$&.7 / 0G
& &- .5<-$& $; $ && 7 7$-& > 7$-& 50G
- 4 -.5E$-& > .E050G
- 4 -.5<$ . && 050G
> $ G

9 <-$& $ " -$> -


; >% . 0G
-$&.7 / M 40G
& &- .5<-$& $; $ +H 7 7$-& > 7$-& 50G
- 4 -.5E$-& > .E050G
- 4 -.5<$ . +H050G
> $ G

15
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

The resulting plots are shown below.

16
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

(a) A program that accepts a 3D vector in rectangular coordinates and calculates the vector in
spherical coordinates is shown below:

9 : & ; - & ! - "


9
9 <% $
9 )$ - %- & &! ! - $$ & $; 7 &$ > 7
9 &! # & >%- $$ &
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 / / F ? & >%- $$ & $; 7 &$
9 * >&! $; 7 &$
9 &! & # & $ $; 7 &$ . / 0 - / >
9 ! 6- 7 & $ >- $; 7 &$ / >

9 < $" & &! % ;$ &! %& $ &


%&.56 & 50G
%&.56 & 50G
F %&.56 & F 50G

9 - %- & $- $$ & I$& &! & N 8 N $ 7 &


9 ; $" &$ >
L &. B B FB 0G
&! & & . / 0 K 8 G
! & .F/ L &. B B 00 K 8 G

9 ) -- %
.5)! ! - $$ & 50G
.15 5 %" & . 020G
.15&! & 5 %" & .&! & 020G
.15 ! 5 %" & . ! 020G

When this program is executed, the results are:

' * ' +
6 &
6 &
6 & F 1
)! ! - $$ &

&! &
!

' * ' +
6 &
6 & 1
6 & F
)! ! - $$ &

17
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

&! &
!

(b) A program that accepts a 3D vector in spherical coordinates (with the angles θ and ϕ in
degrees) and calculates the vector in rectangular coordinates is shown below:

9 : & ; - ! - & "


9
9 <% $
9 )$ - %- & &! # & >%- $$ & $; 7 &$
9 > 7 &! ! - $$ &
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 / / F ? & >%- $$ & $; 7 &$
9 * >&! $; 7 &$
9 &! & # & $ $; 7 &$ . / 0 - / >
9 ! 6- 7 & $ >- $; 7 &$ / >

9 < $" & &! % ;$ &! %& $ &


%&.56 & 7 &$ - >&! 50G
&! & %&.56 & - 7 >- &! & > 50G
! %&.56 & - 7 & $ >- ! > 50G

9 - %- & ! - $$ & I$& &! & N 8 N $ 7 &


9 ; $" &$ >
K $ . ! K 8 0 K $ .&! & K 8 0G
K $ . ! K 8 0 K .&! & K 8 0G
F K . ! K 8 0G

9 ) -- %
.5)! # & >%- $$ & 50G
.15 5 %" & . 020G
.15 5 %" & . 020G
.15F 5 %" & .F020G

When this program is executed, the results are:

* ' + '
6 & 7 &$ - >&! "
6 & - 7 >- &! & > 20%3
6 & - 7 & $ >- ! > 1
)! & >%- $$ &

F
* ' + '
6 & 7 &$ - >&! "

18
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

6 & - 7 >- &! & > 1


6 & - 7 & $ >- ! > 20%3
)! & >%- $$ &

(a) A program that accepts a 3D vector in rectangular coordinates and calculates the vector in
spherical coordinates is shown below:

9 : & ; - & ! - "


9
9 <% $
9 )$ - %- & &! ! - $$ & $; 7 &$ > 7
9 &! # & >%- $$ &
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
- 0 1 1 " 40 50 6 7) , ) * ' *
9
9 # ; 7 4-
9 / / F ? & >%- $$ & $; 7 &$
9 * >&! $; 7 &$
9 &! & # & $ $; 7 &$ . / 0 - / >
9 ! 6- 7 & $ >- $; 7 &$ / >

9 < $" & &! % ;$ &! %& $ &


%&.56 & 50G
%&.56 & 50G
F %&.56 & F 50G

9 - %- & $- $$ & I$& &! & N 8 N $ 7 &


9 ; $" &$ >
# ! ! $ ' * ! !(
&! & &! & K 8 G
! ! K 8 G

9 ) -- %
.5)! ! - $$ & 50G
.15 5 %" & . 020G
.15&! & 5 %" & .&! & 020G
.15 ! 5 %" & . ! 020G

When this program is executed, the results are:

' * ' +
6 &
6 &
6 & F 1
)! ! - $$ &

19
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

&! &
!

' * ' +
6 &
6 & 1
6 & F
)! ! - $$ &

&! &
!

(b) A program that accepts a 3D vector in spherical coordinates (with the angles θ and ϕ in
degrees) and calculates the vector in rectangular coordinates is shown below:

9 : & ; - ! - & "


9
9 <% $
9 )$ - %- & &! # & >%- $$ & $; 7 &$
9 > 7 &! ! - $$ &
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
- 0 1 1 " 40 50 6 7) , ) * * '
9
9 # ; 7 4-
9 / / F ? & >%- $$ & $; 7 &$
9 * >&! $; 7 &$
9 &! & # & $ $; 7 &$ . / 0 - / >
9 ! 6- 7 & $ >- $; 7 &$ / >

9 < $" & &! % ;$ &! %& $ &


%&.56 & 7 &$ - >&! 50G
&! & %&.56 & - 7 >- &! & > 50G
! %&.56 & - 7 & $ >- ! > 50G

9 - %- & ! - $$ & I$& &! & N 8 N $ 7 &


9 ; $" &$ >
# ! !($ * ' %1! %1!

9 ) -- %
.5)! # & >%- $$ & 50G
.15 5 %" & . 020G
.15 5 %" & . 020G
.15F 5 %" & .F020G

When this program is executed, the results are:

* ' + '
6 & 7 &$ - >&! "
6 & - 7 >- &! & > 20%3

20
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

6 & - 7 & $ >- ! > 1


)! & >%- $$ &

F
* ' + '
6 & 7 &$ - >&! "
6 & - 7 >- &! & > 1
6 & - 7 & $ >- ! > 20%3
)! & >%- $$ &

A program to calculate cosh(x) both from the definition and using the MATLAB intrinsic function is
shown below. Note that we are using ; &; to display the results, so that we can control the
number of digits displayed after the decimal point:

9 : & ; - $ ! "
9
9 <% $
9 )$ - %- & &! ! 4$- $ $;
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 D %& 7 -%
9 $ !. 0 ; $" &! ; & $
9 $ !. 0 ; $" &! '()*(+ ;% & $

9 < $" & &! % ;$ &! %& $


%&.56 & 50G

9 - %- & $ !. 0
. . 0 . 0 0 8 G
$ !. 0G

9 ) -- %
; &;.5? %-& ; $" ; & $ 9 ; 5/ 0G
; &;.5? %-& ; $" ;% & $ 9 ; 5/ 0G

When this program is executed, the results are:

3 ')*
6 &
? %-& ; $" ; & $
? %-& ; $" ;% & $

A program to plot cosh x is shown below:

21
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

9 : & ; - $ !M -$& "


9
9 <% $
9 )$ -$& $ ! 7
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 %& 7 -%
9 $ ! $ !. 0

9 & $; $ %& 7 -%
G

9 - %- & $ !. 0
$ ! $ !. 0G

9 <-$& $ - -
-$&. / $ ! 0G
& &- .5<-$& $; $ !. 0 7 50G
- 4 -.5 50G
- 4 -.5 $ !. 050G
> $ G

The resulting plot is shown below. Note that the function reaches a minimum value of 1.0 at x = 0.

22
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

A program to calculate the energy stored in a spring is shown below:

9 : & ; - > "


9
9 <% $
9 )$ - %- & &! > &$ >
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 > :&$ > .@0
9 ; J$ $ > .I0
9 , : > $ & & .I8"0
9 # - " & ."0

9 < $" & &! % ;$ &! %& ;$ > $ & &


; %&.56 & ;$ $ > .I0 50G
, %&.56 & > $ & & .I8"0 50G

9 - %- & - " &


;8,G

9 - %- & &$ >


> K , K B G

9 ) -- %
; &;.5# - " & 9 ; " & 5/ 0G
; &;.5:&$ > 9 ; =$%- 5/ > 0G

When this program is executed, the results are as shown below. The second spring stores the most
energy.

3 * /
6 & ;$ $ > .I0 1
6 & > $ & & .I8"0 11
# - " & " &
:&$ > =$%-
3 * /
6 & ;$ $ > .I0 1
6 & > $ & & .I8"0 "1
# - " & " &
:&$ > =$%-
3 * /
6 & ;$ $ > .I0 "
6 & > $ & & .I8"0 11
# - " & " &
:&$ > =$%-
3 * /
6 & ;$ $ > .I0 1
6 & > $ & & .I8"0 %11

23
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

# - " & " &


:&$ > =$%-

A program to calculate the resonant frequency of a radio is shown below:

9 : & ; - $ "
9
9 <% $
9 )$ - %- & &! $ & ; L% $; $
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 & .J0
9 ; L ? $ & ; L% .CF0
9 - D % & .C0

9 < $" & &! % ;$ &! %& ;$ > $ & &


- %&.56 & % & ! 50G
%&.56 & & ; 50G

9 - %- & $ & ; L%
; L 8 . K K L &.-K 0 0G

9 ) -- %
; &;.5? $ & ; L% 9 ; CF 5/; L0G

When this program is executed, the results are:

3 )
6 & % & ! 10 "
6 & & ; 10 8
? $ & ; L% CF

(a) A program to calculate the frequency response of a radio receiver is shown below:

9 : & ; - $ "
9
9 <% $
9 )$ -$& &! ; L% $ $; $ 7
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 & .J0
9 ; L ? $ & ; L% .CF0
9 - D % & .C0

24
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

9 & .$!" 0
9 7 $%& %& 7 -& > .E0
9 7 %& 7$-& > .E0
9 ( >%- ; L% . 8 0

9 D & - 7 -%
G
- G
G
7 G

9 & $; ; L% & $ 'CF/


9 ! ! &! $ & ; L%
; L . 0 K G

9 - %- &
K K ; LG

9 - %- & $%& %& 7$-& >


7 7 K 8 L &. B . K- 8. K 00 B 0G

9 <-$& $ - -
-$&.; L/70G
& &- .5<-$& $; $%& %& 7$-& > 7 ; L% 50G
- 4 -.5J L% .CF050G
- 4 -.5E$-& > .E050G
> $ G

25
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

The resulting frequency response is shown below. Note that the function reaches a minimum value
of 1.0 at x = 0.

(b) The resonant frequency of this circuit is about 1.007 MHz. If the frequency is changed to 1.1
MHz, the output voltage will be 1.75 mV instead of the 10 mV at the resonant frequency. This
receiver is not very selective—real radios do much better.

(c) The output voltage drops from 10 mV to 5 mV at 0.979 MHz and 1.035 MHz.

A program to calculate the output power of the receiver for a given input voltage and frequency is
shown below:

9 : & ; - $ "
9
9 <% $
9 )$ - %- & &! $%& %& $ $; $ 7
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 & .J0
9 ; L ? $ & ; L% .CF0
9 - D % & .C0
9 & .$!" 0
26
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

9 $%& %& $ .H0


9 7 $%& %& 7 -& > .E0
9 7 %& 7$-& > .E0
9 ( >%- ; L% . 8 0

9 D & - 7 -%
G
- G
G

9 O & 7$-& > ; L%


7 %&.56 & 7$-& > .E0 50G
; L %&.56 & ; L% .CF0 50G

9 - %- &
K K ; LG

9 - %- & $%& %& 7$-& >


7 7 K 8 L &. B . K- 8. K 00 B 0G

9 - %- & $%& %& $ . 7B 8 0


7B 8 G

9 ) -- %
; &;.5A%& %& $ 9; H 5/ 0G

When this program is executed, the results are:

3 )
6 & 7$-& > .E0
6 & ; L% .CF0 2
A%& %& $ H
3 )
6 & 7$-& > .E0
6 & ; L% .CF0 108" 2
A%& %& $ H

The power ration in dB is

3 9 1 +)/ 1 101 312 1011 %%


+

The second signal is suppressed by about 11 dB compared to the first signal.

(a) A program for calculating the turning radius of the aircraft is shown below:

9 : & ; - &% > "


9
9 <% $
9 )$ - %- & &! &% > % $; ;& ;- >
9 - / 4 $ " >
9

27
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 > ' - & $ .>0
9 > 7 ( - & $ $; > 7 & . "8 0
9 " ! : $; $% . "8 0
9 % )% > % ."0
9 ( ;& ' !

9 D & - 7 -%
> 7 G
" ! G

9 O & " >


%&.56 & .' !0 50G
> %&.56 & " - & $ .>0 50G

9 - %- & %
% . K " ! 0 B 8 . > K > 7 0G

9 ) -- %
; &;.5)% > % 9; " 5/ % 0G

When this program is executed, the results are:

/
6 & .' !0 0%"
6 & " - & $ .>0
)% > % "

The turning radius is 4257 meters.

(b) When this program is executed with the new speed, the results are:

/
6 & .' !0 0"
6 & " - & $ .>0
)% > % "

The turning radius is now 13257 meters.

(c) A program to plot the turning radius as a function of speed for a constant max acceleration is
shown below:

9 : & ; - &% > "


9
9 <% $
9 )$ -$& &! &% > % $; ;& ;% & $
9 $;
9

28
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 > ' - & $ .>0
9 > 7 ( - & $ $; > 7 & . "8 0
9 " ! : $; $% . "8 0
9 " M ' "%" ' ! %"4
9 " M ' "%" ' ! %"4
9 % )% > % ."0
9 ( ;& ' !

9 D & - 7 -%
> 7 G
" ! G

9 O & " >


" M %&.56 & " .' !0 50G
" M %&.56 & " .' !0 50G
> %&.56 & " - & $ .>0 50G

9 - %- & > $;
" M ." M " M 08 " M G

9 - %- & %
% . K " ! 0 B 8 . > K > 7 0G

9 <-$& &! &% > % 7 %


-$&. / % 8 0G
& &- .5<-$& $; &% > % 7 % 50G
- 4 -.5: .' !050G
- 4 -.5)% > % .,"050G
> $ G

When this program is executed, the results are as shown below:

/
6 & " .' !0 10"
6 & " .' !0 01
6 & " - & $ .>0

29
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

(d) When this program is executed, the results are:

/
6 & .' !0 0"
6 & " - & $ .>0 3
)% > % "

The turning radius is now 3788 meters.

(e) A program to plot the turning radius as a function of centripetal acceleration is shown below:

9 : & ; - &% > "


9
9 <% $
9 )$ -$& &! &% > % $; ;& ;% & $
9 $; & & - - & $
9
9 ? $ $; 7 $
9 # & < $> "" # & $ $; ! >
9
9 8 8 : @ ! " A > - $
9
9 # ; 7 4-
9 > ( - & $ .>0
9 > 7 ( - & $ $; > 7 & . "8 0
9 " ! : $; $% . "8 0

30
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

9 " M> ' "%" - & $ >5


9 " M> ' "%" - & $ >5
9 % )% > % ."0
9 ( ;& ' !

9 D & - 7 -%
> 7 G
" ! G

9 O & " >


%&.56 & .' !0 50G
" M> %&.56 & " - & $ .>0 50G
" M> %&.56 & " - & $ .>0 50G

9 - %- & > $; - & $


> " M> ." M> " M>08 " M>G

9 - %- & %
% . K " ! 0 B 8 . > K > 7 0G

9 <-$& &! &% > % 7 %


-$&.>/ % 8 0G
& &- .5<-$& $; &% > % 7 % - & $ 50G
- 4 -.5 & & - - & $ .>050G
- 4 -.5)% > % .,"050G
> $ G

When this program is executed, the results are as shown below:

/
6 & .' !0 10%"
6 & " - & $ .>0
6 & " - & $ .>0 %

31
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual


Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

32
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Full file at https://testbankuniv.eu/Essentials-of-MATLAB-Programming-3rd-Edition-Chapman-Solutions-Manual

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy