Question

Plotting data on curvilinear coord projection

Hello, I have two lat and lon matrices, each 622x810 and they are of a curvilinear projection. I previously just used vectors...

environ 4 ans ago | 3 answers | 0

Question

Statistical difference between a number of matrices.

Hey, I am trying to find a statistical approach to comparing the differences between matrices in a 3D matrix. I have a 3D mat...

plus de 4 ans ago | 1 answer | 0

Question

Find mean value of grid cells found within a coarser grid cell

Hello, I have two grid, one that is 121x97 (lat_1 & lon_1 in the attached data) and the other is 6x7 (coarser grid, lat_2 & l...

plus de 4 ans ago | 2 answers | 1

Question

Gpfit error on line 74. Not even working with the given matlab example.

Hi there, It appears that upgrading matlab to 2016a made no difference to my problem and once again, I cannot even perform th...

plus de 4 ans ago | 1 answer | 0

Question

Return period wind over 25 m/s

Hello, I have a dataset of daily maximum wind gusts across a certain domain and for each grid cell, I would like to find the ...

plus de 4 ans ago | 1 answer | 0

Question

Divided colorbar automatically. Stop the blending of colors displayed

Hi there, When I use the colorbar function I get a scale of blended colors and I would like to demarcate each color without h...

plus de 4 ans ago | 2 answers | 0

Question

Loss of precision with netcdf time when using datenum

Hi there, I am trying to read the time variable in from an netcdf file and convert it to datenum values but the end time alwa...

plus de 4 ans ago | 2 answers | 0

Question

Add arrows to surface plot to represent wind direction

Hi there, I am seeing a lot of information about the quiverm function but I only have my wind direction data in degrees and n...

environ 5 ans ago | 1 answer | 0

Question

Check if subsequent elements in a 3D matrix are the same value

Hello, I have a 121x97x51135 matrix of 1's and 0's which flag certain periods of time. I would like to produce new variables ...

environ 5 ans ago | 1 answer | 0

Question

Bootstrap wind data to account for autocorrelation and obtain new slope

Hi there, I have a sample dataset (12783x2) containing the time and wind speed values overs 35 years (6 hour intervals). I ha...

environ 5 ans ago | 1 answer | 0

Question

Plot bilinear interpolated gridded data spatially on a map (Cannot get Interp2 to give smooth output)

I am using the following code to plot gridded data on a map over a region but I would like to know how to plot the interpolated ...

environ 5 ans ago | 1 answer | 0

Question

Filter regions in data with 'obvious' irregular linear trend

Hello, I have a dataset that I am plotting but there are clear trends occurring within the data that I would like to remove. ...

environ 5 ans ago | 1 answer | 0

Question

Add regions of statistical significance to a map plot

Hello, I am using the following to map out a trend in data over a region: ax = worldmap(latlim, lonlim); S = shaperea...

environ 5 ans ago | 1 answer | 0

Question

Improve speed to max calculation for max daily output

Hi there, I have done a good few variations of this and this code is the simpliest but not the most time efficient and it see...

environ 5 ans ago | 1 answer | 0

Question

Merge 3D matrices into one cell array without using a loop

I have three 3D matrices (mxnxt) that I would like to merge into a single array of mxn with each array holding the corresponding...

plus de 5 ans ago | 2 answers | 0

Question

For loop slows down on row 25 of 3D matrix and does not advance and original speed. What may be the issue?

Hi everyone, I am using the following code to calculate a given parameter. I have included a progress bar for testing purpose...

plus de 5 ans ago | 1 answer | 0

Question

Load time from netcdf file and retain the 'Hour' value

Hello, I have a time variable (attached) that I created from using netcdf_time = ncread('sample.netcdf','time'); Whe...

plus de 5 ans ago | 3 answers | 2

Question

Best tool for analysing/altering netcdf data (beyond read-only)

Hello, I have a large netcdf file that I would like to do some processing on. CDO software is not adequate enough and I need ...

plus de 5 ans ago | 3 answers | 1

Question

Box plots of scatter between two variables for each bin.

Hi everyone, I am trying to make your standard box plot graph but using the scatter between two variables for each bin. For i...

plus de 5 ans ago | 0 answers | 0

Question

Best way to export figure of high quality

Hi everyone, Now I know there is a copious amount of data on the web on this and I tried export_fig, print, saveas and every ...

plus de 5 ans ago | 1 answer | 0

Question

Double precision changes to complex double after calculation

Hi everyone, I have a matrix with very simple data in double precision but after doing a calculation (listed below) some of t...

plus de 5 ans ago | 2 answers | 0

Question

Import text file with blank lines. Matlab not replacing them with NaN

Matlab is not replacing my blank lines in my txt file with NaN but just joins all the data together. Unfortunately I need to dat...

plus de 5 ans ago | 1 answer | 0

Question

Too many arguments with lsline even using Matlab example

Hi everyone, Strangely, using the code given by Matlab for lsline, I get the too many arguments error. Any ideas? Probably on...

plus de 5 ans ago | 2 answers | 0

Question

Saving figure with large number of data points.

Hi everyone, I have a figure with 6 scatter subplots on it, each with a large number of data points on them (unfortunately, I...

plus de 5 ans ago | 1 answer | 0

Answered

How to add arrows to lines or dots in the matlab simulink

Commented on your other post, here is the link: http://uk.mathworks.com/matlabcentral/fileexchange/31473-line2arrow--add-an-a...

How to add arrows to lines or dots in the matlab simulink

Commented on your other post, here is the link: http://uk.mathworks.com/matlabcentral/fileexchange/31473-line2arrow--add-an-a...

presque 6 ans ago | 0

Answered

How to add arrows to lines

Hi Sathish, you can use this code. works really well actually and pretty easy to use: http://uk.mathworks.com/matlabcentra...

How to add arrows to lines

Hi Sathish, you can use this code. works really well actually and pretty easy to use: http://uk.mathworks.com/matlabcentra...

presque 6 ans ago | 0

Answered

Plot 3 scale graph

Hi Anoop, you can do this Weight=(37000:2000:74000); CG=(16:1:42); Index=(((Weight/1000)*(CG-25)*0.041935)+50); ...

Plot 3 scale graph

Hi Anoop, you can do this Weight=(37000:2000:74000); CG=(16:1:42); Index=(((Weight/1000)*(CG-25)*0.041935)+50); ...

presque 6 ans ago | 0

Question

Adjusting plot fill to show two colours depending on overestimation/underestimation

Hello, I have the following code to plot my observed readings versus my modelled readings and the code works fine but does no...

presque 6 ans ago | 2 answers | 0

Answered

How to save every iteration and answer for a numerical Solve function in a for loop

Hi Lindsey, You can preallocate g outside of your loop and then within your loop you can assign each row and col the correspo...

How to save every iteration and answer for a numerical Solve function in a for loop

Hi Lindsey, You can preallocate g outside of your loop and then within your loop you can assign each row and col the correspo...

presque 6 ans ago | 0

Question

using colormap to assign one color for values => 0 and one for < 0

Hi, I am having no luck using colormap or caxis to set the limits of the two colors on the colorbar. Is there a way (not usin...

presque 6 ans ago | 1 answer | 0