MATLAB XPC TARGET RELEASE NOTES Guía de usuario Pagina 453

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 531
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 452
setparam
Purpose Change writable target object parameters
Syntax MATLAB command line
setparam(target_object, parameter_index, parameter_value)
Arguments
target_object
Name of an existing target object. The default
name is
tg.
parameter_index
Index number of the parameter.
parameter_value
Value for a target object parameter.
Description Method of a target object. Set the va lue o f the target parameter. This
method returns a structure that stores the parameter index, previous
parameter values, and new parameter values in the following fields:
parIndexVec
OldValue s
NewValue s
Examples Set the value of parameter index 5 to 100.
setparam(tg, 5, 100)
ans =
parIndexVec: 5
OldValues: 400
NewValues: 100
Simultaneously set values for multiple parameters. Use the cell array
format to specify new parameter values.
setparam(tg, [1 5],{10,100})
ans =
parIndexVec: [1 5]
OldValues: {[2] [4]}
18-129
Vista de pagina 452
1 2 ... 448 449 450 451 452 453 454 455 456 457 458 ... 530 531

Comentarios a estos manuales

Sin comentarios