%
%   Book: MATLAB-Based Electromagnetics (Pearson Prentice Hall)
%   Author: Branislav M. Notaros
%   Instructor Resources
%   (c) 2011
%
%   This MATLAB code or any part of it may be used only for 
%   educational purposes associated with the book
%
%
%

% This function computes divergence in Cartesian coordinate system and
% returns symbolic expression

function F = divCar(fx,fy,fz)
syms x y z 
F= diff(fx,x)+ diff(fy,y)+ diff(fz,z);

