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

tiny bug in circ_clust? #3

Open
kilir opened this issue Jul 6, 2016 · 1 comment
Open

tiny bug in circ_clust? #3

kilir opened this issue Jul 6, 2016 · 1 comment

Comments

@kilir
Copy link

kilir commented Jul 6, 2016

Hi,
being greeted with

>> circ_clust
In an assignment  A(:) = B, the number of elements in A and B must be the same.

Error in circ_clust (line 53)
            mu(j) = circ_mean(alpha(cid==j)');

doing the following changes in circ_clust.m works for me:

53c53
<             mu(j) = circ_mean(alpha(cid==j)');

---
>             mu(j) = circ_mean(alpha(cid==j)',[],2);
84,85c84,85
<         mu(j) = circ_mean(alpha(cid==j)');
<         r(j) = circ_r(alpha(cid==j)');

---
>         mu(j) = circ_mean(alpha(cid==j)',[],2);
>         r(j) = circ_r(alpha(cid==j)',[],[],2);

I thought I'll note this here in case someone finds it useful.
Thanks for the toolbox,
kilir

@philippberens
Copy link
Contributor

Thanks @kilir - could you create a pull request?

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

2 participants