Jonas Damsbo
Followers: 0 Following: 0
Statistics
RANK
24,470
of 295,467
REPUTATION
1
CONTRIBUTIONS
28 Questions
1 Answer
ANSWER ACCEPTANCE
57.14%
VOTES RECEIVED
0
RANK
of 20,234
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 153,912
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
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 ...
5 years ago | 1 answer | 0
1
answerQuestion
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 ...
5 years ago | 1 answer | 0
1
answerQuestion
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...
5 years ago | 2 answers | 0
2
answersQuestion
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...
5 years ago | 0 answers | 0
0
answersQuestion
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,:)...
6 years ago | 1 answer | 0
1
answerQuestion
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 ...
6 years ago | 2 answers | 0
2
answersQuestion
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...
6 years ago | 1 answer | 0
1
answerQuestion
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?
6 years ago | 1 answer | 0
1
answerQuestion
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 ...
6 years ago | 1 answer | 0
1
answerQuestion
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 ...
6 years ago | 1 answer | 0
1
answerQuestion
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...
6 years ago | 2 answers | 0
2
answersQuestion
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 ...
6 years ago | 1 answer | 0
1
answerQuestion
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...
6 years ago | 2 answers | 0
2
answersQuestion
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...
6 years ago | 1 answer | 0
1
answerQuestion
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} ...
6 years ago | 1 answer | 0
1
answerQuestion
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; ...
6 years ago | 1 answer | 0
1
answerQuestion
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 ...
6 years ago | 1 answer | 0
1
answerQuestion
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...
6 years ago | 1 answer | 0
1
answerQuestion
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....
6 years ago | 0 answers | 0
0
answersQuestion
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...
6 years ago | 0 answers | 0
0
answersQuestion
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...
6 years ago | 0 answers | 0
0
answersQuestion
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...
6 years ago | 7 answers | 0
7
answersQuestion
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...
6 years ago | 0 answers | 0
0
answersMaking 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 years 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 years ago | 2 answers | 0
2
answersQuestion
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 years ago | 0 answers | 0
0
answersQuestion
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 years ago | 0 answers | 0
0
answersQuestion
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...
6 years ago | 1 answer | 0
1
answerQuestion
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 ...
6 years ago | 1 answer | 0