Subscripts and graphs.
Posted: Fri Feb 05, 2010 9:08 am
Good morning all.
I have question about subscripts and the resulting ouput graphs.
The first question is to do with the number of subscripts on one variable. It's a little difficult to explain, but I'll try anyway! I have a variable (called example1) that uses two subscript ranges (aircraft,probabilities). Although the algorithm within example1 uses the full subscript ranges (of both aircraft and probabilities), the output (into a variable called example 2) requires the full range of "aircraft", but only the first element of "probabilities". i.e., example2[aircraft,p1]=example1[aircraft,p1]+1
All the subsequent variables also use the full range of "aircraft" but only the first element of "probabilities" (p1). So the question is, is there any way of reducing the number of subscripts in all of these subsequent variables to just one - i.e. to just "aircraft" - it seems a waste (especially when I come to use the"Table" tool) to use two subscript if only one element of "probabilities" is subesequently used.
The second question is wrt the graph function. I have a variable with three subscripts (one of these is "probabilities", but only 1 element is used, as described above). However, when I plot the graph, all the curves are the same colour - i.e., it doesn't distinguish between the different subscripts which makes the graph next to useless. I suspect this is because there are three subscripts, which is one reason why I asked if there was any way to reduce it to two.
Hope this is clear (probably not).
Thanks
Nik
I have question about subscripts and the resulting ouput graphs.
The first question is to do with the number of subscripts on one variable. It's a little difficult to explain, but I'll try anyway! I have a variable (called example1) that uses two subscript ranges (aircraft,probabilities). Although the algorithm within example1 uses the full subscript ranges (of both aircraft and probabilities), the output (into a variable called example 2) requires the full range of "aircraft", but only the first element of "probabilities". i.e., example2[aircraft,p1]=example1[aircraft,p1]+1
All the subsequent variables also use the full range of "aircraft" but only the first element of "probabilities" (p1). So the question is, is there any way of reducing the number of subscripts in all of these subsequent variables to just one - i.e. to just "aircraft" - it seems a waste (especially when I come to use the"Table" tool) to use two subscript if only one element of "probabilities" is subesequently used.
The second question is wrt the graph function. I have a variable with three subscripts (one of these is "probabilities", but only 1 element is used, as described above). However, when I plot the graph, all the curves are the same colour - i.e., it doesn't distinguish between the different subscripts which makes the graph next to useless. I suspect this is because there are three subscripts, which is one reason why I asked if there was any way to reduce it to two.
Hope this is clear (probably not).
Thanks
Nik