Quiver Plot for a PDE slution

2 views (last 30 days)
s jamali
s jamali on 23 Sep 2014
Hey guys I have a PDE solved in an arbitrary domain and I want to plot gradient of solution to achieve velocity field, I do this by pdegrad and pdeplot tool, but the final figure shows vectors in a bad pattern, is there any way to determine the position of vectors manually?
best regards ;)
part of code:
[ucx,ucy] = pdegrad(p,t,totq); % Calculate gradient ugrad = [ucy;-ucx]; pdeplot(p,e,t,'flowdata',ugrad,'xydata',totq,'contour','on','flowstyle','arrow')

Answers (0)

Community Treasure Hunt

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

Start Hunting!