摘要: using System.Data.OleDb;string filename;//加载Excel public static DataSet LoadDataFromExcel(string filePath) { try { string strConn; strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath + ";Extended Properties='Excel 8.0;HDR=False;IMEX=1'"; OleDbConnection O 阅读全文
posted @ 2011-11-22 18:17 7_小琦 阅读(133) 评论(0) 推荐(0)
摘要: //矩阵转置 public double[,] Transpose(double[,] a, int row, int col) { int i, j; double[,] b = new double[col, row]; for (i = 0; i < col; i++) { for (j = 0; j < row; j++) { b[i, j] = a[j, i]; } } return b; }//矩阵的乘法运算 public double[,] Matrix1(double[,] a, double[,] b,int arow,int ab,int bcol) { int 阅读全文
posted @ 2011-11-22 18:08 7_小琦 阅读(120) 评论(0) 推荐(0)