Community Profile

# gianluca

23 total contributions since 2011

Contributions in
View by

Question

find the closest value
Hi, I have two matrices. A = [01 105 6; 01 203 12; 02 99 6; 02 306 15]; B = [01 0 0; 01 100 25; 01 200 50; 01 300 75; 0...

6 months ago | 1 Answers | 0

### 1

Question

compare matrices with different dimension
Hi, A = [100123 1 1 50; 100123 1 2 53; 100123 1 3 55; 100456 2 1 78; 100456 2 2 75; ...

2 years ago | 2 Answers | 0

### 2

Question

how to use accumarray and polyfit
hi, I would perform a simple linear fit on selected data in a large dataset to obtain the intercept and slope values. The data a...

2 years ago | 1 Answers | 0

### 1

Question

operations on large dataset
Hi, I want to apply functions on specific data stored in a table (Matrix). The data are of the form: A = [100123 1 1 2500; ...

2 years ago | 1 Answers | 0

### 1

Question

reshape 3d matrix to obtain a column vector
Hi, I've a 3D Matrix A(3x3x3): A(:,:,1) = [1 2 3; 4 5 6; 7 8 9] A(:,:,2) = [10 11 12; 13 14 15; 16 17 18] A(:,:,...

2 years ago | 1 Answers | 0

### 1

Question

How to set a variable name in a code
Hi, I'm writing a code to make operations on imported external data coming from several measurement sites and plot results. I w...

2 years ago | 1 Answers | 0

### 1

Question

how create a new matrix with values found in an another matrix
Hi, I've the matrix A with dimension (m*n*p). I've found the indexes of the first non-zero elements along the dimension p. Th...

4 years ago | 1 Answers | 0

### 1

Question

Compute values in the nodes of a 3d matrix
Hi, Let S2 a surface below the surface S1, I would to compute values in the nodes below S2, starting from the values computed...

4 years ago | 1 Answers | 0

### 1

Question

Compute values in the nodes of a 3d matrix
Hi, I've to compute values in the nodes of a 3d matrix. The coefficients vary along i and j index (X and Y direction). They v...

4 years ago | 2 Answers | 0

### 2

Question

where is the error?
Hi, running the following script: % Create a data set: x = rand(100,1)*4 - 2; y = rand(100,1)*4 - 2; S = x.*exp(-...

4 years ago | 2 Answers | 0

### 2

Question

find index on 3d matrix
Hi, I've a grid [X,Y,Z] = meshgrid(XI,YI,ZI); where XI = 1:1:4; YI = 1:1:4; ZI = -500:100:5000; and a 3d ...

4 years ago | 1 Answers | 0

### 1

Question

3d mesh and index operations
Hi, I've a 3d grid: [X,Y,Z] = meshgrid(0:250:1000,0:250:1000,0:250:1000); and a surface (in this example a plane): ...

4 years ago | 1 Answers | 0

### 1

Responded

Re: Assigning individual matrices to nodes in a mesh
Hi jacob, do you solved your problem about to assign a value to each node of a 3d mesh?

4 years ago | 2029 views

Question

criteria to assign physical properties at each nodes of a 3d model
Hi, I'm building a 3d geological model (i.e. two layers). I would assign at each node of the model a physical property (e.g. th...

4 years ago | 0 Answers | 0

### 0

Question

how plot results of a 3d matrix
Hi, I've a meshgrid [X,Y,Z] = meshgrid(0:250:1000,0:250:1000,0:250:1000) and I computed in each node a value of tempe...

4 years ago | 1 Answers | 0

### 1

Question

matrix manipulation
Hi, I've an ASCII file like this 450 1 2 3 4 5 6 7 8 9 10 11 12 13 451 1 2 3 4 5 6 7 8 9 10 11 12 13 452 1 2 3 ...

4 years ago | 1 Answers | 0

### 1

Question

What is it better?
From the computational point of view, is it better one cycle _for_ with following _if_ statements, or several cycles _for_ for e...

4 years ago | 2 Answers | 1

### 2

index calculations
This script, to compute one-dimensional steady-state conductive geotherm with internal heat source, works. Any advice to improve...

4 years ago | 0

Question

index calculations
Hi, I need to do index calculations. I've a vertical column divided into thin layers, for which properties are considered const...

4 years ago | 2 Answers | 0

### 2

Question

non linear minimization
Hi, I've this function which describes the temperature T vs depth z T(i) = T0 - (H(i).*z(i).^2)./k(i) + ((Q.*z(i))./k(i)...

4 years ago | 1 Answers | 0

### 1

Question

store solutions of a for loop
Hi, this is my M-file named nle.m function F = nle(x,b1,b2) F = [(1-x(1))*x(2)*30+(1-x(1))*(1-x(2))*150-b1; x(1)*189+(1...

5 years ago | 1 Answers | 1

### 1

Question

fsolve
Hi, I'm solving a system of two non linear equations involving the same number of variables. I'm using the command fsolve, so...

5 years ago | 1 Answers | 0