Community Profile

photo

Jonas Damsbo


Last seen: circa 4 anni fa Attivo dal 2018

Statistiche

  • Thankful Level 3

Visualizza badge

Content Feed

Visto da

Domanda


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

circa 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 4 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 4 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 5 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 5 anni fa | 7 risposte | 0

7

risposte

Domanda


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

oltre 5 anni fa | 0 risposte | 0

0

risposte

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

oltre 5 anni fa | 0

Domanda


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

oltre 5 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta