Your data is fundamentally in the wrong storage format to be amenable to
that Add() method.
You can do two things here. One, do like the other person said and change
from a 2-d array, double[,], to an array-of-arrays double[][]. The other is
to create temporary arrays containing the columns just for the purpose of
the Add() call:
double XValues[] = new double[1024];
double YValues [] = new double[1024];
for(int i =0; i < 1024, i++) {
XValues[i] = myArray[0,i];
YValues[i] = myArray[1,i];
}
Add(XValues, YValues);
If this is an isolated situation and it really is better for the rest of
your program to have the data in a true 2-d array, then I'd go with this
solution. But if you need to access the columns like that in many places,
then you're probably better off changing your data structure as the other
person described.
"Claire" <cc@hotmai1.com> wrote in message
news:39*************@individual.net...
I have a multidimensional array defined as
private double[,] myArray = new double[ 2, 1024];
The first column of the array contains X values, the other contains Y
values
I have a charting function defined as
Add(Array XValues, Array YValues)
How do I call the Add function, passing my array columns please.
thanks