Community Profile

# zephyr21

Active since 2016

#### Content Feed

View by

Question

How to plot multiple lines in a graph?
I have a matrix with several 5 layers. I want to plot the numbers at a specific gridpoint for layers 2,3, and 4. How would I go ...

mer än 5 år ago | 2 answers | 0

### 2

Question

Making cool or interesting plots?
I have a matrix P(:,:,:,n) of pressures that I would like to make a cool distribution plot out of. I would like several plots fo...

mer än 5 år ago | 1 answer | 0

### 1

Question

Is there a way to reference several coordinates for a specific dimension inside of a matrix?
I have a matrix that I'm using to reference values from. 3 of the columns refer to i,j,and k. I have several equations in loops ...

mer än 5 år ago | 1 answer | 0

### 1

Question

How to turn a column vector into a 3D matrix?
I have a 324x1 matrix, and I would like to put it into a 3-D 9x12 matrix of i,j,k with the first numbers in the vector going to ...

mer än 5 år ago | 1 answer | 0

### 1

Question

How do you crop a Matrix?
I have a 770x770 matrix that I want to cut down to a 324x324 matrix. How would I cut off the bottom 446 rows and rightmost 446 c...

mer än 5 år ago | 2 answers | 0

### 2

Question

How to turn multiple outputs into a array
I have N=60 for n=1:N Rate2Graph=Rate_overtime(5,5,n); end This gives an answer for each time step. How can I ta...

mer än 5 år ago | 2 answers | 0

### 2

Question

How to plot values over time?
I have an output that spits out 60 different values over the course of N=60 timesteps. How can I plot these values vs time? My c...

mer än 5 år ago | 1 answer | 0

### 1

Question

How to edit a surf graph?
I currently have the code for n=1:N surf(P_overtime(:,:,n)); axis tight colormap colorbar drawnow ...

mer än 5 år ago | 1 answer | 0

### 1

Question

How to plot a matrix over time on a 2D or 3D graph
I have an 11x14 matrix of variables P that change over the course of 60 timesteps. I currently have P_overtime(:,:,n) = P. Where...

mer än 5 år ago | 2 answers | 0

### 2

Question

How to add matrix to previous matrices after every iteration?
So I have an 11x14 matrix with only two numbers in it, the rest are zeros. These two numbers will change with every iteration (f...

mer än 5 år ago | 1 answer | 0

### 1

Question

Is there a way to reference a matrix so that it knows its position in another matrix?
Is there a better way to reference this table? the i and j columns are referring to a specific point inside an 11x14 matrix. Loo...

mer än 5 år ago | 1 answer | 0

### 1

Question

Variable not updating with each iteration
I have many different equations with variables and coefficients running through a for loop and at the end, are sorted into [A] [...

mer än 5 år ago | 1 answer | 0

### 1

Question

How do you update a variable in a timestep loop?
I have many equations in a for loop that will need to be updated with each iteration of 1 through 60 with dt being 1 (so 1,2,3,4...

mer än 5 år ago | 0 answers | 0

### 0

Question

How to get a column vector from a 11x14 matrix?
So I have an 11x14 matrix 'Q' of values, and I would like to make one column vector 'b' from these values row by row. my code is...

mer än 5 år ago | 1 answer | 0

### 1

Question

How to use a solver function to solve matrix?
So I have an equation that goes something like N.*P + S.*P + E.*P + W.*P = Q N S E and W are coefficients, P is pressure chang...

mer än 5 år ago | 0 answers | 0