<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1649" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff size=2>Hi
Paul,</FONT></SPAN></DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff size=2>I
think you can use execstr, like:</FONT></SPAN></DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV><SPAN class=781381408-24092010>
<DIV><FONT face=Arial color=#0000ff
size=2>-->str='a=zeros(1,10)';</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>-->execstr(str);</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>-->a<BR> a
=</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>
0. 0. 0.
0. 0. 0.
0. 0. 0. 0.</FONT></DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff size=2>I have
used execstr successfully for this kind of thing. You can also use the
errcatch argument (see help text) to trap errors when executing strings, which I
use a lot for checking if files are named correctly and so
on.</FONT></SPAN></DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff
size=2>HTH</FONT></SPAN></DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff
size=2>Mike.</FONT></SPAN></DIV>
<DIV><SPAN class=781381408-24092010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV></SPAN>
<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> 24 September 2010
09:05<BR><B>To:</B> users@lists.scilab.org<BR><B>Subject:</B> [scilab-Users]
How to automatically increase matrix name number<BR><BR></FONT></DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial
size=2>All,</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial size=2>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><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial size=2>Is it possible
that the name number becomes a variable ?</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial size=2>for i = 1 :
n</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial size=2>
creation of A1[] / A2[] / A3[] .... An[]</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial size=2>end
for</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial size=2>Please note each
matrix size may be different</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial size=2>Thanks for any
advice</FONT></SPAN></DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=598405907-24092010><FONT face=Arial
size=2>Paul</FONT></SPAN></DIV><PRE>--------------------------------------------------------------------------------
Le prisent mail et ses pihces jointes sont confidentiels et destinis ` la personne ou aux personnes visie(s) ci-dessus. Si vous avez regu cet e-mail par erreur, veuillez contacter immidiatement l'expiditeur et effacer le message de votre systhme. 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>