function mPlotJointPDF( title_label, x_label, x_values, y_label, y_values, z_label, joint_pdf ) fprintf( 2, 'Plotting...' ); mesh( x_values, y_values, joint_pdf' ); grid on; PDF_max = max( max( joint_pdf ) ); PDF_max = ceil( PDF_max*2000 ) / 2000; axis( [ min( x_values ) max( x_values ) min( y_values ) max( y_values ) 0 PDF_max ] ); view( -10, 30 ); xlabel( x_label ); ylabel( y_label ); zlabel( z_label ); title( title_label ); drawnow; fprintf( 2, 'done\n.' );