« first day (1947 days earlier)      last day (1265 days later) » 

12:40 PM
Can I have a second opinion on this question?
I still think I should be able to dupe hammer it to any odd "How do I read a mat file in C++" question, but am not familiar enough whit what is meant by "MATLAB API" to just take either of the two questions I suggested in the comments
 
 
4 hours later…
4:59 PM
@Adriaan The "Reading .mat file in C++" question has an answer that doesn't require MATLAB libraries, but the question is not asking for that, it just asks how to read variables from a MAT-file after opening it with matOpen (which is a function in the MATLAB C API). So I've duped both of those questions you linked to another question that has good answers: stackoverflow.com/q/26234673/7328782
This new question I think is asking for library recommendations. I mean, "how do I read a MAT-file" can only be answered by either giving the MAT-file specs, or pointing to a library that does it.
 
 
2 hours later…
6:43 PM
@flawr Yeah, I had my armour in the laundry
 
This is the way.
 
@Adriaan Why they decided that I don't know, it does seem like a weird decision. But it is documented
Nov 21 '16 at 0:06, by Luis Mendo
> If you specify nonscalar arrays, MATLAB interprets j:i:k as j(1):i(1):k(1).
Nov 21 '16 at 0:09, by Andras Deak
colon, somehow we always end up there
@AndrasDeak I think you refer to this (non-integer values are accepted in colon indices, and they behave a little weird)
 
@LuisMendo yeah, I found that one. But what I remembered was the chat discussion you linked :)
I even looked at one of the colon discussions for MATL but couldn't find that one
 
7:04 PM
Yeah, I was sure you would remember that discussion :-)
Jan 25 '16 at 0:34, by Andras Deak
these free software dudes crack me up:D
 
Yeah, that's the one I found :'D
 
 
3 hours later…
10:31 PM
@LuisMendo eskerrikasko! I amended my answer to include the link
@CrisLuengo thanks, I didn't know the MATLAB API was actually different from the MATLAB engine, which is why I hadn't hammered it yet. So we still don't do anything with this question? It's not a dupe of the target you mention (due to the API), but is at the very least low-effort (might be no MCVE?) since they didn't even bother to look for, let alone implement, the MATLAB HDF5 suite
They seem to be willing and able to use MATLAB to transform the mat to HDF5 though, as their initial question suggested.
It just got confusing after my first comment, upon which they added the C++ requirement. If there's no way of reading a mat file into C++ without the API, and they do have the option of using MATLAB, converting their mat file to HDF5 isn't even a bad idea
 
10:57 PM
@Adriaan But aren't MAT-files HDF-5 files already? Or at least the newer versions of MAT.
 
@Adriaan Glad I could help. Nice answer
 
Ah! Version 7.3 MAT-files are HDF-5.
https://www.mathworks.com/help/matlab/ref/save.html#btox10b-1-version
I've left an answer.
 

« first day (1947 days earlier)      last day (1265 days later) »