I am interested in the floating ice shelves that fringe East Antarctica. My current work is toward building a better understanding of how climatology influences glaciology via oceanography. I also have some experience with the acoustics of gas hydrates and oceanic methane bubbles.

Homepage: www.chadagreene.com

Professional Interests: Antarctic ice shelf dynamics, sea level rise, underwater acoustics, methane hydrates

Note: I will not do your homework for you and I will not respond to emails directing me to a question posed on the Answers forum.

Answered

How I applly a bandpass filter in a signal?

Hi Guilherme, If you have the signal processing toolbox you can use my <http://www.mathworks.com/matlabcentral/fileexchange/...

How I applly a bandpass filter in a signal?

Hi Guilherme, If you have the signal processing toolbox you can use my <http://www.mathworks.com/matlabcentral/fileexchange/...

4 days ago | 0

Answered

contourf min max is it possible?

Here's an example you can run. If |Cp| is a matrix like this: Cp = peaks(1000); and you want to make a contourf plot, ...

contourf min max is it possible?

Here's an example you can run. If |Cp| is a matrix like this: Cp = peaks(1000); and you want to make a contourf plot, ...

8 days ago | 0

Answered

How can i get a RGB values from a picture?

Hi Caner, The <https://www.mathworks.com/help/matlab/ref/imread.html |imread|> function will read any image and give you the...

How can i get a RGB values from a picture?

Hi Caner, The <https://www.mathworks.com/help/matlab/ref/imread.html |imread|> function will read any image and give you the...

8 days ago | 0

Answered

Need help coding a grading system to a data set.

I'd skip the |if| statement entirely and treat it like a histogram. You can use |histcounts| to get to bin the averages. Somethi...

Need help coding a grading system to a data set.

I'd skip the |if| statement entirely and treat it like a histogram. You can use |histcounts| to get to bin the averages. Somethi...

13 days ago | 0

Answered

How to plot a globe mesh with data located on it

Perhaps <https://www.mathworks.com/matlabcentral/answers/350195-how-can-you-plot-lines-of-latitude-and-longitude-on-a-globe-with...

How to plot a globe mesh with data located on it

Perhaps <https://www.mathworks.com/matlabcentral/answers/350195-how-can-you-plot-lines-of-latitude-and-longitude-on-a-globe-with...

16 days ago | 1

Answered

Plotting time series axis time labels

Unfortunately |dateticks| are not dynamic, meaning if you set the dateticks and then zoom, the ticks don't get updated. You can ...

Plotting time series axis time labels

Unfortunately |dateticks| are not dynamic, meaning if you set the dateticks and then zoom, the ticks don't get updated. You can ...

16 days ago | 0

| accepted

Answered

how to create a gray scale image of a cube on matlab??

Does <https://www.mathworks.com/matlabcentral/fileexchange/15161-plotcube this> work for you?

how to create a gray scale image of a cube on matlab??

Does <https://www.mathworks.com/matlabcentral/fileexchange/15161-plotcube this> work for you?

21 days ago | 0

Answered

Make a pie chart map

Edward Tufte says the only thing worse than a pie chart is several of them. Also, by "size of the circle" do you mean its radius...

Make a pie chart map

Edward Tufte says the only thing worse than a pie chart is several of them. Also, by "size of the circle" do you mean its radius...

21 days ago | 0

Answered

flipud will not work anymore

The simplest solution is to use the |-| sign when calling |cmocean|. So instead of cmap = cmocean('deep','5'); use ...

flipud will not work anymore

The simplest solution is to use the |-| sign when calling |cmocean|. So instead of cmap = cmocean('deep','5'); use ...

22 days ago | 0

| accepted

Answered

How to change the median value on colorbar

Hi Vince. The answer is you _can_ do this, but you probably don't want to. I think it would mean developing a mathematical trans...

How to change the median value on colorbar

Hi Vince. The answer is you _can_ do this, but you probably don't want to. I think it would mean developing a mathematical trans...

22 days ago | 0

| accepted

Answered

I need a code that produce a moving average matrix with a 5*5 window

The <https://www.mathworks.com/help/matlab/ref/conv2.html |conv2|> function performs 2D convolution of two matrices. One of thos...

I need a code that produce a moving average matrix with a 5*5 window

The <https://www.mathworks.com/help/matlab/ref/conv2.html |conv2|> function performs 2D convolution of two matrices. One of thos...

22 days ago | 1

| accepted

Answered

Is there a way to extract map data out of the Matlab mapping toolbox?

Hi Leon, You can simply use my <https://www.mathworks.com/matlabcentral/fileexchange/50390-borders |borders|> function, whic...

Is there a way to extract map data out of the Matlab mapping toolbox?

Hi Leon, You can simply use my <https://www.mathworks.com/matlabcentral/fileexchange/50390-borders |borders|> function, whic...

22 days ago | 0

Answered

Surface bounded by a polygon

Without any sample data or illustrations it's mighty difficult to know exactly what you mean, but it sounds like <https://www.ma...

Surface bounded by a polygon

Without any sample data or illustrations it's mighty difficult to know exactly what you mean, but it sounds like <https://www.ma...

22 days ago | 0

| accepted

Answered

Color plot Y2 as a function of X,Y1

I'd probably concatenate the x position and depth of every salinity measurement, then grid them up with <https://www.mathworks.c...

Color plot Y2 as a function of X,Y1

I'd probably concatenate the x position and depth of every salinity measurement, then grid them up with <https://www.mathworks.c...

22 days ago | 1

| accepted

Answered

How do I create an 2D intensity map from a PNG image?

That looks like your data are on a grid about 11x11 or so, and linearly interpolated between data points. To plot an 11x11 matri...

How do I create an 2D intensity map from a PNG image?

That looks like your data are on a grid about 11x11 or so, and linearly interpolated between data points. To plot an 11x11 matri...

23 days ago | 0

| accepted

Answered

PNG as figure background

Try this. Start by plotting whatever data you have, then load the png image and plot it with |image|. Use the limits of the curr...

PNG as figure background

Try this. Start by plotting whatever data you have, then load the png image and plot it with |image|. Use the limits of the curr...

24 days ago | 0

Answered

Extract outline of polygons defined by gridded mask

I just ran into this same issue. My mask contains only a few grid cells and I needed an exact outline of the grid cells in my ma...

Extract outline of polygons defined by gridded mask

I just ran into this same issue. My mask contains only a few grid cells and I needed an exact outline of the grid cells in my ma...

28 days ago | 0

Answered

accurate 3 D plotting

I think it'd be easier to use the <https://www.mathworks.com/help/matlab/ref/cylinder.html |cylinder|> function or there a few e...

accurate 3 D plotting

I think it'd be easier to use the <https://www.mathworks.com/help/matlab/ref/cylinder.html |cylinder|> function or there a few e...

28 days ago | 0

Answered

Calculating correlation of different time series

So you have two different signals, |y1| and |y2|, each measured at their own respective times |t1| and |t2|. First, use <htt...

Calculating correlation of different time series

So you have two different signals, |y1| and |y2|, each measured at their own respective times |t1| and |t2|. First, use <htt...

28 days ago | 0

Answered

Why is the size of the function different in plot3 and quiver3?

The |quiver| and <https://www.mathworks.com/help/matlab/ref/quiver3.html |quiver3|> functions automatically scale the vectors. T...

Why is the size of the function different in plot3 and quiver3?

The |quiver| and <https://www.mathworks.com/help/matlab/ref/quiver3.html |quiver3|> functions automatically scale the vectors. T...

28 days ago | 0

| accepted

Answered

Hi.. this program contains no errors, I do not know why the compilaton is long !!!

I formatted the code to make it easier for folks to read. Using the <https://www.mathworks.com/help/matlab/ref/profile.html ...

Hi.. this program contains no errors, I do not know why the compilaton is long !!!

I formatted the code to make it easier for folks to read. Using the <https://www.mathworks.com/help/matlab/ref/profile.html ...

1 month ago | 0

Answered

for loop count number of times logical matrix is true and store

Catherine, I don't think you need a loop at all. If you have some 3D salinity matrix |sal|, whose dimensions correspond to lat,l...

for loop count number of times logical matrix is true and store

Catherine, I don't think you need a loop at all. If you have some 3D salinity matrix |sal|, whose dimensions correspond to lat,l...

1 month ago | 1

Answered

import matrix into mapping toolbox? or just draw coastlines in fig

Hi Kate, There are a couple of ways you can skin this cat. An easy and computationally efficient way to do it without the Ma...

import matrix into mapping toolbox? or just draw coastlines in fig

Hi Kate, There are a couple of ways you can skin this cat. An easy and computationally efficient way to do it without the Ma...

1 month ago | 0

Answered

How can I plot MODIS HDF-EOS grid images into geographic coordinates (lat-lon)?

I wrote a function for this, which is available on File Exchange <https://www.mathworks.com/matlabcentral/fileexchange/64387 her...

How can I plot MODIS HDF-EOS grid images into geographic coordinates (lat-lon)?

I wrote a function for this, which is available on File Exchange <https://www.mathworks.com/matlabcentral/fileexchange/64387 her...

1 month ago | 0

Submitted

Sinusoidal Projection grid for NASA Level 3 Ocean Biology data

Geolocate data points from ocean color bin indices.

1 month ago | 4 downloads |

Answered

Reading HDFS from Matlab - what toolboxes do I need?

The <https://www.mathworks.com/help/matlab/ref/h5read.html |h5read|> function has come standard since Matlab release 2011a, and ...

Reading HDFS from Matlab - what toolboxes do I need?

The <https://www.mathworks.com/help/matlab/ref/h5read.html |h5read|> function has come standard since Matlab release 2011a, and ...

1 month ago | 0

Answered

How to open netcdf4 file in MATLAB

If the NetCDF file you are using is one of the ones found <https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Binned/Monthly/CHL her...

How to open netcdf4 file in MATLAB

If the NetCDF file you are using is one of the ones found <https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Binned/Monthly/CHL her...

1 month ago | 2

| accepted

Answered

How to plot a sequence of rectangular pulses with a period of 2 seconds, amplitude 1 unit, duty cycle 50%, and the pulses run for 10 seconds.

You have these lines nwid = 1; for nn = 2:nwid ... end which effectively says |for nn = 2:1|, so nothing in...

How to plot a sequence of rectangular pulses with a period of 2 seconds, amplitude 1 unit, duty cycle 50%, and the pulses run for 10 seconds.

You have these lines nwid = 1; for nn = 2:nwid ... end which effectively says |for nn = 2:1|, so nothing in...

1 month ago | 0

Answered

Shade area between two curves and maintain central solid line in shaded area

Hi Matt, I recommend Kelly Kearney's <https://www.mathworks.com/matlabcentral/fileexchange/27485-boundedline-m |boundedline|...

Shade area between two curves and maintain central solid line in shaded area

Hi Matt, I recommend Kelly Kearney's <https://www.mathworks.com/matlabcentral/fileexchange/27485-boundedline-m |boundedline|...

1 month ago | 0

| accepted

Answered

Unable to read DEM file with GTOPO30s

Does <https://www.mathworks.com/matlabcentral/answers/354908-error-reading-a-dem-file-using-gtopo30-function-of-the-mapping-tool...

Unable to read DEM file with GTOPO30s

Does <https://www.mathworks.com/matlabcentral/answers/354908-error-reading-a-dem-file-using-gtopo30-function-of-the-mapping-tool...

1 month ago | 1

| accepted