Function works on Windows but not Linux

  • Thread starter Old Guy
  • Start date
  • #1
103
1
I downloaded largestcomponent.m today and it runs fine on my PC (Win 7 Enterprise SP 1) but when I try it on my Linux machine (Ubuntu 10.04 LTS) I get this message:

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

Even if I put the function file in the same directory as the input it doesn't work on the Linux machine. Any suggestions?
 

Answers and Replies

  • #2
Pythagorean
Gold Member
4,210
270
make sure your 'set path' included the directory it's in.

the only other thing I can think of is you are accidentally handing a double to it when it should be something else.
 
  • #3
1,065
53
get creative, don't be afraid to try stuff...nothing is going to happen, it is just a computer program....so, put your detective hat and try stuff.

to start, I would put a trivial function with no arguments...just to see if you are actually reaching such file, like mentioned before (path issues?)
 
  • #4
103
1
Thanks to you both. Ultimately it was a path issue, although I thought I had checked that thoroughly before I posted.
 

Related Threads on Function works on Windows but not Linux

  • Last Post
Replies
3
Views
5K
  • Last Post
Replies
0
Views
1K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
9
Views
27K
Replies
3
Views
4K
Top