MatFileHandler | MATLAB .mat-file reading/writing API for .NET Standard
kandi X-RAY | MatFileHandler Summary
kandi X-RAY | MatFileHandler Summary
MatFileHandler is a .NET library for reading and writing MATLAB .mat files (of so-called "Level 5"). MatFileHandler supports numerical arrays, logical arrays, sparse arrays, char arrays, cell arrays and structure arrays. Moreover, MatFileHandler is able to read the contents of MATLAB objects, and is currently probably the only third-party library that can do that. Since the format for storing MATLAB objects seems to be obscure and undocumented, support for them is preliminary and probably contains bugs. You can find (partial) technical description of MATLAB object data format here. This document briefly describes how to perform simple operations with .mat files using MatFileHandler. If you have questions and/or ideas, you can [file a new issue] (or contact me directly at mahalex@gmail.com.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MatFileHandler
MatFileHandler Key Features
MatFileHandler Examples and Code Snippets
using MatFileHandler;
IMatFile matFile;
using (var fileStream = new System.IO.FileStream("example.mat", System.IO.FileMode.Open)) {
var reader = new MatFileReader(fileStream);
matFile = reader.Read();
}
IVariable variable = matFile["array"];
using (var fileStream = new System.IO.FileStream("output.mat", System.IO.FileMode.Create)) {
var writer = new MatFileWriter(fileStream);
writer.Write(matFile);
}
var writer = new MatFileWriter(fileStream, new MatFileWriterOptions { UseCompre
classdef Point
properties
x
y
end
end
public interface IMatObject : IArrayOf>
{
string ClassName { get; }
IEnumerable FieldNames { get; }
IArray this[string field, params int[] list] { get; set; }
}
var matObj
Community Discussions
Trending Discussions on MatFileHandler
QUESTION
I need to read a mat file in a Visual Studio project. I'm using Visual Studio 2015 32bit on Windows 10 64 bit.
I have installed a MatFileHandler library using NuGet Package Manager and got a MatFileHandler.dll file but I don't know how to use it. In program I've written use MatFileHandler
but linker does not see this. Please don't judge me, I'm very new to Visual Studio.
ANSWER
Answered 2017-Dec-20 at 12:34MatFileHandler library is not a native C++ dll. It's .NET assembly and it depends on .NETStandard 2.0
.
You should create .NET application and add this NuGet package to it. Here is the step-by-step instruction on how to create .NET Core application.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MatFileHandler
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page