Rank: 31088 based on 0 downloads (last 30 days) and 0 file submitted
photo

Tobias Otto-Adamczak

E-mail
Company/University
Fraunhofer IWU Chemnitz
Lat/Long
50.81301116943359, 12.92603778839111

Personal Profile:

Software Engineering for Industrial Applications

Professional Interests:
motion control

 

Watch this Author's files

 

Comments and Ratings by Tobias View all
Updated File Comments Rating
30 Apr 2013 CSMatIO: MAT-file I/O API for .NET 2.0 Package contains Matlab's MAT-File I/O API for .NET 2.0. Supports Matlab 5 MAT-file format. Author: David Zier

Hi Jen, thank you for sharing this. AFAIK David is currently not working on the code. Neither do I. But if you could make some improvements I would be glad to test your patches and update the code on sourceforge.

HTH, Tobias

29 Apr 2013 CSMatIO: MAT-file I/O API for .NET 2.0 Package contains Matlab's MAT-File I/O API for .NET 2.0. Supports Matlab 5 MAT-file format. Author: David Zier

Hi Jen, this might be due to one of the few shortcomings of Davids original code. Have a look at the latest version at sourceforge and tell me if it behaves the same way: https://sourceforge.net/projects/csmatio/files/

HTH, Tobias

15 Apr 2013 CSMatIO: MAT-file I/O API for .NET 2.0 Package contains Matlab's MAT-File I/O API for .NET 2.0. Supports Matlab 5 MAT-file format. Author: David Zier

Hello kushal, CSMatIO is about .NET, not Java. For Java consider JMatIO instead.

HTH, Tobias

23 Jan 2013 CSMatIO: MAT-file I/O API for .NET 2.0 Package contains Matlab's MAT-File I/O API for .NET 2.0. Supports Matlab 5 MAT-file format. Author: David Zier

Hi Laurent, you can easily create a 3D double array as follows:

// init 3D double array (2x3x4 elements)
int[] dims = new int[] { 2, 3, 4 };
MLDouble array3Dim = new MLDouble("cube", dims);

HTH, Tobias

30 Nov 2012 CSMatIO: MAT-file I/O API for .NET 2.0 Package contains Matlab's MAT-File I/O API for .NET 2.0. Supports Matlab 5 MAT-file format. Author: David Zier

Le me give you a basic example how to create nested matlab vars with this lib.

// suppose we have following C# struct

public struct Score
{
public string Name;
public double Value;
}

// initialize an struct object of that type

Score highscore;
highscore.Name = "David";
highscore.Value = 47.3;

// create a corresponding MATLAB structure

MLStructure structure = new MLStructure("highscore", new int[] { 1, 1 });

// create a MATLAB char and double variable and add it to the structure

MLChar scoreName = new MLChar("", highscore.Name);
MLDouble scoreValue = new MLDouble("", new double[] { highscore.Value }, 1);
structure["Name", 0] = scoreName;
structure["Value", 0] = scoreValue;

// save the structure as mat file using MatFileWriter

List<MLArray> mlList = new List<MLArray>();
mlList.Add(structure);
MatFileWriter mfw = new MatFileWriter("data.mat", mlList, false);

HTH, Tobias

Contact us