- Details
- Parent Category: Engineering Assignments' Solutions
We Helped With This Engineering Homework: Have A Similar One?

Category | Engineering |
---|---|
Subject | Other |
Difficulty | Graduate |
Status | Solved |
More Info | Engineering Homework Solutions |
Assignment Description
ELE5PRA Student
Name:
Semester 1, 2018
Assignment 1 Student
Number:
Due date: April 9
Instruction
• This assignment contains 4 pages (including this cover page) and 2 questions. You should attempt to answer all 2 questions.
• This assignment is worth 10% of total subject mark.
Grade Table (for teaching assistant use only)
Question | Points | Score |
1 | 5 |
|
2 | 5 |
|
Total: | 10 |
|
Teaching Assistant
1. (5 points) For the FM modulation, it is requried to compute the signal integral. In the labs, we have used the built-in Matlab function called cumsum to compute the signal integral. Your task is to write your own function called mycumsum that operates same as the Matlab cumsum function.
m(t)
cumsum Oscillator
Message
Modulated
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
2. (5 points) Given the following Matlab code that filters impulse noise from an image.
1 %clear all existing variables
2 clear
3 %close all existing figures
4 close all
5 %clear command window
6 clc
7 %Load a demo image into Matlab 8 i = imread( ’ coins . png ’ ) ;
9
10 %Add salt and peper noise
11 i = imnoise ( i , ’ salt & pepper ’ ) ;
12
13 %Filter out the salt and pepper noise
14 j = medfilt2 ( i ,[5 5]) ;
15
16 %display results
17 subplot (121) ; imshow( i ) ; t i t l e ( ’ Noisy image ’ ) ;
18 subplot (122) ; imshow( j ) ; t i t l e ( ’ Filtered image ’ ) ;
19 print ( ’q2 . png ’ , ’−dpng ’ ) ;
Write your own median filter called mymedfilt2 that operates same as the built in Matlab medfilt2 function.
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................
......................................................................................