How to implement ∇g • ∇Ψi /|∇Ψi | and div (∇Ψi/ |∇Ψi |) terms ?

1 view (last 30 days)
hema Agrawal
hema Agrawal on 21 Jun 2014
let Ψi be any matrix. gradient of Ψi i.e. ∇Ψi will give us [Ψix,Ψiy]. magnitude of Ψi i.e. /|∇Ψi| is given by mag = sqrt((Ψix.*Ψix)+(Ψiy.*Ψiy)). then [Ψix,Ψiy]./mag gives error
" Error using ./ Matrix dimensions must agree "
So I don't understand how to implement it?
Same let g be any matrix, then how to implement first term?

Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!