Answered

Filling the area between curves (loglog)

Not very elegant, but I found that the best solution was to create manually: x = [cc(1:idx(1)) fliplr(cc(1:idx(1)-1))]; y =...

Filling the area between curves (loglog)

Not very elegant, but I found that the best solution was to create manually: x = [cc(1:idx(1)) fliplr(cc(1:idx(1)-1))]; y =...

2 months ago | 0

| accepted

Question

Filling the area between curves (loglog)

Hello, I would like to fill the area between the two lines (on the interval 10^-2 & 10^-1): I tried creating my own p...

2 months ago | 2 answers | 0

Question

Reducing the resolution of a matrix

Hello, I have a DEM that has a 2m resolution, and I would like to reduce this resolution to 250m so I can work with a tempera...

2 months ago | 1 answer | 0

Question

Replicating a curve with frequency and area

Hello, I was asked to replicate the figure attached to this message. I have a vector of glacier areas (in square-kilometer)...

2 months ago | 1 answer | 0

Question

Excel "Open method of Workbooks class failed"

Hello, I am working with 3 functions running in parallel with parfor, and they are supposed to give approximately 3000 output...

5 months ago | 1 answer | 0

Question

Matfile modify the variable of a structure

Hello all I need advices on how to use matfile(). I have a .mat file which is a structure. This file is called '2019hydro.m...

5 months ago | 1 answer | 0

Question

What is the best way to implement thousands of data in multiple matrices ?

Hello, I have a folder with 10.000 .mat files, each of them is a structure with 8 different variables (one value each). Each...

5 months ago | 2 answers | 0

Question

Functions working with parfor but not parfeval

Hello, I am currently working on a code where I want to accelerate a bit the process with some parallel computing. I have 2 ...

6 months ago | 0 answers | 0

Question

Parfor loop: how to keep the temporary variables ?

Hello, I am working with a time-consuming code and I want to put in parallel computing the independant functions I use. I ha...

6 months ago | 1 answer | 0

Question

Imposing variable in script

Hello everybody, I am currently working with a script that uses many functions and sub-functions. The issue is that I have a ...

6 months ago | 1 answer | 0

Question

Access automatically substructures from loop

Good morning everybody, I hope everything is good for you, I am working with large structures and I want to automatize some t...

7 months ago | 1 answer | 0

Question

Making a square figure with pcolor

Hello, I have 2 matrices for x and y coordinates, and a matrix of temperatures. From the matrices, I make 2 coordinate vector...

7 months ago | 2 answers | 0

Question

Plotting temperatures in a changing coordinate system

Hello, I apologize in advance if what I write is confused, it is difficult to put my problem into words. I have a temperatu...

8 months ago | 0 answers | 0

Question

Get row and column of the closest value of a matrix from a variable

Hello, I have a latitude vector of dimensions 17 x 1. I have a latitude matrix of dimension 300 x 300. I would like to find ...

8 months ago | 1 answer | 0

Question

Set colorbar outside the window

Hello, I would like to know if it is possible to display the colorbar outside the window ? (further to the right, outside the...

8 months ago | 1 answer | 0

Answered

Make NaNs transparent with pcolor

Ok I managed to find where it was blocking everything. The issue is that I was setting a black background for the second figure...

Make NaNs transparent with pcolor

Ok I managed to find where it was blocking everything. The issue is that I was setting a black background for the second figure...

8 months ago | 0

| accepted

Question

Make NaNs transparent with pcolor

Hello, I have a matrix with NaNs and other values. I plot in the background a land mask on which the values overlay. But, bec...

8 months ago | 1 answer | 0

Question

Save figure with black background and window

Hello everybody, I have several figures with black background, and I would like to save them and do something similar to the ...

8 months ago | 1 answer | 0

Question

Make coastline contour from DEM (3d matrix)

Hello, I have a DEM, 3d matrix with elevation coordinates depending on the xy location. I would like to create a plot (or mat...

8 months ago | 1 answer | 0

Question

How to filter out NaNs on images ?

Hello everybody, I would like to create a map where I can assign a brownish color to the areas inside the black contour lines...

9 months ago | 1 answer | 0

Question

Cropping out the image/generating image the same size as the matrix it comes from

Hello, So I have a matrix that I display with imagesc(). I gray it in order to apply imcontour(), and plot this contour on th...

9 months ago | 1 answer | 0

Question

Construct a vector from another, but add 2 values every 10 iteration

Hello ! I would like to create a vector B from a vector A, and at every 10th iteration, implement 2 times the same value from...

10 months ago | 1 answer | 0

Question

Create a gaussian from x values

Hello ! I have a 1x301 array (vector V) of equally sparsed values generated with linspace(0,1,301) and I would like to create...

10 months ago | 1 answer | 0

Question

How to increment a v value to an i position in a vector every n iterations ?

Hello, In the context of meshing for a 1D finite elements method, I have a vector with 1 row and n columns (nodes). I divide ...

10 months ago | 1 answer | 0