photo

Ming Ki Lee


Aktiv seit 2017

Followers: 0   Following: 0

Statistik

  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 7 Jahre vor | 3 Antworten | 0

3

Antworten