On 8/7/2009 6:43:34 AM, NSizzle wrote:
>Hi Richard.
Sorry I can't
>upload the variable
>definitions because it's
>technically confidential.
We don't need the real data. It's hard to figure out what you are trying to do when nothing actually works though. So either you put variable definitions at the top, or we have to.
So please put in some variables with fake data.
>And
>Stuart, I'm afraid I cannot
>upload in MathCad 11 format as
>my company does not have
>access to it.
Go to "Save As" and change the format to Mathcad 11.
>Sorry.
However, the code
>isn't really important.
>basically, I have a nested
>array, ysub(n). Within each
>'cell' of that array there is
>a vector vy which can be shown
>on screen if I were to type
>ysub(value of n)=
I can, by
>hand, go through all these
>values and plot ysub(1)
>against xsub(1), ysub(2)
>against xsub(2),...,
>ysub(r_up=64) against
>xsub(r_up=64) but that would
>waste too much time.
My
>question is: Is it possible,
>or is there a mechanical
>method, on MathCad that would
>do this in one process i.e
>another program loop or some
>other method?
Yes. Change the nested vectors into columns of a matrix (so you have one x matrix and one y matrix)
Also,
>as a side, you can find the
>last index of an array by
>typing last(v)=, but is there
>a way of finding the first (I
>know it sounds odd as it would
>just be what the origin is set
>to but for this programmed
>loop of n vectors I can't just
>put 'zero'
The first element of the array is always the value of built in variable ORIGIN. So if ORIGIN=0 and you type x[12:25, then the 13th element of x will be 25, and the elements 0 through 11 will all be set to 0.
Richard