Skip to content

Instantly share code, notes, and snippets.

@dhermes
Created December 21, 2014 18:36
Show Gist options
  • Save dhermes/13c14cfcf5b07ac5fcf7 to your computer and use it in GitHub Desktop.
Save dhermes/13c14cfcf5b07ac5fcf7 to your computer and use it in GitHub Desktop.
Log Sombrero
ans = 5
'cd' is a built-in function from the file libinterp/corefcn/dirfns.cc
-- Command: cd DIR
-- Command: cd
-- Built-in Function: OLD_DIR = cd DIR
-- Command: chdir ...
Change the current working directory to DIR.
If DIR is omitted, the current directory is changed to the user's
home directory ("~").
For example,
cd ~/octave
changes the current working directory to '~/octave'. If the
directory does not exist, an error message is printed and the
working directory is not changed.
'chdir' is an alias for 'cd' and can be used in all of the same
calling formats.
Compatibility Note: When called with no arguments, MATLAB prints
the present working directory rather than changing to the user's
home directory.
See also: pwd, mkdir, rmdir, dir, ls.
Additional help for built-in functions and operators is
available in the online version of the manual. Use the command
'doc <topic>' to search the manual index.
Help and information about Octave is also available on the WWW
at http://www.octave.org and via the help@octave.org
mailing list.
load /tmp/tmpp1rrBf.mat "A__"
cd(A__)
subplot(121);
[x, y] = meshgrid(0:0.1:3);
r = sin(x - 0.5).^2 + cos(y - 0.5).^2;
surf(x, y, r);
subplot(122);
sombrero()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment