Institut de Robòtica i Informàtica Industrial

Scale

PURPOSE ^

Scales an interval matrix.

SYNOPSIS ^

function Iout=Scale(I,s)

DESCRIPTION ^

 Scales an interval matrix.

 Scales an interval matrix, I, by a constant real factor, s.

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:

SOURCE CODE ^

0001 function Iout=Scale(I,s)
0002 % Scales an interval matrix.
0003 %
0004 % Scales an interval matrix, I, by a constant real factor, s.
0005 
0006   if s>0
0007     Iout.lower=s*I.lower;
0008     Iout.upper=s*I.upper;
0009   else
0010     Iout.lower=s*I.upper;
0011     Iout.upper=s*I.lower;
0012   end
0013   Iout.r=I.r;
0014   Iout.c=I.c;
0015   Iout=class(Iout,'Interval');


Institut de Robòtica i Informàtica Industrial

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