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

4 days ago | 0 answers | 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...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

5 months ago | 1 answer | 0