From: Aris David on 16 Jul 2010 18:00 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]); }
|
Pages: 1 Prev: question on qtr2ann Next: Need stp.dll file for running Stepper motor via parallel port |