Answered
Make figure without white border
<https://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig |export_fig|> removes the border by default.

9 years ago | 2

| accepted

Answered
How can I change values in my matrix according to conditions.
Try a <https://www.mathworks.com/help/matlab/ref/switch.html |switch|>. switch SupportType case 'PinnedPinned' ...

9 years ago | 0

| accepted

Answered
Problem with decimal to binary conversion
Fiona, The output makes sense: 87 = 0*128 + 1*64 + 0*32 + 1*16 + 0*8 + 1*4 + 1*2 + 1*1

9 years ago | 0

Submitted


xcorr3
Easily determine correlation coefficients and lags for 3D spatiotemporal datasets.

9 years ago | 1 download |

5.0 / 5
Thumbnail

Answered
Plotting a unit step function without heaviside.
Hi Hannah, Your |unitstep| contains only zeros and ones. So when you plot plot(t,unitstep) it's a Heaviside funct...

9 years ago | 4

| accepted

Answered
Writing a function to group locations
I would convert the distance and azimuth vectors to cartesian coordinates by <https://www.mathworks.com/help/matlab/ref/pol2cart...

9 years ago | 0

Answered
How can I draw a US map with some major cities and highways?
You can get Road shapefiles from <https://www.census.gov/cgi-bin/geo/shapefiles/index.php this website>.

9 years ago | 0

Answered
Empirical Ortgogonal Functions in matlab
Indeed, the process of converting 3D datasets to analysis-friendly matrices is not intuitive. I have written an <https://www.ma...

9 years ago | 0

| accepted

Answered
Mapshow of Geotiff Landsat8 band
If you're using the same projection as the Landsat image itself (which is probably the local UTM zone), you can use <http://www....

9 years ago | 1

| accepted

Submitted


detrend3
A fast and easy function for detrending 3D datasets

9 years ago | 3 downloads |

5.0 / 5
Thumbnail

Answered
how to create contour
Are you sure you mean you contour? The contour.csv file only contains x and y data--if you want to plot that x and y data as th...

9 years ago | 1

Answered
Mapping Toolbox - Equivalent to imagesc instead of surfm?
Take a look at <https://www.mathworks.com/help/map/ref/geoshow.html |geoshow|>. You'll need to make a grid first, but I think y...

9 years ago | 0

Submitted


filt2 2D geospatial data filter
Easily perform 2D highpass, lowpass, bandpass, or bandstop filters on gridded datasets.

9 years ago | 5 downloads |

5.0 / 5
Thumbnail

Answered
how can I merge to wav files with a pause of 3 seconds between them?
You could read in both audio files with <https://www.mathworks.com/help/matlab/ref/audioread.html |audioread|> and put them into...

9 years ago | 0

Submitted


DTU Mean Dynamic Topography
Mean dynamic topography from DTU

9 years ago | 1 download |

5.0 / 5
Thumbnail

Answered
Troubles with 14x14 matrix
It looks like |A| is classified as a logical variable. Try A = double(A); then change the values manually.

9 years ago | 0

| accepted

Answered
How can you get the x and y values from plotted points on a quiver plot?
If you can get a handle from when the quiver plot was created, it's easy: [x,y] = meshgrid(0:0.2:2,0:0.2:2); u = cos(x)...

9 years ago | 1

Answered
How to make a contour plot of a matrix consisting of 1 and NaN?
Indeed, the contour functions don't like NaNs. Convert NaNs to zeros and then place contour lines at glacier=0.5. Here's how: ...

9 years ago | 1

| accepted

Answered
3D scatter plot with different color and legend explaining each color.
Try this: b1=[1,2,3,4,5]; b2=[2,2,3,3,1]; b3=[1,5,4,4,3]; s=[1,1,1,1,1]; r=[0,0,2,1,2]; scatte...

9 years ago | 1

| accepted

Submitted


Ice flowlines
Easily predict and plot Antarctic ice streamlines from seed locations.

9 years ago | 3 downloads |

5.0 / 5
Thumbnail

Question


specifying a stride length in ncread
I have a big 1.5 GB .nc file. Data loading is the slowest part of my processing, but I'm lucky that it will be sufficient to lo...

9 years ago | 1 answer | 2

1

answer

Answered
Which MATLAB operations/functions need speeding up?
The |scatter| function is incredibly slow for large datasets. I've had to switch to using Aslak Grinsted's <https://www.mathwor...

9 years ago | 0

Answered
Interpolating if consecutive NaNs less than 16
Try using <https://www.mathworks.com/matlabcentral/fileexchange/45842-interp1gap/content/interp1gap/html/interp1gap_documentatio...

9 years ago | 0

Answered
Codes to plot fluid pathlines and streaklines given an example
I'm not sure what exactly you're asking. Do you mean you want something like <http://www.mathworks.com/help/matlab/ref/streamli...

9 years ago | 0

Answered
Cross-sectional area of a cone(ish)
I'd use my <https://www.mathworks.com/matlabcentral/fileexchange/43162-c2xyz-contour-matrix-to-coordinates/content/C2xyz_v2/html...

9 years ago | 0

Submitted


How to estimate subglacial water routes
A short tutorial on how to use TopoToolbox and Antarctic Mapping Tools for subglacial water.

9 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
Daily average of 8 years with data set every 3 hours
A simpler solution might be <https://www.mathworks.com/matlabcentral/fileexchange/48361-downsample-ts/content/downsample_ts/html...

9 years ago | 1

Answered
How to get xy coordinates from a binary image matrix
If |M| is your matrix and it looks like this: M = logical(randi(2,5)-1) M = 0 0 1 0 1 0 1...

9 years ago | 0

| accepted

Answered
scatterm with scatter marker pink to red color based on values
You're close. The |scatter| and |scatterm| functions link colors to the current colormap of the figure. So you'll have to set ...

9 years ago | 0

Answered
Generating large circles using scircle
I don't think |scircle2| wants x or y values, it wants lats and lons. I wrote a <https://www.mathworks.com/matlabcentral/fileex...

9 years ago | 1

| accepted

Load more