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

dlmwrite behaves randomly #4

Open
nicholst opened this issue May 28, 2020 · 0 comments
Open

dlmwrite behaves randomly #4

nicholst opened this issue May 28, 2020 · 0 comments

Comments

@nicholst
Copy link
Contributor

On Matlab R2019a I find dlmwrite on https://github.com/andersonwinkler/HCP/blob/master/share/hcp2blocks.m#L338 behaves erratically... subject id's are written as -1 or with nonsense values. When I manually try to write out the values again myself, e.g. with

[EB,tabout] = hcp2blocks(restrfile,blocksfile,true,[],true);
dlmwrite('AnotherTry.csv',tabout,'precision','%d')

it sometimes works, sometimes not; at first I thought changing '%d' to '%i' would fix it, but didn't consistently.

No idea what is going on, but I do note that the current (R2020a) documentation says that dlmwrite is deprecated for writematrix. Just want to lodge this behaviour in case others observe it.

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

1 participant