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

FKinSpace and FKinBody throw "warning: colon arguments should be scalars" in Octave #37

Open
gelanchez opened this issue Apr 5, 2021 · 1 comment

Comments

@gelanchez
Copy link

gelanchez commented Apr 5, 2021

F​unctions FKinSpace and FKinBody give the following message when executed in Octave:
warning: colon arguments should be scalars.
This is due to the fact that function size returns a vector containing the number of rows and number of columns. Not sure under MATLAB. I believe the following should be used:
for i = 1: size(thetalist)(1)
if thetalist is a column vector, i​nstead of:
for i = 1: size(thetalist)

@HuanWeng
Copy link
Contributor

HuanWeng commented Jun 1, 2021

Yes you are right. I'm not familiar with Octave but I think size(thetalist, 1) is better in MATLAB. We will change this in our next version.

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