function [out1,out2]=BF_gradEz(num,u,v) if num==1 out1=-1; out2=-1; elseif num==2 out1=1; out2=0; elseif num==3 out1=0; out2=1; end