Home > wafo > trgauss > createpdf.m

createpdf

PURPOSE ^

PDF class constructor

SYNOPSIS ^

f=createpdf(ndim)

DESCRIPTION ^

  CREATEPDF PDF class constructor
 
  CALL:  f=createpdf(ndim)
 
   creates a struct with the following fields
       
       f.f      = pdf (ndim-dimensional matrix)
       f.x      = cellarray of vectors of lags in ndim dimensions (ndim cells)
       f.labx   = cellarray of strings of label strings (ndim cells)           
       f.title  = title string
       f.note   = note string
       f.date   = creation date and time
 
       ndim     = # dimensions (default 1)
 
   Examples:   f = createpdf(2) gives the structure
         f: []
         x: {2x1 cell}
      labx: {2x1 cell}
     title: []
      note: []
      date: '16-Oct-1999 16:56:54'
 
  See also  datastructures, pdfplot, createcov

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

001 function f=createpdf(ndim)
002 % CREATEPDF PDF class constructor
003 %
004 % CALL:  f=createpdf(ndim)
005 %
006 %  creates a struct with the following fields
007 %      
008 %      f.f      = pdf (ndim-dimensional matrix)
009 %      f.x      = cellarray of vectors of lags in ndim dimensions (ndim cells)
010 %      f.labx   = cellarray of strings of label strings (ndim cells)           
011 %      f.title  = title string
012 %      f.note   = note string
013 %      f.date   = creation date and time
014 %
015 %      ndim     = # dimensions (default 1)
016 %
017 %  Examples:   f = createpdf(2) gives the structure
018 %        f: []
019 %        x: {2x1 cell}
020 %     labx: {2x1 cell}
021 %    title: []
022 %     note: []
023 %     date: '16-Oct-1999 16:56:54'
024 %
025 % See also  datastructures, pdfplot, createcov
026 
027 %Tested on: Matlab 5.3
028 %History:
029 % revised es 25.10.1999 help and cosmetics 
030 % revised pab 16.10.1999
031 % changed .xi and .labxi to .x and .labx cellarrays for 
032 %      faster computation and easier access
033 % by pab 16.09.99
034 
035 
036 if nargin<1|isempty(ndim)
037  ndim=1;
038 end
039 
040 f=struct('f',[]);
041 f.x=cell(ndim,1);
042 f.labx=cell(ndim,1);
043 f.title=[];
044 f.note=[];
045 f.date=datestr(now);
046 
047

Mathematical Statistics
Centre for Mathematical Sciences
Lund University with Lund Institute of Technology

Comments or corrections to the WAFO group


Generated on Thu 06-Oct-2005 02:21:16 for WAFO by m2html © 2003