Neumann boundary condition-matlab code

14 ビュー (過去 30 日間)
Pooja
Pooja 2012 年 7 月 29 日
回答済み: Youssef El Seblani 2018 年 3 月 18 日
% Make a function satisfy Neumann boundary condition
1.function g = NeumannBoundCond(f)
2.[nrow,ncol] = size(f);
3.g = f;
4.g([1 nrow],[1 ncol]) = g([3 nrow-2],[3 ncol-2]);
5.g([1 nrow],2:end-1) = g([3 nrow-2],2:end-1);
6.g(2:end-1,[1 ncol]) = g(2:end-1,[3 ncol-2]);
What does the codes 4,5,6 mean?

回答 (1 件)

Youssef El Seblani
Youssef El Seblani 2018 年 3 月 18 日
your code is not clear

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by