已回答
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 前 | 2

| 已接受

已回答
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 前 | 1

已回答
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 前 | 1

已回答
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 前 | 0

提问


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 前 | 3 个回答 | 1

3

个回答

提问


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 前 | 1 个回答 | 1

1

个回答

已回答
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 前 | 2

已回答
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 前 | 1

| 已接受

已回答
How to plot geographical values against a parameter in a color map graph
Parivash, The first step is importing the data into Matlab. Unfortunately the lat and lon data are in degrees-minutes-decimal-...

5 years 前 | 1

提问


Should this logical indexing throw an error?
I ran into an issue today whereby Matlab did NOT throw an error, but I wish it had. I had a 1D array, and I wanted to get just t...

5 years 前 | 1 个回答 | 0

1

个回答

已回答
How to index every field of a structure and reassign to a structure with a single element in each field
Alternatively, you could stick with the approach you were using, but include the 'uniformoutput',false option. a = structfun(@...

5 years 前 | 3

已回答
How to calculate standard precipitation index (SPI)
Use the spei function in the Climate Data Toolbox for Matlab.

5 years 前 | 0

已回答
How to calculate standardized precipitation index (SPI).
Hi Govind, You might want to check out the spei function in the Climate Data Toolbox for Matlab. Chad

5 years 前 | 2

已回答
using 'fit' to add a trend line to series of scatter points
That is the correct first-order least-squares fit. But I think in your plot the '.' marker on the far left side is coincident wi...

6 years 前 | 0

| 已接受

提问


2D gaussian filter with a variable sigma
I have a large gridded dataset I'd like to lowpass filter. The catch is, need to specify a different sigma value for each pixel ...

6 years 前 | 1 个回答 | 0

1

个回答

已回答
How can I get a mask matrix from a fill?
Perhaps you want to use inpolygon to get a mask of grid cells within the polygon?

6 years 前 | 0

已回答
How can I make an image with both ocean and land information?
This is very easy with the Climate Data Toolbox for Matlab! First, plot the base image with earthimage, then overlay it with a p...

6 years 前 | 0

已回答
How can I interpolate an ocean's variable without interpolate the continents?
You can use the island function in the Climate Data Toolbox for Matlab to determine which grid cells are land and which ones are...

6 years 前 | 0

已回答
Can anyone help plot the India map showing land and oceans, without using mapping toolbox ??
For this you can use the earthimage function in the Climate Data Toolbox for Matlab. It does not require the Mapping Toolbox.

6 years 前 | 0

| 已接受

已回答
How to perform EOF
I think the easiest way is with the eof function in the Climate Data Toolbox for Matlab. Check out the documentation, it describ...

6 years 前 | 0

已回答
Globe display issue - need opaque sub-surface
For the globe functions in the Climate Data Toolbox for Matlab I had to include one called globefill, for that very purpose. If ...

6 years 前 | 0

已回答
How can you plot lines of latitude and longitude on a globe without using the mapping toolbox ?
I turned my answer into a collection of functions called globeplot, globesurf, globegraticule, globeborders, etc. which you can ...

6 years 前 | 1

已回答
how to write data on grid in a plot?
That looks like a heatmap chart. However, a 181x361 grid of text values will probably be illegible. On most screens that's only ...

6 years 前 | 0

已回答
How to calculate the area of each grid cell?
The easiest way is to use the cdtarea function in the Climate Data Toolbox for Matlab. For gridded coordinates Lat,Lon, syntax i...

6 years 前 | 2

| 已接受

已回答
Plot a point of my gridded map
If you know the grid indices, it would just be sst1 = squeeze(sst(row,col,:)); where the corresponding geo coordinates would...

6 years 前 | 0

已回答
Writing a loop to calculate a seasonal cycle and then plot the seasonal cycle?
Check out the season and climatology functions in the Climate Data Toolbox for Matlab. The functions make it easy to extract sea...

6 years 前 | 1

已回答
Can't plot a trendline
Check out the polyplot function in the Climate Data Toolbox. If you define the x and y data, plotting a least-squares trend line...

6 years 前 | 0

已回答
Help with plotting world grid climate variable lat/lons
Hi Macarena, I wrote the recenter function in the Cimate Data Toolbox to do exactly what you want to do. It lets you move a ...

6 years 前 | 0

已回答
How to apply hatched region to a polar map
For anyone who wants to do this with Antarctic Mapping Tools, you may be able to use my stipple function. For a lat,lon grid and...

6 years 前 | 2

已回答
How can I create a gif that plays only once?
Use my gif function! Just type gif('myfile.gif','LoopCount',1) for the first frame and then gif to write each subse...

6 years 前 | 1

加载更多