[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
input string use in a for-statement
From: |
Nikolai |
Subject: |
input string use in a for-statement |
Date: |
Mon, 20 Aug 2012 15:48:19 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120815 Thunderbird/15.0 |
Hello,
I have this piece of code:
Var1 = xxx;
Var2 = xxx;
...
...
EingParameter = input ("Veränderbaren Parameter: ","s")
EingPStart = input ("Parameter Startwert eingeben ")
EingPEnd = input ("Parameter Endwert eingeben ")
EingPSteps = input ("Paramter Anzahl eingeben ")
for EingParameter = linspace(EingPStart,EingPEnd,EingPSteps)
What I want is, for the user to enter the name of a variable in the
first input prompt so that the for-expression uses that corresponding
variable. I know that this code won't work the way i want it to, but
ideally it would look like this.
Does anyone know what I would have to do, to get this working the way I
want to?
Thanks in advance for any help!
Nikolai
- input string use in a for-statement,
Nikolai <=