Institut de Robòtica i Informàtica Industrial

subsref

PURPOSE ^

Selects a subset of the sensor readings (operator: {}).

SYNOPSIS ^

function P=subsref(S,r)

DESCRIPTION ^

 Selects a subset of the sensor readings (operator: {}).

 Returns a sub-set of the sensor readings.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • size Number of poses in a trajectory.
  • size Size of the state estimated in the filter
  • size Size (rows/columns) of an interval matrix.
  • size Number of parameters of the pose.
  • size Number of readings stored in the Sensor.
This function is called by:

SOURCE CODE ^

0001 function P=subsref(S,r)
0002 % Selects a subset of the sensor readings (operator: {}).
0003 %
0004 % Returns a sub-set of the sensor readings.
0005 
0006   P=0;
0007   if strcmp(r.type,'{}')
0008     range=r.subs{1};
0009     if size(range,2)>1
0010       P={S.readings{range}};
0011     else
0012       P=S.readings{range};
0013     end
0014   end


Institut de Robòtica i Informàtica Industrial

Generated on Fri 24-Jul-2009 12:32:50 by m2html © 2003