function [x,y,t,u,px,py,p] = jcalcf(X,Y,P) % JCALCF [x,y,t,u,px,py,p] = jcalcf(X,Y,P) Function version of jcalc % Version of 5/3/95 % Allows arbitrary naming of variables if sum(size(P) ~= [length(Y) length(X)]) > 0 error(' Incompatible vector sizes') end x = X; y = Y; p = P; px = sum(P); py = fliplr(sum(P')); [t,u] = meshgrid(X,fliplr(Y));