mocap icon indicating copy to clipboard operation
mocap copied to clipboard

Error using fgets when running the command: skel = acclaimReadSkel('examples/86.asf');

Open Ammola opened this issue 6 years ago • 3 comments

When running this command: skel = acclaimReadSkel('examples/86.asf');

I get this error: Error using fgets Invalid file identifier. Use fopen to generate a valid file identifier.

Error in fgetl (line 32) [tline,lt] = fgets(fid);

Error in getline (line 33) lineStr = fgetl(FID);

Error in acclaimReadSkel (line 22) lin = getline(fid);

Ammola avatar May 28 '18 11:05 Ammola

for every lin = getline(fid); in the source file of acclaimReadSkel.m, you should change it tolin = fgetl(fid)

hanspond avatar Jul 23 '18 07:07 hanspond

Or make sure ndlutils is in the path ahead of the default getline (bad coding, I know, apologies!)

I’ On Mon, 23 Jul 2018 at 08:50, hanspond [email protected] wrote:

for every lin = getline(fid); in the source file of acclaimReadSkel.m, you should change it tolin = fgetl(fid)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lawrennd/mocap/issues/7#issuecomment-406970844, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIKWn9EyiKXoWVkvrZzCNlzN3TncJmOks5uJYBMgaJpZM4UQCZM .

lawrennd avatar Jul 23 '18 15:07 lawrennd

Or make sure ndlutils is in the path ahead of the default getline (bad coding, I know, apologies!) I’ On Mon, 23 Jul 2018 at 08:50, hanspond @.***> wrote: for every lin = getline(fid); in the source file of acclaimReadSkel.m, you should change it tolin = fgetl(fid) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#7 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIKWn9EyiKXoWVkvrZzCNlzN3TncJmOks5uJYBMgaJpZM4UQCZM .

Can you please elaborate?

sxaxmz avatar Mar 19 '21 13:03 sxaxmz