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

Hi, I am new to MATLAB. I am not getting the plot .

You're doing vector operations, so use the |./| when calculating |B| like this: B=(1/N)*(abs((sin((N*A)/2))./(sin(A/2))));...

Hi, I am new to MATLAB. I am not getting the plot .

You're doing vector operations, so use the |./| when calculating |B| like this: B=(1/N)*(abs((sin((N*A)/2))./(sin(A/2))));...

17 days ago | 0

| accepted

Question

Error evaluating sectioned code

I recently updated from R2014b to R2017b, and I've noticed a new, somewhat annoying behavior. In older versions of Matlab, I cou...

18 days ago | 1 answer | 0

Answered

can this plotted circle be filled? it needs to have a solid color

You can use my <https://www.mathworks.com/matlabcentral/fileexchange/45952-circle-plotter |circles|> function. Just specify, x,y...

can this plotted circle be filled? it needs to have a solid color

You can use my <https://www.mathworks.com/matlabcentral/fileexchange/45952-circle-plotter |circles|> function. Just specify, x,y...

4 months ago | 0

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/...

5 months 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, ...

5 months 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...

5 months 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...

5 months 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...

6 months 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 ...

6 months 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?

6 months 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...

6 months 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 ...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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...

6 months 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 ...

6 months 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...

6 months 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...

6 months 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...

6 months ago | 0

Submitted

Sinusoidal Projection grid for NASA Level 3 Ocean Biology data

Geolocate data points from ocean color bin indices.

6 months ago | 5 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 ...

6 months 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...

6 months ago | 2

| accepted