<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=433031409-24092010>thanks</SPAN></FONT></DIV>
<DIV> </DIV><BR>
<DIV dir=ltr lang=fr class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>De :</B> Antoine Monmayrant
[mailto:antoine.monmayrant@laas.fr] <BR><B>Envoyé :</B> vendredi 24
septembre 2010 10:24<BR><B>À :</B>
users@lists.scilab.org<BR><B>Objet :</B> Re: [scilab-Users] How to
automatically increase matrix name number<BR></FONT><BR></DIV>
<DIV></DIV>Le 24/09/2010 10:05, Carrico, Paul a écrit :
<BLOCKQUOTE cite=mid:55A12CBC06A8C9459DCE0BBEF8122FDC0498AE81@exchsrv.AUXITROL1
type="cite">
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<DIV><SPAN class=598405907-24092010><FONT size=2
face=Arial>All,</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT size=2 face=Arial>In a loop I would
like to create several matrix but their size as well as their number/name
number depend on the file results (they're automatically
created).</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT size=2 face=Arial>Is it possible
that the name number becomes a variable ?</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT size=2 face=Arial>for i = 1 :
n</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT size=2 face=Arial>
creation of A1[] / A2[] / A3[] .... An[]</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT size=2 face=Arial>end
for</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT size=2 face=Arial>Please note each
matrix size may be different</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT size=2 face=Arial>Thanks for any
advice</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT size=2
face=Arial>Paul</FONT></SPAN></DIV><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>Here is an
example:<BR><BR>i=10;mystr="matrix_"+string(i)+"=[1 2, 3
4]";execstr(mystr);<BR><BR>Once you've ran it, matrix_10 is created and contains
[1 2, 3 4].<BR><BR>Antoine<BR><BR></BODY></HTML>
<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.