Advertisement
johntevans

Octave class problem

Oct 26th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.26 KB | None | 0 0
  1. % Contents of /fooBar/@foo/foo.m
  2. function x = foo()
  3.     x = class("foo");
  4. endfunction
  5.  
  6. % Example of the problem
  7. cd /fooBar/
  8. x = foo(); % this works!
  9. cd /baz/
  10. addpath("/fooBar")
  11. x = foo(); % this doesn't work, generates error "no such file, `/baz/@foo/foo.m'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement