I am very new to Octave and Matlab,
I am trying to plot a surface plot for Gaussian distribution to visualize anomaly detection using two features (x axis and y axis) of a data set and the Gaussian value (z axis).
X1 X2 Z(the Gaussian value )
0.00000 3.0000 0.0153130
2.00000 2.8000 0.0457589
2.20000 3.0000 0.0550785
2.30000 2.0000 0.0163526
2.40000 2.2000 0.0252592
2.70000 3.5000 0.0615501
2.70000 4.2000 0.0259381
2.90000 3.0000 0.0695891
4.10000 1.6000 0.0088349
4.40000 3.5000 0.0812291
4.40000 4.5000 0.0179289
4.80000 3.2000 0.0886546
5.90000 3.0000 0.0734376
6.30000 3.0000 0.0658523
5.90000 4.0000 0.0407246
6.40000 4.0000 0.0353848
6.20000 3.0000 0.0678455
6.30000 3.6000 0.0576709
8.20000 3.8000 0.0195292
10.00000 2.7000 0.0054764
Below given is a plot similar to which I desire:

My Attempt:
I tried creating a mesh-grid for each dimension and did a surfplot on the matrix, but It didnt work. It gave me a weird plot, Which is shown below
[X1,Y1]=meshgrid(x1',x2');
[Z]=meshgrid(z');
surf (X,Y,Z)

I'd be glad If somebody help me get the graph correctly
Thanks you :)
