"lee rose" <firstname.lastname@example.org> wrote in message <email@example.com>...
> A C++ code like this:
> char evfile;
> fread(&evfile, sizeof(evfile), 1, fp);
> fp is a file name;
> I want to transform it to MATLAB code, what should I do?
> Thanks for you help!
Modern ML has equivalents to fopen, fread and file pointers. File parsing used to be a real limitation (10+ years ago), leading to MEX solutions. These days it's trivial. Check the help for fopen, fclose and fread ... a bit like C.