Community Profile

photo

Jonas Damsbo


25 total contributions since 2018

Jonas Damsbo's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


Calculate different rowss in a matrix
Hi I want to calculate different rows in a matrix. If I have a matrix, lets say, 300x180 I want now to calculate: A(1:30,:)...

3 months ago | 2 answers | 0

2

answers

Question


Sequences for a 3D matrix
It is possible to find sequences over the 3rd dimension for each element in Matlab? Lets say I have these matrix 3x3x5 ...

3 months ago | 2 answers | 0

2

answers

Question


Percentage of each elements in a 3d matrix
Hey I have a 3d matric with size 359x180x360. I want now to create a new matrix with size 359x180x360 where all the elements h...

4 months ago | 1 answer | 0

1

answer

Question


Average the 3rd dimension in a matrix
I have a 360x181x360. I want to average the 3rd dimension with 4, so I get a new matrix like 360x181x90. How can I do that?

4 months ago | 1 answer | 0

1

answer

Question


Sequence of a specific number in a matrix
Hey So my trouble is that I have a matrix, here a an example becuase my original matrix is really big. 0 1 1 1 0 ...

4 months ago | 1 answer | 0

1

answer

Question


How to count a specific value from column to column
Hey Maybe a simple question. But if I have a vector lets say 15x1 vector like: [1 1 1 0 1 0 0 1 0 0 1 0 1 0 1] Now I want to ...

4 months ago | 1 answer | 0

1

answer

Question


Combining cells into a single cell
Hi there I have a variable called z in a 9x1 cell. See the picture: Is ther anyway to combine the cells to one cell like 360...

4 months ago | 2 answers | 0

2

answers

Question


Error: Index exceeds array bounds
Hi I have tried this question before but now the question will be more simplyfied. Sorry for the last! I have used a for loop ...

4 months ago | 1 answer | 0

1

answer

Question


Index exceeds array bounds and some other mistakes
Hi I have some problems with my code and really need help to finding the error. I stared at me blindly. Anyone who will take...

4 months ago | 2 answers | 0

2

answers

Question


Error: Invalid use of operator with nc files
Hi I have a code where i run a couple of nc-files. I have make a for loop so I can run it over all the time steps and for all t...

4 months ago | 1 answer | 0

1

answer

Question


Index exceeds array bounds
Hi When I run my code, I got the error "Index exceed array bounds. I am not sure what it's mean? I got it in the line "z{i} ...

4 months ago | 1 answer | 0

1

answer

Question


Error "Could not open file 'ncfiles'". when using a for loop to open ncfiles
Hi I have 469 ncfiles and I open them in a loop: ncfiles = dir('*.nc') ; Nfiles = length(ncfiles) ; for i = 1:Nfiles; ...

5 months ago | 1 answer | 0

1

answer

Question


Percentage of a value in a table rows matlab
Hi I want to find a certain value in each row in a table. An example: [3 5 4 6 2 7 5 11 12 2; 1 4 3 6 7 5 3 7 12 10 15; 6 8 7 ...

5 months ago | 1 answer | 0

1

answer

Question


Error using cat: Dimensions of arrays being concatenated are not consistent.
I want to combine 4 matrices with dimensions: z = 360x181x124 z1 = 360x181x124 z2 = 360x181x112 z3 = 360x181x124 I use the...

5 months ago | 1 answer | 0

1

answer

Question


Make a timevector with netcdf
Hi I hvae 4 time vectors with the same interval. And I hvae 4 variables vector (same variable) there is depending on the time....

5 months ago | 0 answers | 0

0

answers

Question


How to open multiple nc files
Hi I want to load data from 4 different .nc files (four months), but with the same structure and same variables. Can only read...

5 months ago | 0 answers | 0

0

answers

Question


How to read more than one netcdf file?
I got around 480 netcdf-files that needs to be run in the same matlab-script. The files are named in a logical format, like this...

5 months ago | 0 answers | 0

0

answers

Question


Invalid expression. Check for missing or extra characters.
Hi When I run my code I got an error message "Invalid expression. Check for missing or extra characters" for my if loop. I am...

5 months ago | 1 answer | 0

1

answer

Question


How to make a Hovmoller plot?
Hi I'm trying to make a Hovmoller diagram with latitudes out of the x-axis and the time up of the y-axis. The actual plot is th...

5 months ago | 0 answers | 0

0

answers

Answered
Making a monthly mean
I think I understand your solution. You can see I have data for one month for every 6 hour and I want the mean for the month (o...

6 months ago | 0

Question


Making a monthly mean
Hi I have data for the geopotential for every 6 hours over a whole month. I want to get a mean over the data for the month. ...

6 months ago | 2 answers | 0

2

answers

Question


Plotting geoid mistake when using geoshow
Hi I hope someone can help me. I have this matlab code with a .nc file. When I plot it becomes my geostrophic wind, vg, plot s...

6 months ago | 0 answers | 0

0

answers

Question


pcolor plot on a geoid
Hi How can I plot my pcolor in a geoid? When I plotting I just get a white map with no data. figure(4) [c,h]=cont...

6 months ago | 0 answers | 0

0

answers

Question


The size of X must match the size of Z or the number of columns of Z.
Hi there I have a netcdf file I have running in MatLab. But I want to plot contour lines for the geostrophic wind. When I r...

7 months ago | 1 answer | 0

1

answer

Question


Plot data from netcdf file
Hi I'm having trouble plotting my netcdf file. I use pcolor, but the first time I tried I had noted Z'. This broke it over ...

7 months ago | 1 answer | 0

1

answer