Hello,

I am pursuing Doctoral degree at UL and my research is on Lattice Boltzmann simulation of particulate flows

Question

counting the number of clusters

I have a list of pair of numbers for example (please see below). In this example, if we look at the first column, the number one...

10 months ago | 2 answers | 0

Question

How to use for loop to open and read set of .bin files

Hello, I have a huge list of .bin files of the form x0,x1,x2....xn, and y0,y1,y2....yn, and z0,z1,z2....zn. I want to open and r...

2 years ago | 0 answers | 0

Question

How to generate randomly packed spheres of equal radius such that there is no overlapping

I have a cubic domain of size 100x50x50. How can i use the "sphere" function in matlab to generate spheres that are randomly pac...

2 years ago | 0 answers | 0

Question

How to plot a sphere with lines of latitude (constant phi) for a given center (xo, yo, zo) and radius (R)

How do I construct a sphere with lines of latitude using loops and not the inbuilt sphere function in matlab

2 years ago | 1 answer | 0

Question

Searching using loop in matlab

I have n (number of particles) = 1:10. These particles flow in the system and i want to check if for certain condition is satisf...

3 years ago | 1 answer | 0

Question

Storing vectors for different time steps in same variable name

I have a vector A of size 30 by 1, which changes its value for every time steps (ts). How will I store all the values in a same ...

3 years ago | 1 answer | 0

Question

how to specity axis using imagesc

Hi. I have a matrix A of size 200*40. I have to generate image for every 200 time steps for which i am using imagesc(A). By defa...

3 years ago | 1 answer | 0

Question

How to use for loop ?

Let's say I have a matrix A = zeros(1000,500). I have two another matrices of size 2 X 50 each for example B = [1 2 3 .... 50 ; ...

3 years ago | 2 answers | 0

Question

How to plot streamlines ?

Lets say I have channel of length x = 200 and height y = 200. I have my velocity (u and v) distributed throughout the channel of...

3 years ago | 1 answer | 0

Question

plotting a transient solution

Lets say I have a rectangular domain of length = 500m and height = 100m. I have the computed velocity distribution through the g...

3 years ago | 0 answers | 0

Question

Usage of 'dsolve' function in MATLAB

I am trying to solve a 1D transient (unsteady state) partial differential equation of the form, du/dt = c (d2u/dy2). Here 'd' is...

3 years ago | 1 answer | 0

Question

Plotting within for loop

Lets say for example I have a variable t = 1:1:5000. I want to execute my "for" loop from 1 to 5000 time steps. Within the "for"...

3 years ago | 1 answer | 0

Question

I have a question about for loop

Lets say a = [1,2,3....35] and b = [1,2,3...35]. The size of both the vectors are same i.e. 1 by 35. I have another matrix say R...

3 years ago | 1 answer | 0

Question

How will I collect/pick only certain values from a matrix, whose co-ordinates (which row and column to be picked) is specified in another vector?

I have two vectors say "a" and "b" of size 1by35 which stores certain values that specify the row and column number. I have anot...

3 years ago | 2 answers | 0