Community Profile

photo

Michael


Active since 2014

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


I want to create an average 2d field every 10 timesteps within a 3d matrix (6000 x 100 x100) --> (600 x 100 x100)
I have for example a 3d matrix like (6000 x 100 x 100) with the first array being time, or the vector I want to average. How can...

9 years ago | 1 answer | 0

1

answer

Question


removing boxes with a low amount of data points?
Hello, I have scattered data points on a 3127 x 254 grid. I would like to interpolate this onto a regular grid (which I have ...

9 years ago | 1 answer | 0

1

answer

Question


How to calculate linear regression between two time series and remove?
I want to calculate the following between two time series: R^2, slope, intercept , p, q, and if possible q^hat ...

9 years ago | 1 answer | 0

1

answer

Question


How can I plot land over a scatter plot? and how can I change the axis tickmark location?
*Problem 1:* I have a scatter plot (shown in attached picture), but I want to plot land over this and extend the space to ...

9 years ago | 1 answer | 0

1

answer

Question


calculate the accumulation of a variable over time within a loop?
Hello, I have evaporation as daily values (m). I have calculated the weighted fieldmean, which gives me a vector with length ...

9 years ago | 2 answers | 0

2

answers

Question


How to integrate using Matlab 2012a?
Hello, How can I integrate using MATLAB 2012a? I wish to integrate precipitation over land so that I get an accumulation of p...

9 years ago | 1 answer | 0

1

answer

Question


Can someone explain this function?
I am currently trying to use the boundedline function to plots 95% confidence intervals (seen below). I have sucessfully managed...

9 years ago | 0 answers | 0

0

answers

Question


Methods of interpolating onto a different grid?
Hello, I am currently using Triscatteredinterp to transform a regular grid (659 x 3600 x 1682) to this grid (659 x 3127 x 254...

9 years ago | 0 answers | 0

0

answers

Question


How can I plot trajectories on top of a map?
I wish to plot different series of lat/lon values onto a map and connect together with a line (i.e. hurricane tracking). How ...

9 years ago | 2 answers | 0

2

answers

Question


How can I plot overlay black land?
At the moment I have a plot that looks like the attached, with zero values being land. <</matlabcentral/answers/uploaded_fil...

9 years ago | 5 answers | 0

5

answers

Question


how to area weight a regular grid?
I wish to weight my interpolated regular gridded data (132 x 120) so that; data * (area of each grid box) / sum(all gri...

9 years ago | 0 answers | 0

0

answers

Answered
Area weighting giving too low answers
Can anyone help me?

9 years ago | 0

Question


Area weighting giving too low answers
I am trying the code below in order to area weight my data. The data looks good except it is 5 orders of magnitude lower than I ...

9 years ago | 1 answer | 0

1

answer

Answered
How to reshape a vector without knowing the dimensions?
Thanks guys! I managed to do it!

9 years ago | 0

Question


How to reshape a vector without knowing the dimensions?
Hello, I had a 3d matrix 663x3127x254. I removed NaN's using a mask and now I assume I have less elements on the left most di...

9 years ago | 4 answers | 0

4

answers

Question


Why does it say "Subscripted assignment dimension mismatch" ? possibly because of NaN's?
I am interpolating triscattered data onto a regular grid. It works but then stops at t = 10, I don't know why it is doing this!....

9 years ago | 1 answer | 0

1

answer

Question


convert time axis set in 10 day cycles to days?
I need to convert my time vector t = 723 x 1 in the format of 10-day cycles into just days, still keeping the same 723 size. ...

9 years ago | 1 answer | 0

1

answer

Question


combine t axis with vector?
Hello, I have a time reference vector t= 723 x 1, and I have a data vector d = 723 x 1. I want to use harmonics to remove ...

9 years ago | 0 answers | 0

0

answers

Answered
interpolate text file data onto different time axis
Thanks, linspace worked a treat!

9 years ago | 0

Question


interpolate text file data onto different time axis
Hello, I have a text file which when imported creates a 226 x 2 matrix, with time being the (:,1) and SSH being (:,2). I want...

9 years ago | 3 answers | 0

3

answers

Question


combining variables into one matrix -from a single mat file, problem with struct to double conversion (getfield)
I want to combine 254 files included in a single .mat file to produce a matrix 723 x 3127 x 254, with each variable being 723 x ...

9 years ago | 0 answers | 0

0

answers

Answered
combine a number of files together? cat,vertcat and horzcat do not work...
Thanks Geoff, however, it doesn't seem to work exactly. It complains that 'Error using load. Unable to read file TJJ_arc002:...

9 years ago | 0

Question


combine a number of files together? cat,vertcat and horzcat do not work...
Hey all! I have 254 files named blah_blah_001 until blah_blah_254. Each file has 723 x 3127 dimension and I want to combine a...

9 years ago | 2 answers | 0

2

answers

Question


How to rename variables in a loop?
Hello, I want to load 254 files with the name 'TJJ_arc001' etc. Then I want to concatenate them together so that I go from ea...

10 years ago | 2 answers | 0

2

answers

Question


How do I get axis information/attributes from netcdf file for plotting in matlab?
Hello, I have a netcdf file that contains extra information about the axis, such as the real depth values compared with the i...

10 years ago | 1 answer | 0

1

answer

Question


ERROR: Input data must be specified in column-vector format.
I get the error 'Input data must be specified in column-vector format.' when trying to run the following code at the line of Tri...

10 years ago | 1 answer | 0

1

answer

Question


I want to interpolate onto different grid, how can I do this?
I want to interpolate a 365 x 3127 x 254 grid onto an 365 x 84 x 180 grid. What is the best way to do this? I think I should...

10 years ago | 0 answers | 0

0

answers

Question


How to create average of values within a grid box??
Hello everyone, I have data which looks like this: 3127 x 254 x 365 which represents the satellite data (index (3127) alon...

10 years ago | 2 answers | 1

2

answers

Question


Rearranging matrix for interpolation and the problem of memory
Hi, I want to interpolate data onto satellite tracks using the following code: for day = 1:size(ssh_int,1); m...

10 years ago | 1 answer | 0

1

answer

Question


Data is in MESHGRID format, NDGRID format is required. INTERP2 help please!
Hello, I am trying to interpolate 2d data along a satellite track using the following code: or yr = 1993%:2010; ...

10 years ago | 2 answers | 0

2

answers