No BSD License  

Highlights from
Gaussian Bell

3.25

3.2 | 4 ratings Rate this file 14 Downloads (last 30 days) File Size: 1.94 KB File ID: #7742
image thumbnail

Gaussian Bell

by Mathias Österberg

 

27 May 2005 (Updated 31 May 2005)

Creates a 2 dimensional gaussian distribution.

| Watch this File

File Information
Description

This is a small program that creates a normalized 2-dimensional normal distribution, also known as a gaussian bell. The user has the options to decide the center of the distribution, the standard deviation, the size of the output matrix, and the area over which to create the distribution.

I did not yet include the option to have different sigmas for the x- and y- axis, feel free to add it if you need.

There might be some bugs in the code, but for the purpose I have used it it works fine. Pls let me know if there is anything not working properly, and I'll correct it.

Required Products Statistics Toolbox
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
11 Oct 2005 l x

The function "normpdf" is missing.

17 Oct 2005 xiaole bai

works well

24 Sep 2006 ALEXANDRE EDUARDO

gOOD

17 Apr 2007 m enev

well done, it would be nice to see a few code samples in the comments

mesh(gbell([40 40], [-10 20 0 10], [5 5], 2))

31 Mar 2008 F.M. Yeh  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Mathias Österberg 22 Oct 2008 07:49:30
probability Mathias Österberg 22 Oct 2008 07:49:30
gaussian Mathias Österberg 22 Oct 2008 07:49:30
bell Mathias Österberg 22 Oct 2008 07:49:30
normal Mathias Österberg 22 Oct 2008 07:49:30
distribution Mathias Österberg 22 Oct 2008 07:49:30
2d Mathias Österberg 22 Oct 2008 07:49:30

Contact us at files@mathworks.com