% JDDBN file jddbn.m Joint distribution function % Version of 10/7/96 % Joint discrete distribution function for % joint matrix P (arranged as on the plane). % Values at lower left hand corners of grid cells P = input('Enter joint probability matrix (as on the plane) '); FXY = flipud(cumsum(flipud(P))); FXY = cumsum(FXY')'; disp('To view corner values for joint dbn function, call for FXY')