Skip to content

Instantly share code, notes, and snippets.

@zbrasseaux
Created January 22, 2020 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zbrasseaux/bbf2f95d5d7441f66d4a9242771eb842 to your computer and use it in GitHub Desktop.
Save zbrasseaux/bbf2f95d5d7441f66d4a9242771eb842 to your computer and use it in GitHub Desktop.
function results = hw2_07
start_matrix = [4,4,4,4,8,8,8,8];
output_A = medfilt1(start_matrix, 3);
output_B = conv(start_matrix, [.25,.5,.25], 'same');
results = [start_matrix;output_A;output_B];
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment