Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TinyMATWriter_writeStringVector inside of TinyMATWriter_startStruct doesn't work #9

Open
HalifaxNick opened this issue Feb 14, 2023 · 1 comment

Comments

@HalifaxNick
Copy link

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?

@OliverF2022
Copy link

I encountered the same issue. When calling TinyMATWriter_writeStringVector or TinyMATWriter_writeStringList in the same way, it results in an unknown empty field being added to the corresponding struct in the generated .mat file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants