photo

Ming Ki Lee


Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


About looping a matrix
L=45; tmax=60; U=0.8; D=1.6; Xs=8; Cs=10; Xflux=36; dt=6.328125; dx=4.5; mx=L/dx; ...

8 years ago | 1 answer | 0

1

answer

Question


Create a vector that only the first element and the last element is 0
B=zeros(mx,1); for z=1:mx if B(z,1) == B(1,1) B(z,1) = 0; elseif B(z,1) == B(mx,1) B(z,...

8 years ago | 1 answer | 0

1

answer

Question


How to find a value that is close to the gap?
L=50; dx=5; Xp = L/dx; Xs=8 start=0; eend=dx; for n=1:Xp if Xs>=start && Xs<=eend s...

8 years ago | 1 answer | 0

1

answer

Question


About a for loop matrix
for k=2:mx-1 for j=2:mx-2 A(k,j-1) = (D*dt)/dx^(2)+U*dt/(2*dx); break end break end I set t...

8 years ago | 1 answer | 0

1

answer

Question


Problem to display a matrix?
L=100; tmax=60; U=0.8; D=1.6; Xs=8; Cs=10; Xflux=36; mx=40; dt=100; dx=10; n = 0; i = 1; ...

8 years ago | 3 answers | 0

3

answers