Defining an n x n matrix that is the Gaussian
Show older comments
I am doing practice problems in a digital image processing book One of the questions is:
Define an 9x9 matrix that is a Gaussian function of the form exp(−((x−x0)^2+(y−y0)^2)/w)where x0 and y0 denote the center of the matrix and w is a width parameter.
x0 & y0 = 64
You are supposed to experiment with the values of w to see what happens I am extremely new to MATLAB
My thoughts were creating a 9x9 matrix of ones and multiplying it by the function???? However I am pretty sure a loop needs to be made.
I don't know how to input functions or how to go about this. Later it says to convolve this matrix with a previous matrix I made (which I do now how to do...lol)
Accepted Answer
More Answers (0)
Categories
Find more on Images in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!