Question: The inner loop in the demoFTCS code is for i=2:nx-1 u0) = r*ugld(i-1) + r2*yold) + r*yold+1); end Explain why the range for index i

 The inner loop in the demoFTCS code is for i=2:nx-1 u0)

The inner loop in the demoFTCS code is for i=2:nx-1 u0) = r*ugld(i-1) + r2*yold) + r*yold+1); end Explain why the range for index i is 2:nx-1 and not 1:nx

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!