How to implement ∇g • ∇Ψi /|∇Ψi | and div (∇Ψi/ |∇Ψi |) terms ?
1 view (last 30 days)
Show older comments
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?
0 Comments
Answers (0)
See Also
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!