prt_my_pet_pop
Creates my_pet_pop.html in specified directory
Contents
Syntax
prt_my_pet_pop (species, T, f, destinationFolder)
Description
Writes my_pet_pop.html with a list of population traits for selected species. This function just composes the html page; all statistics are computed in popStatistics_st. The parameters of species are obtained either from allStat.mat (and the reprod-code from allEco.mat), or from a cell-string {par, metaPar, metaData, reprod-code}. The first 3 cells are output structures of mydata_my_pet and pars_init_my_pet, as part of the parameter estimation process. Structure metadata is required to get species-name and T_typical, metaPar to get model. The last cell is a character string with the reprod-code as specified on the AmPeco.html page ('A' for heterogamy, 'O' for homogamy). If omitted, 'O' is assumed. If dioecy applies, the sex-ratio is assumed to be 1:1 and fertilisation is assumed to be sure. The energy cost for male-production is taken into account by halving kap_R. Male-specific parameters, i.e. z_m and E_Hpm, affect reported statistics. If 3rd input is a character string, it should specify a fraction for f in the interval (f_min, 1) If specified background hazards in 4th input are too high, no positive specific growth rate exists and errors can occur.
Input:
- species: character-string with name of entry or cellstring with structures: {metaData, metaPar, par}
- T: optional scalar with temperature in Kelvin (default: T_typical if metaData is specified or 20 C is character string is specified)
- f: optional scalar scaled functional response (default: 1) or character string representing a fraction
- h_B: optional vector with background hazards of length equal to the number of stages (depending on the model)
- destinationFolder: optional string with destination folder the output html-file (default: current folder)
- AmP: optional boolean (default false), if true then output my_pet_pop.html follows markup of the AmP collection
Output:
- no Malab output, but write files my_pet_pop.html, my_pet_pop_01.png, my_pet_pop_02.png and my_pet_pop.mat. The html-file opens automatically in the system browser if AmP=0 (default)
Remarks
If species is specified by string (rather than by data), its parameters are obtained from allStat.mat and the reprod-code is read from allEco.mat.
The search boxes in the top-line of the report can be used to select symbols, units, descriptions, but also (on the top-right) to make selections from the statictics. nan means "not a number": the model for that species does not have that field.
Example of use
- If results_My_Pet.mat exists in current directory (where "My_Pet" is replaced by the name of some species, but don't replace "my_pet"): load('results_My_Pet.mat'); prt_my_pet_pop({metaData, metaPar, par}, [], T, f, destinationFolder)
- prt_my_pet_pop('Rana_temporaria')
- prt_my_pet_pop('Rana_temporaria', C2K(22))
- prt_my_pet_pop('Rana_temporaria', [], 0.9)
- prt_my_pet_pop('Rana_temporaria', [], '0.5')