更新时间:2022-10-15 19:17:31
从这里开始: C#矩阵库 [ ^ ]在这里: http:/ /msdn.microsoft.com/en-us/library/dd264733.aspx [ ^ ]
...不,实际上以 google搜索开头!
您可以找到关于Excel
和C#
互操作性的材料,例如我们在CodeProject上有以下文章:用C#打开和导航Excel [ ^ ]。
从Excel
,乘法很简单(只有两次嵌套迭代)。
Hi all,
I want to multiply two matrices each matrix 3 rows and 3 columns, where one matrix is in Excel file and other matrix I have in C# Program.
How I will access to excel matrix and then multiply in C#?
I need or some guidance to develop C# code for the above situation. Help Please
Thanks All
Ilyas
Start here: C# Matrix Library[^] and here: http://msdn.microsoft.com/en-us/library/dd264733.aspx[^]
... no, actually start with googling!
You may find a lof of material aboutExcel
andC#
interoperability, for instance we have the following article, here at CodeProject: Opening and Navigating Excel with C#[^].
Once you have imported the matrix fromExcel
, the multiplication is trivial (just two nested iterations).