Matrix with a variable as name ...

classic Classic list List threaded Threaded
3 messages Options
Maso Ricci Maso Ricci
Reply | Threaded
Open this post in threaded view
|

Matrix with a variable as name ...

Hi all,

I wonder whether is possible to assign to name a matrix with a variable;
like

for i = 1:10

namematrix='A'+string(i)


.
.
.


Thanks

/maso


--

Maso Ricci Ph.D
Dept. of Chemical and Biosystem Science
University of Siena
Via A. Moro, 2 ­ 53100 Siena
ITALY
Tel: +39 0577 234367
Fax: +39 0577 234177
email: [hidden email]

Matthew Albrecht Matthew Albrecht
Reply | Threaded
Open this post in threaded view
|

Re: Matrix with a variable as name ...

Hello,
I had help with this just recently, is this what you need?
http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showthread&month=200803&threadid=njmjggkfcppoaocjhenj

Matt

On 14/04/2008, Maso Ricci <[hidden email]> wrote:
Hi all,

I wonder whether is possible to assign to name a matrix with a variable; like

for i = 1:10

namematrix='A'+string(i)


.
.
.


Thanks

/maso


--

Maso Ricci Ph.D
Dept. of Chemical and Biosystem Science
University of Siena
Via A. Moro, 2 ­ 53100 Siena
ITALY
Tel: +39 0577 234367
Fax: +39 0577 234177
email: [hidden email]

Maso Ricci Maso Ricci
Reply | Threaded
Open this post in threaded view
|

Re: Matrix with a variable as name ...

perfect !

thanks

/maso



Matthew Albrecht wrote:

> Hello,
> I had help with this just recently, is this what you need?
> http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showthread&month=200803&threadid=njmjggkfcppoaocjhenj 
> <http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showthread&month=200803&threadid=njmjggkfcppoaocjhenj>
>
> Matt
>
> On 14/04/2008, *Maso Ricci* <[hidden email] <mailto:[hidden email]>>
> wrote:
>
>     Hi all,
>
>     I wonder whether is possible to assign to name a matrix with a
>     variable; like
>
>     for i = 1:10
>
>     namematrix='A'+string(i)
>
>
>     .
>     .
>     .
>
>
>     Thanks
>
>     /maso
>
>
>     --
>
>     Maso Ricci Ph.D
>     Dept. of Chemical and Biosystem Science
>     University of Siena
>     Via A. Moro, 2 ­ 53100 Siena
>     ITALY
>     Tel: +39 0577 234367
>     Fax: +39 0577 234177
>     email: [hidden email] <mailto:[hidden email]>
>
>

--

Maso Ricci Ph.D
Dept. of Chemical and Biosystem Science
University of Siena
Via A. Moro, 2 ­ 53100 Siena
ITALY
Tel: +39 0577 234367
Fax: +39 0577 234177
email: [hidden email]