help-octave
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: Short Cut Way to Assign the Variables x1, x2....x40 names
From
:
Nir Krakauer
Subject
:
Re: Short Cut Way to Assign the Variables x1, x2....x40 names
Date
:
Sat, 13 Sep 2014 15:12:00 -0400
I don't think you can do it in Fortran.
You can in Octave, though:
for i = 1:40
eval(['x' num2str(i) ' = y' num2str(i) ' + a;'])
endfor
reply via email to
[
Prev in Thread
]
Current Thread
[
Next in Thread
]
Short Cut Way to Assign the Variables x1, x2....x40 names
,
Ed Song
,
2014/09/13
Re: Short Cut Way to Assign the Variables x1, x2....x40 names
,
Nir Krakauer
<=
Re: Short Cut Way to Assign the Variables x1, x2....x40 names
,
Przemek Klosowski
,
2014/09/15
Re: Short Cut Way to Assign the Variables x1, x2....x40 names
,
Fausto Arinos de A. Barbuto
,
2014/09/14
Prev by Date:
Short Cut Way to Assign the Variables x1, x2....x40 names
Next by Date:
general package installed but not 'ready for use'
Previous by thread:
Short Cut Way to Assign the Variables x1, x2....x40 names
Next by thread:
Re: Short Cut Way to Assign the Variables x1, x2....x40 names
Index(es):
Date
Thread