Answered
Plotting the trend line without plotting the data
Or more simply, polyplot(wspd_3yr,msid_3yr) using the polyplot function found here.

3 years ago | 0

Answered
trend line plotting question
I've written a simple function called polyplot to add a linear trend line to plots. Get it on the File Exchange here.

3 years ago | 0

Answered
How to Plot Time Series Data of a Temperature Map
Hi John, A couple of things: Location number 7 is in Antarctica! The sea surface temperature data is all NaN on land, so ave...

3 years ago | 1

| accepted

Answered
Climate Data Toolbox: how can i calculate correctly a trend with trend function?
Hi Alessandro, I think you've mostly got it. One key point to note is your sampling frequency is monthly, so 12 times per year...

3 years ago | 0

| accepted

Submitted


trend
Fast function for mapping trends along any dimension in 3D data.

3 years ago | 8 downloads |

Thumbnail

Answered
Making a Map Image from a Matrix
With the Climate Data Toolbox you could do it like this: T = flipud(reshape(load('TS20040101.txt'),[72 144])); % loads, reshape...

3 years ago | 2

| accepted

Answered
Control Text Label on plot with categorical axis
Have you tried using the 'vertical' and 'horizontal' alignment options? plot(5,6,'o') text(5,6,'default text') text(5,6,'ab...

3 years ago | 1

| accepted

Answered
Calculating values of a dependent variable at a using a range of independent variables
Welcome to the world of Matlab, Tom. Indeed, I think this is pretty straightforward. To make a range of values of Temp between...

3 years ago | 0

| accepted

Answered
Mapping sea surface temp with specific location? Struggling with geoshow function?
For 3D data cubes of things like ocean temperature, you most often need to permute the first two dimensions when reading in from...

3 years ago | 1

| accepted

Answered
how to fill geographic plot region with specific color?
To fill the circle, check out the markerfacecolor option in the documentation for geoplot. Alternatively, you may prefer the geo...

3 years ago | 2

| accepted

Answered
Error with plotting a function
Try this: plot(t,(K.^(1 - (exp(t.*r.*-1)))), '-b'); I put a dot (.) before the exponents and multiplication. That turns it in...

4 years ago | 0

Answered
How to create a best fit line here?
It looks like the first x value is -Inf. Try eliminating that point from the polynomial fit, like this: p = polyfit(x(2:end),y...

4 years ago | 0

| accepted

Answered
How do I set each legend on the curve in multiple plot?
Perhaps the issue isn't the legend, but plotting the desired colors? How about specifying the colors of the plots explicitly, li...

4 years ago | 1

Answered
How do I smooth a dataset without built in functions
It's not quite empty--it's just plotting a single point as a tiny dot. That's because you've only solved for a single point. I...

4 years ago | 1

Submitted


gif
An easy gif generator

4 years ago | 71 downloads |

Thumbnail

Submitted


COVID19
Mapping coronavirus cases in the US

4 years ago | 1 download |

Thumbnail

Answered
Mapping a Coastline of the Antarctic showing different boundaries
To make maps of Antarctica, try Antarctic Mapping Tools. For melt data you might cosider my plugin for the Adusumilli ice shelf ...

4 years ago | 0

Submitted


Ice Shelf Melt Rates
Melt rate data from Adusumilli et al., 2020.

4 years ago | 1 download |

Thumbnail

Answered
Plotting different colored line based on condition(s)
What if you create two lines and plot them separately? x = 0:1000; y = sind(x); % duplicate: y_red = y; y_red(y>0) = ...

4 years ago | 2

| accepted

Answered
How can I regrid a climate data model from lower resolution to higher resolution?
If you have a grid of humidity data H that correspond to the 2.5 degree resolution coordinates lat and lon, then you just need t...

4 years ago | 1

Answered
Convert large xyz file into grid
Try my xyz2grid function. It's fast, easy to use, and one of the examples in that documentation link shows how to grid up an Ant...

4 years ago | 1

Answered
Plot netcdf datas through time
The answer depends on exactly what you want to display. Do you want 12 different maps, to show salinity distribution for each mo...

4 years ago | 0

Question


Why is MATLAB using my network?
I'm using a wifi hotspot and I want to minimize my data usage. Unfortunately, whenever I have MATLAB R2019b open, it seems to be...

4 years ago | 3 answers | 1

3

answers

Submitted


borders
Simply plot national and US state boundaries, with or without Matlab's Mapping Toolbox.

5 years ago | 64 downloads |

Thumbnail

Question


Disable automatic Data Tips
I've just updated from R2018b to R2019b, and now every time I click on a plot, it prints a new Data Tip without my asking it to....

5 years ago | 1 answer | 1

1

answer

Submitted


sinefit
Fit an annual sinusoid to data using a least-squares approximation.

5 years ago | 8 downloads |

Thumbnail

Submitted


Bedmap2 Toolbox for Matlab
Get Bedmap2 data into Matlab. Several tools for data access, interpolation, and plotting.

5 years ago | 7 downloads |

Thumbnail

Answered
How to Regrid the netcdf data in order to achieve smaller/greater spatial resolution?
Hey Behzad, This is pretty straightforward: Just use interp2. When reading the data from the NetCDF file you might need to ro...

5 years ago | 2

Answered
how to obtain data of long years included NetCDF file for a " small-time range"?
You can load only the time range of interest by specifying the start indices when you call ncread. Start by using ncdateread t...

5 years ago | 1

| accepted

Submitted


ITS_LIVE Antarctic ice velocity data
Matlab utilities for loading, analyzing, and plotting ITS_LIVE ice velocity data.

5 years ago | 1 download |

Thumbnail

Load more