Institut de Robòtica i Informàtica Industrial

subsasgn

PURPOSE ^

Changes the value of part of a interval matrix (operator: ()=).

SYNOPSIS ^

function I=subsasgn(I,S,Inew)

DESCRIPTION ^

 Changes the value of part of a interval matrix (operator: ()=).

 Replaces a sub-matrix of an interval matrix, I, by the given new interval
 sub-matrix, Inew.
 Parameter S provides information about the sub-matrix to replace.
 The new sub-matrix can be real. In this case it is interpreted as a
 punctual interval matrix.

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:

SOURCE CODE ^

0001 function I=subsasgn(I,S,Inew)
0002 % Changes the value of part of a interval matrix (operator: ()=).
0003 %
0004 % Replaces a sub-matrix of an interval matrix, I, by the given new interval
0005 % sub-matrix, Inew.
0006 % Parameter S provides information about the sub-matrix to replace.
0007 % The new sub-matrix can be real. In this case it is interpreted as a
0008 % punctual interval matrix.
0009 
0010   if strcmp(S.type,'()')
0011     if isa(Inew,'Interval')
0012       I.lower(S.subs{:})=Inew.lower;
0013       I.upper(S.subs{:})=Inew.upper;
0014     else
0015       if isa(Inew,'double')
0016         I.lower(S.subs{:})=Inew;
0017         I.upper(S.subs{:})=Inew;    
0018       end
0019     end
0020   end
0021


Institut de Robòtica i Informàtica Industrial

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