日期:2014-05-17 浏览次数:21266 次
using System;
using MathWorks.MATLAB.NET.Utility;
using MathWorks.MATLAB.NET.Arrays;
using PlotComp;
....
{
const int numPoints= 10; // Number of points to plot
// Allocate native array for plot values
double [,] plotValues= new double[2, numPoints];
// Plot 5x vs x^2
for (int x= 1; x <= numPoints; x++)
{
plotValues[0, x-1]= x*5;
plotValues[1, x-1]= x*x;
}
// Create a new plotter object
Plotter plotter= new Plotter();
// Plot the two sets of values - Note the ability to cast&nbs