Cody

Problem 2703. Form a gaussian kernel using matrix size and sigma value

Solution 540977

Submitted on 5 Dec 2014 by Guillaume
  • Size: 9
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% matrix = 3;sigma = 1.2; y_correct = [1 2 1; 2 2 2; 1 2 1]; assert(isequal(gaussian_kernel(matrix,sigma),y_correct))

Suggested Problems

More from this Author1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!