fo2sh
Civil/Environmental
- Aug 18, 2008
- 5
Hi Matlab Folks
Let' s say: I have LS1=[ 0 0.2 0.4 0.6]
I want to have my variable names that I introduce in for loops looks like:
Variable_LS1_P0=Mat % Mat are matrices calculated
Variable_LS1_P0.2=Mat
the command
eval(['Variable_LS1_P', num2str(LS1),'=Mat'])
does not work with Decimal LS1 values; there is any trick that I can make to make the eval function accepts decimal values.
Thanks
Sherif
Let' s say: I have LS1=[ 0 0.2 0.4 0.6]
I want to have my variable names that I introduce in for loops looks like:
Variable_LS1_P0=Mat % Mat are matrices calculated
Variable_LS1_P0.2=Mat
the command
eval(['Variable_LS1_P', num2str(LS1),'=Mat'])
does not work with Decimal LS1 values; there is any trick that I can make to make the eval function accepts decimal values.
Thanks
Sherif