sccn / amica

Code for AMICA: Adaptive Mixture ICA with shared components
BSD 2-Clause "Simplified" License
24 stars 15 forks source link

Replacing floatwrite with fwrite #16

Closed yahiaali closed 4 years ago

yahiaali commented 5 years ago

The following error results from calling runamica15(data) in MATLAB R2019A when data is a channels x frames matrix:

Undefined function or variable 'floatwrite'.

Error in runamica15 (line 754)
    floatwrite(dat, fullfile(pwd, filename));

This was resolved by replacing floatwrite with the following code in runamica15.m and runamica15_nsg.m:

fid = fopen(filename, 'w');
fwrite(fid, dat, 'float');
fclose(fid)
arnodelorme commented 5 years ago

Hi Jason,

Should we issue a new release of the plugin?

Arno

On Oct 9, 2019, at 4:32 PM, Yahia Ali notifications@github.com wrote:

The following error results from calling runamica15(data) in MATLAB R2019A when data is a channels x frames matrix:

Undefined function or variable 'floatwrite'.

Error in runamica15 (line 754) floatwrite(dat, fullfile(pwd, filename));

This was resolved by replacing floatwrite with the following code in runamica15.m and runamica15_nsg.m:

fid = fopen(filename, 'w'); fwrite(fid, dat, 'float'); fclose(fid)

You can view, comment on, or merge this pull request online at:

https://github.com/japalmer29/amica/pull/16

Commit Summary

• Replace floatwrite with fwrite File Changes

• M runamica15.m (4) • M runamica15_nsg.m (4) Patch Links:

https://github.com/japalmer29/amica/pull/16.patchhttps://github.com/japalmer29/amica/pull/16.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.