Question: Function definition and description Testing your removeNoise function To test your function, first get a set of radiation data by typing this into the Command

Function definition and description Testing your removeNoise function
To test your
function, first get a set of radiation data by typing this into the Command Window:
rad = scan_radiation(30
The function header and comments are provided for you in the file called removeNoise_starter.m. Don't forget to remove _starter from
the filename before you try to call this function.
function [ rad ]= removeNoise( rad, n )
% Removes noise from a matrix of radiation
% values by applying an nxn mean filter three
% times.
%
% n: The size of the filter (e.g. if n=3,
% use a 3x3 filter)
%
rad: a matrix of numbers representing
% the radiation measurements from
% the scanner.
Testing your removeNoise function
To test your removeNoise function, first get a set of radiation data by typing this into the Command Window:
rad = scan_radiation(30);
Function definition and description Testing your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!