<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>updating matrix</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1649" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff size=2>Hi 
Paul,</FONT></SPAN></DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff size=2>I 
usually use "find" for this kind of operation</FONT></SPAN></DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff size=2>--> 
A = A (find (A ~= X))</FONT></SPAN></DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff size=2>will 
remove the entry A=X from A if it is there.</FONT></SPAN></DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff size=2>I 
don't know how efficient this is, but the syntax is quite 
neat.</FONT></SPAN></DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff size=2>Hope 
that helps.</FONT></SPAN></DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff 
size=2>Mike.</FONT></SPAN></DIV>
<DIV><SPAN class=870255809-31052011><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Carrico, Paul 
  [mailto:paul.carrico@esterline.com]<BR><B>Sent:</B> 31 May 2011 
  10:48<BR><B>To:</B> users@lists.scilab.org<BR><B>Subject:</B> [scilab-Users] 
  updating 
  matrix<BR><BR></FONT></DIV><!-- Converted from text/plain format --><BR>
  <P><FONT size=2>Dear all<BR><BR>I've the following matrix :<BR><BR>A = [N1 N2 
  N3 .... Ni .... Nn ]' with n data<BR><BR>In an iterative process, the idea is 
  to decrease the size of the matrix when the wanted value(integer) is found 
  .<BR><BR>i = 1 -> size = n<BR>i = 2 -> the ith value is removed => 
  size = n-1<BR>and so on up to n = 1<BR><BR>Is there a relevant way to do it 
  without creating a temporary matrix B -> copying the upper part/lower part 
  of the matrix -> removing A and renaming B in A ..... ?<BR><BR>The aim is 
  both to limit the number of iterations (and to limit the time consuming) and 
  to have a "clean" synthax !<BR><BR>Thanks for any 
  advice<BR><BR>Regards<BR><BR>Paul<BR><BR></FONT></P><PRE>--------------------------------------------------------------------------------


Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.

</PRE></BLOCKQUOTE></BODY></HTML>