Community Profile

photo

zephyr21


Active since 2016

Statistics

  • Thankful Level 2

View badges

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

5 years ago | 2 answers | 0

2

answers

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 2 answers | 0

2

answers

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

5 years ago | 2 answers | 0

2

answers

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 2 answers | 0

2

answers

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 0 answers | 0

0

answers

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 0 answers | 0

0

answers

Question


How can I create a 3-d matrix from a 2-d matrix?
My matrix is an 11x14 matrix and I would like to create 2 more "pages" behind the original of the same values for a total of 3 "...

5 years ago | 2 answers | 0

2

answers