jkriege2 / tinymat Goto Github PK
View Code? Open in Web Editor NEWC/C++ library to handle writing simple Matlab(r) MAT file
Home Page: http://jkriege2.github.io/TinyMAT/
License: GNU Lesser General Public License v2.1
C/C++ library to handle writing simple Matlab(r) MAT file
Home Page: http://jkriege2.github.io/TinyMAT/
License: GNU Lesser General Public License v2.1
I'm trying to write a vector of strings to a MATLAB structure using the following pseudo code:
TinyMATWriter_startStruct(...)
TinyMATWriter_writeStringVector(...)
TinyMATWriter_endStruct(...);
The code compiles and runs fine but when I try to open the resulting .mat file in MATLAB I get the following error: "Cannot read file test.mat"
If I move TinyMATWriter_writeStringVector(...) outside of the structure everything works fine. Any idea what I might be doing wrong?
Hi,
first of, thanks for sharing your lib, works well so far with one exception.
Do you have an idea how to work around the 2GB file limit or does it work on your end?
I tried to use _fseeki64 and _ftelli64 without success.
I am building on Windows 10 64bit using mingw-64.
Best regards
CMake Error at MyProject/3rdparty/TinyMAT/src/CMakeLists.txt:161 (configure_file):
configure_file Problem configuring file.
The directory of the "readme.txt.in" written in line 161 of the CMakeLists.txt is ${CMAKE_SOURCE_DIR} which is my project's top-level directory. I think the CMAKE_SOURCE_DIR should probably be replaced with PROJECT_SOURCE_DIR.
Hello everyone.
I would like to create a struct with size 1xN.
For example:
field1 field2
A 1
B 2
C 3
D 4
... ....
Which TinyMAt functions (or combination of them) can I use ?
Line 471 in 72cba58
template<typename T>
inline void TinyMATWriter_writeMultiChannelMatrix2D_rowmajor(TinyMATWriterFile* mat, const char* name, const T* data_real, int32_t cols, int32_t rows, uint32_t c) {
int32_t dims[2]={rows, cols}; //?? should be : int32_t dims[2]={cols, rows}; ?
TinyMATWriter_writeMultiChannelMatrix2D_rowmajor(mat, name, data_real, dims, 2, c);
//?? should be : TinyMATWriter_writeMultiChannelMatrixND_rowmajor(mat, name, data_real, dims, 2, c); ?
}
It's an awesome library, I haven't delved into it yet, I'm going to use this lib to write RGB24 data, I think there is something wrong with this function, but I'm not sure.
When adding the source code to my project I've realized that tinymatwriter_export.h is missing.
Could you add it?
Hi...
I want to build your library, but it gets me this error:
Scanning dependencies of target TinyMAT
[ 25%] Building CXX object src/CMakeFiles/TinyMAT.dir/tinymatwriter.cpp.obj
[ 50%] Linking CXX static library libTinyMAT_Release.a
[ 50%] Built target TinyMAT
Scanning dependencies of target libTinyMAT_basic_test
mingw32-make.exe[3]: ***. Stop.
mingw32-make.exe[3]:
[ 75%] Building CXX object examples/basic_test/CMakeFiles/libTinyMAT_basic_test.dir/test_tinymat.cpp.obj
mingw32-make.exe[2]: *** [examples/basic_test/CMakeFiles/libTinyMAT_basic_test.dir/all] Error 2
mingw32-make.exe[1]: *** [examples/basic_test/CMakeFiles/libTinyMAT_basic_test.dir/rule] Error 2
mingw32-make.exe: *** [libTinyMAT_basic_test] Error 2
CMakeFiles\Makefile2:249: recipe for target 'examples/basic_test/CMakeFiles/libTinyMAT_basic_test.dir/all' failed
CMakeFiles\Makefile2:256: recipe for target 'examples/basic_test/CMakeFiles/libTinyMAT_basic_test.dir/rule' failed
Makefile:209: recipe for target 'libTinyMAT_basic_test' failed
I using MinGW and add qt5 & opencv by -DQt5_DIR
& -DOpenCV_DIR
. It builds on Linux like a charm but I can't build it on Windows!
Hi
Thank you for sharing this super useful tool with community.
Is there any plan for supporting complex data?
Thank you.
Ali
tinymatwriter.cpp is missing #include <stdexcept>
but uses several throw std::runtime_error
statements.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.