Implement the following formula
显示 更早的评论
How can I implement the following formula? Please write the code for it. Thanks.
y[n,m]= 1/3( x[n,m−1] + x[n,m] + x[n,m+1] )
采纳的回答
更多回答(1 个)
Alan Stevens
2021-4-17
0 个投票
Change the square brackets, [ ], to curved brackets, ( ). Put a multiply sign, *, after the 3.
2 个评论
Sarah Maas
2021-4-17
Image Analyst
2021-4-17
OK, if you don't know how to do a for loop, then you have not even taken the most basic training on MATLAB. So follow this link and learn how to do simple things like for loops, if statements, assignments, referencing elements in an array, etc.:
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!