From: Aris David on
I have the following lines of codes in my program

yahooTickers.YahooTickers yticker = null; //new yahooTickers.YahooTickers();
try
{
yticker = new yahooTickers.YahooTickers();
MWArray tickers = yticker.yahooTickers(textBox1.Text);


yahooScanner.YahooScanner yscanner = new yahooScanner.YahooScanner();
MWArray spdata = yscanner.GetTickersData(textBoxDateFrom.Text, textBoxDateTo.Text, 102, tickers, textBoxPeriodicity.Text, 0.05, textBox1.Text);
}
finally
{
Dispose();
}

This calls the yahooTickers function to download tickers using a given index and returns the tickers as cell arrays.

How can I access the elements and store them in a C# Array.

The code below from Mathworks DAO for deployment section does not seem to do the job

MWCellArray result = (MWCellArray)deployment.getCellArray();

List<Object> outputList = new List<Object>();
Object[] outputArray = new Object[result.NumberOfElements];
for (int i = 0; i < result.NumberOfElements; i++)
{
outputArray[i] = result[i + 1];
outputList.Add(result[i + 1]);
}