photo

Jonas Damsbo


Last seen: fast 5 Jahre vor Aktiv seit 2018

Followers: 0   Following: 0

Statistik

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Output argument ‹variable› (and maybe others) not assigned during call to ‹function›
When I run my script, I get this error from my function. I can't see why This is my function: function pdf = apost(m); sd1 ...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Array indices must be positive integers or logical values
I have this MatLab code where I want to run a metropolis algorithm. In my s rho is a matrix 12x12 and L is a matrix 12x12. m0 ...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Solving equation in a for loop with data
I have this code with a for loop where I want to determine h(i). Is there any way I can solve this equation for h? h is the i...

fast 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Inverse problem: 2D convolution
I have this exercise. I need to find a matrix G based on d = Gm with a point spread function and an image. The task says I can f...

fast 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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,:)...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

fast 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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 ...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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} ...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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; ...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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....

etwa 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

etwa 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

etwa 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

etwa 6 Jahre vor | 7 Antworten | 0

7

Antworten

Frage


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...

etwa 6 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
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...

etwa 6 Jahre vor | 0

Frage


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. ...

etwa 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

etwa 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

etwa 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort