MelbourneFL
Bioengineer
- Sep 17, 2007
- 2
Hello guys,
I'm a rather experienced user of Mathcad but I'm stuck with the string functionality of Mathcad. What I can do is creating a string that is a variable name via loop, e.g. data_point_0 via:
string:=concat("data_point_","i").
The result is then (if i=0):
string=data_point_0
The problem for me is that in the next step I want to use this string to point to the variable "data_point_0" (that is created somewhere earlier in my program)...something like this:
result:=$string
I want to assign the value of "data_point_0" to "result". But I don't know how to do this. In other program languages you usually use the "$" sign to indicate that what follows is a string but how do you do it in Mathcad?
Thanks for any help,
Alexander
I'm a rather experienced user of Mathcad but I'm stuck with the string functionality of Mathcad. What I can do is creating a string that is a variable name via loop, e.g. data_point_0 via:
string:=concat("data_point_","i").
The result is then (if i=0):
string=data_point_0
The problem for me is that in the next step I want to use this string to point to the variable "data_point_0" (that is created somewhere earlier in my program)...something like this:
result:=$string
I want to assign the value of "data_point_0" to "result". But I don't know how to do this. In other program languages you usually use the "$" sign to indicate that what follows is a string but how do you do it in Mathcad?
Thanks for any help,
Alexander