Community Profile

photo

Fei Lai


University of Sydney

Active since 2016

Statistics

Content Feed

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

nästan 8 år ago | 1 answer | 0

1

answer