How to applied 2d gaussian function

9 views (last 30 days)
Z998567
Z998567 on 3 Aug 2021
Commented: Matt J on 3 Aug 2021
Hi,
I upload my code and data I don't know why the fit not working and the amplitude not in the center of the gaussain
I hope someone can help.
Thanks,

Answers (2)

Yongjian Feng
Yongjian Feng on 3 Aug 2021
Try to contact the auther of the fileexchange function first?

Matt J
Matt J on 3 Aug 2021
Edited: Matt J on 3 Aug 2021
You could try this alternative gaussian fitting routine, and see if you get different results:
  4 Comments
Z998567
Z998567 on 3 Aug 2021
Thanks Matt, it works but I need to plot the fir as an image like the attachement. Is there away with this function.
Matt J
Matt J on 3 Aug 2021
Once you have the fitted parameters, you can plot it any way you wish.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!