iFunc_McCode [from iFunc]
  iFunc_McCode: create an iFunc_McCode from e.g. an instrument model
 
  The iFunc_McCode class is a model holding a ray-tracing instrument simulation.
 
  Example: s=mccode('defaults')
 
  Useful methods for this iFunc flavour:
 
  methods(iFunc_McCode)
    all iFunc methods can be used.
  iFunc_McCode(a)
    convert a 4D model [a=iFunc class] into an iFunc_McCode to give access to
    the methods below.
  info(a)
    print out some information about the instrument model, just as McCode --info would do.
  plot(a)
    plot the instrument geometry
  subplot(a)
    plot the instrument simulation results (monitors)
  publish(a)
    Generate a readable document with all results
  edit(a)
    Show the instrument code, and re-compile the instrument when modified
  dialog(a)
    Display a simple dialogue window to run a single or series of simulations
 
syntax:
m = iFunc_McCode(s)
input: s: can be an iFunc or struct or any set of parameters to generate a McCode object. when not given an iFunc, the parameters to mccode are expected. output: an iFunc_McCode object
See also
Class Details
Superclasses iFunc
Sealed false
Construct on load false
Constructor Summary
iFunc_McCode : create the iFunc_McCode subclass 
Property Summary
Constraint Restraints/constraints to evaluate before computing the Expression, can be: a function_handle, a char/cellstr, a vector (length p), a structure with fields: min, max, fixed 
Date Creation date 
Description Description (long) 
Dimension Model dimensionality (1,2,3,4...) 0=scalar=empty. a negative dimension is used to indicate a variable dimensionality. 
Duration Time spent for the evaluation 
Eval Code to evaluate for the model value 
Expression Expression to evaluate to get the function value, char or function_handle(p, x,y, ...) 
Guess Default parameter set or expression or function handle, char or function_handle(x,y,..., signal, Parameters{}) or 'automatic' 
Name Model Name (short) 
ParameterValues Current parameter values 
Parameters Function parameters, a cellstr or words or a single string of words separated by spaces, or a structure with parameter values 
Tag Unique ID 
UserData User data storage area 
class Class of the object, e.g iFunc or other derived class 
Method Summary
  abs b = abs(s) : absolute value of iFunc object 
  acos b = acos(s) : computes the arc cosine of iFunc object 
  acosh b = acosh(s) : computes the inverse hyperbolic cosine of iFunc object 
  asin b = asin(s) : computes the arc sine of iFunc object 
  asinh b = asinh(s) : computes the inverse hyperbolic sine of iFunc object 
  atan b = atan(s) : computes the arc tangent of iFunc object 
  atanh b = atanh(s) : computes the inverse hyperbolic tangent of iFunc object 
  ceil b = ceil(s) : upper integer round of iFunc object 
  cellstr ret = cellstr(s) : convert iFunc into a cell of strings 
  char ret = char(s) : convert iFunc into character 
  conj b = conj(s) : conjugate of iFunc object 
  conv c = conv(a,b) : computes the convolution of iFunc models 
  convn c = convn(a,b) : computes the convolution of an iFunc object with a response function  
  copyobj b = copyobj(s) : makes a copy of iFunc object 
  cos b = cos(s) : computes the cosine of iFunc object 
  cosh b = cosh(s) : computes the hyperbolic cosine of iFunc object 
  ctranspose b = ctranspose(s) : complex conjugate transpose of iFunc object 
  del2 b = del2(s) : computes the Discrete Laplacian of iFunc object 
  dialog run a McCode instrument model and request instrument parameters in a dialogue 
  disp  
  display d = display(s) : display iFunc object (from command line) 
  doc (iFunc): iFunc web page documentation 
  edit iFunc_McCode: edit: edit the instrument source description, and re-build the model when modified. 
  exp b = exp(s) : exponential value of iFunc object 
  feval iFunc_McCode: feval: Evaluate an McCode model value using given parameters and axes. 
  findfield [match, types, nelements]=findfield(iFunc, field, option) : look for iFunc fields 
  findstr [match, field]=findstr(s, str, option) : look for strings stored in iFunc 
  fits [pars,criteria,message,output] = fits(model, data, pars, options, constraints, ...) : fit a model on a data set 
  fix b = fix(s, parameters, ...) : sets parameter lock (fix) for further fit using the model 's' 
  fliplr b = fliplr(s) : Flip object in left/right direction 
  flipud b = flipud(s) : Flip object in up/down direction 
  floor b = floor(s) : lower integer round of iFunc object 
  fmax [Maxmimum,FVAL,EXITFLAG,OUTPUT] = fmax(FUN,PARS,[OPTIONS],[X,Y,...]) Best maximizer 
  fmin [MINIMUM,FVAL,EXITFLAG,OUTPUT] = FMIN(FUN,PARS,[OPTIONS],[X,Y,...]) Best optimizer 
  full b = full(s) : Convert iFunc object storage to full matrix 
  get [...] = get(s, 'PropertyName', ...) : get iFunc object properties 
  iFunc _McCode: iFunc: convert a single iFunc_McCode back to iFunc 
  imag b = imag(s) : imaginary part of iFunc object 
  imwrite f = imwrite(s, filename, format) : save iFunc object into an image 
  info iFunc_McCode: info: return/display model information just as --info 
  inputdlg iFunc_McCode: inputdlg: run a McCode instrument model and request instrument parameters in a dialogue 
  isempty (s) : true for empty iFunc object 
  isfield b = isfield(s, field) : check existence of field/parameter in model objects 
  load d = load(s, file): iFunc Model loader 
  log b = log(s) : natural logarithm value of iFunc object 
  log10 b = log10(s) : base 10 logarithm value of iFunc object 
  minus c = minus(a,b) : computes the difference of iFunc objects 
  mlock b = mlock(s, parameters, ...) : sets parameter lock (fix) for further fit using the model 's' 
  mpower c = mpower(a,b) : computes the power of iFunc objects 
  mrdivide c = mrdivide(a,b) : computes the ratio of iFunc objects 
  mtimes c = mtimes(a,b) : computes the multiplication of iFunc objects 
  munlock b = munlock(s, parameters, ...) : free parameter lock (clear) for further fit using the model 's' 
  ndims d = ndims(s) : get the dimensionality of iFunc object 
  norm b = norm(s) : norm-2 of iFunc object 
  not b = not(s) : computes the logical 'not' of iFunc object 
  ones s = ones(s,N,M,P,...) : initialize an iFunc array 
  plot iFunc_McCode/plot: runs the model in --trace mode and capture the output 
  plus c = plus(a,b) : computes the sum of iFunc objects 
  power c = power(a,b) : computes the power of iFunc objects 
  publish iFunc_McCode: publish: generate a readable HTML document and export results to 
  rdivide c = rdivide(a,b) : computes the ratio of iFunc objects 
  real b = real(s) : real value of iFunc object 
  round b = round(s) : upper integer round of iFunc object 
  save f = save(s, filename, format, options) : save iFunc object into various data formats 
  saveas f = saveas(s, filename, format, options) : save iFunc object into various data formats 
  set [s,...] = set(s, 'PropertyName', Propertyvalue, ...) : set iFunc properties 
  sign b = sign(s) : sign of iFunc object 
  sin b = sin(s) : computes the sine of iFunc object 
  sinh b = sinh(s) : computes the hyperbolic sine of iFunc object 
  sparse b = sparse(s) : Convert iFunc object storage to sparse 
  sqrt b = sqrt(s) : square root value of iFunc object 
  subplot iFunc_McCode: subplot: plot the instrument simulation results (monitors) 
  subsasgn b = subsasgn(a,index,b) : iFunc indexed assignement 
  subsref b = subsref(a,s) : iFunc indexed references 
  tan b = tan(s) : computes the tangent of iFunc object 
  tanh b = tanh(s) : computes the hyperbolic tangent of iFunc object 
  times c = times(a,b) : computes the multiplication of iFunc objects 
  trace iFunc_McCode/plot: runs the model in --trace mode and capture the output 
  transpose b = transpose(s) : non-conjugate transpose of iFunc object 
  uitable iFunc_McCode: uitable: run a McCode instrument model and request instrument parameters in a dialogue 
  uminus b = uminus(s) : opposite value of iFunc object 
  uplus b = uplus(s) : makes a copy of iFunc object 
  xcorr c = xcorr(a,b) : computes the correlation of iFunc models 
  xlim b = xlim(s, parameters, [min max], ...) : sets parameter bounds (min,max) for further fit using the model 's' 
  xmlwrite f = xmlwrite(s, filename) : save iFunc object into an XML file 
  zeros s = zeros(s,N,M,P,...) : initialize an iFunc array