ilnumerics

Excel DNA with ILNumerics

淺唱寂寞╮ 提交于 2021-01-28 21:29:20
问题 I have used ILNumerics via Excel DNA in Excel successfully for some time. Now I wrote a new function which uses the linsolve function from ILNumerics (which needs the mkl_custom.dll) and I cannot build this into an XLL. My custom function works in debug which is why I assume sth in the packaging goes wrong. Here is my dna file: <DnaLibrary Name="Nik's Lib" RuntimeVersion="v4.0"> <ExternalLibrary Path="MyLib2010.dll" Pack="true"/> <Reference Path="ILNumerics.dll" Pack="true"/> <Reference Path=

How to convert ILArray<object> into ILArray<double>?

血红的双手。 提交于 2020-01-05 11:31:51
问题 I m using ILNumerics to read and write from/to matfiles. I get some data from a database as object[,] because it contains numbers and headings (strings). The data structure of object[,] loaddata is a mixture of System.String and System.Double , first two columns and first row contains strings rest doubles. I want to write the doubles into the matfile. Dimensions are roughly loaddata[9000,500] . This is my very cumbersome detour via system arrays that doesnt even work: ILArray<object> loaddata

How to convert ILArray<object> into ILArray<double>?

不打扰是莪最后的温柔 提交于 2020-01-05 11:31:02
问题 I m using ILNumerics to read and write from/to matfiles. I get some data from a database as object[,] because it contains numbers and headings (strings). The data structure of object[,] loaddata is a mixture of System.String and System.Double , first two columns and first row contains strings rest doubles. I want to write the doubles into the matfile. Dimensions are roughly loaddata[9000,500] . This is my very cumbersome detour via system arrays that doesnt even work: ILArray<object> loaddata

How to plot 3d function using IlPanel c#

只谈情不闲聊 提交于 2019-12-24 07:45:18
问题 I'm using Ilnumerics and now I would like know if it's possible plot in IlPanel function with two variables like f(x,y). I have searched around internet but I have found nothing. Someone can help me? 回答1: Up from version 3.3.2. 'ILSurface' allows the definition of a function of two arguments to be plotted as a surface: private void ilPanel1_Load(object sender, EventArgs e) { ilPanel1.Scene.Add( new ILPlotCube(twoDMode: false) { new ILSurface((x,y) => { return (float)Math.Sin(0.1f * x * x + 0

ILNumerics Drawing a surface having (x,y,z) coordinates

有些话、适合烂在心里 提交于 2019-12-24 06:58:08
问题 I am really new in programming with C#. I have an Array of points in the following form //An Array containing point coordinates: double[,] graphData=new double[100,3]; //Each element of graph data contain coordinate of a point: graphData[1;:]=(x1,y1,z1); I wanna draw a surface using ILNumerics. I couldn't find any example for this case. Would you please help me? 回答1: The link posted in the accepted answer points to an outdated part of the ILNumerics documentation which is obsolete now. Up

Ilnumerics Ilpanel not activating when compiled in a winform into a dll when loaded into matlab

爷,独闯天下 提交于 2019-12-23 17:01:12
问题 I want to compile a winform written in c# in visual-studio 2012 to a dll which I then load into matlab 2013a. Using the matlab .net interface I want to then interact with the winform, listening to its events and passing it data via a set of predefined public methods. I am working on windows 7 Ultimate SP2. This works surprisingly well, I am able to interact with all native winform tools, buttons, trees, panels and even charts. However i want to use ILnumerics and particularly the ILpanel used

How to efficiently plot a large surface (e.g., 1000x1000) in ILNumerics?

与世无争的帅哥 提交于 2019-12-22 09:21:43
问题 Here's the code I use: public partial class Form1 : Form { private ILPlotCube plotcube_ = null; private ILSurface surface_ = null; public Form1() { InitializeComponent(); ilPanel1.Driver = RendererTypes.OpenGL; } private void ilPanel1_Load(object sender, EventArgs e) { var scene = new ILScene(); plotcube_ = scene.Add(new ILPlotCube(twoDMode: false)); plotcube_.MouseDoubleClick += PlotCube_MouseDoubleClick; ilPanel1.Scene = scene; } private void PlotCube_MouseDoubleClick(object sender,

How to add a Colorbar for Custom Objects in ILNumerics?

£可爱£侵袭症+ 提交于 2019-12-11 09:41:28
问题 I want to use a colorbar with custom objects. The objects are colored according to a specific colormap. I want to show this colormap in a colorbar at runtime. I already tried adding it to scene by: ILColorbar cb = new ILColorbar(); scene.Add(cb); or to the cube: plotCube.Add(cb); or even plotCube.Children.Add(cb); but it still doesn't work. What is the correct way to display a colorbar for custom objects? Here is my code: private void OKInputBodyListButton_Click(object sender, EventArgs e) {

How to use ILMath.invert function?

我只是一个虾纸丫 提交于 2019-12-11 08:24:45
问题 In ILNumerics, I want to inverting a matrix A. The result is matrix B. Here is my code: ILArray<double> data = ILSpecialData.sinc(50, 50); ILArray<double> data2 = ILMath.zeros(50, 50); ILMath.invert(data, data2); The method is: ILMath.invert Method (ILInArray<Double>, ILOutArray<Double>) public static void invert( ILInArray<double> A, ILOutArray<double> outArray ) but I get the zero matrix in matrix B (data2) instead of an inversion of matrix A (data). What should I do to fix this? If it

Same color bar for multiple surfaces in ILNumerics PlotCube

…衆ロ難τιáo~ 提交于 2019-12-11 05:08:37
问题 I plot multiple surfaces in one plot cube. But I cannot make them to have the same color bar. I have defined an ILColorbar and added them to the surfaces but it plots two color bars with different numbers. Is it possible for the both surfaces to have the same color bar? Moreover, how can I add text to the color bar (title, labels)? Thank you very much. Here is an example: private void ilPanel1_Load(object sender, EventArgs e) { var scene = new ILScene(); // add a new plot cube var pc = scene