Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Run matlab in linux

Asked by C Zeng on 17 Jun 2012

Hello,

I want to run matlab .m file in linux, because it may be faster than in Windows.

However it shows an erros:

Undefined function or method 'sortrows' for input arguments of type 'double'.

As you may know, sortrows is a command in Matlab, and I think the problem is I did not set the path, right?

If so how to set and add path? Thanks.

0 Comments

C Zeng

Products

No products are associated with this question.

1 Answer

Answer by Andreas Goser on 18 Jun 2012
Accepted answer

This sounds like you have multiple SORTROWS on yout path. What does

which sortrows -all

return?

9 Comments

C Zeng on 18 Jun 2012

Oh, then I think I was right. I am using a different path under my path, not the matlab designate path. Do you know how shall I add my current folder in Linux? Sorry google gives me a lot of solutions but cannot work out here...

Walter Roberson on 18 Jun 2012

addpath(cd)

C Zeng on 19 Jun 2012

Thank you very much, it works here!

Andreas Goser

Contact us