{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

JohnPedenECE257Exercise4

JohnPedenECE257Exercise4 - 13 a in simulink for f(t = 5 sin...

Info iconThis preview shows pages 1–29. Sign up to view the full content.

View Full Document Right Arrow Icon
13. a) in simulink, for f(t) = 5 sin ( π t – π /2) + 4: amplitude: 5 bias: 4 frequency: pi phase: -pi/2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
>> t = 0:0.01:10; >> y = 5 * sin(pi .* t - pi / 2) + 4; >> plot(t, y)
Background image of page 2
b)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
c)
Background image of page 4
d)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
>> t = 0:0.2:10; >> y = 3 * t + 5; >> plot(t,y); Yes, all 3 graphs look the same.
Background image of page 6
14. a) >> f = imread('rose.tif'); >> imshow(f);
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
>> imshow(f, [15, 150]);
Background image of page 8
>> imshow(f, [60, 100]);
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
>> imshow(f, [0, 55]);
Background image of page 10
b) >> g = 255 - f; >> size(g) ans = 1024 1024 >> imshow(g) The whites are now black, and the blacks are now white. This is called the negative of the original.
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
c) >> f = imread('rose.jpg'); >> imshow(f);
Background image of page 12
>> imshow(f, [20, 190]);
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
imshow(f, [44, 202]);
Background image of page 14
>> imshow(f, [77, 240]);
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
>> g = 255 - f; >> size(g) ans = 1024 1024 >> imshow(g)
Background image of page 16
>> f = imread('lena.jpg'); >> imshow(f); >> imshow(f, [7, 17]);
Background image of page 17

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
>> imshow(f, [19, 50]); >> imshow(f, [55, 237]);
Background image of page 18
>> g = 255 - f; >> size(g) ans = 300 300 >> imshow(g)
Background image of page 19

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
>> f = imread('camearaman.jpg'); >> imshow(f); >> imshow(f, [20, 168]);
Background image of page 20
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}