Community Profile

photo

Fei Lai


University of Sydney

Active since 2016

Followers: 0   Following: 0

Message

Statistics

Feeds

View by

Question


How to replace two for loops with matrix expression
the original code is like this: % for i=2:nhx-1 for j=2:nhy-1 Unew(i,j)= U(i,j)-dt*(P(i+1,j)-P(i-1,j))/(2*hx).....

8 years ago | 1 answer | 0

1

answer