Last active
January 22, 2020 00:03
-
-
Save zbrasseaux/e67b52c63e0508cc1aef4d238341d37a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function end_matrix = hw2_06 | |
% provided starting matrix | |
start_matrix = [0,-1,-2,-3,-4,-5,-6,-7; | |
1,0,-1,-2,-3,-4,-5,-6; | |
2,1,0,-1,-2,-3,-4,-5; | |
3,2,1,0,-1,-2,-3,-4; | |
4,3,2,1,0,-1,-2,-3; | |
5,4,3,2,1,0,-1,-2; | |
6,5,4,3,2,1,0,-1; | |
7,6,5,4,3,2,1,0]; | |
% apply median filter to starting matrix | |
end_matrix = medfilt2(start_matrix, [3,3]); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment