photo

Ming Ki Lee


Attivo dal 2017

Followers: 0   Following: 0

Statistica

  • Thankful Level 1

Visualizza badge

Feeds

Visto da

Domanda


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

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 7 anni fa | 3 risposte | 0

3

risposte