-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.octaverc
60 lines (45 loc) · 1.14 KB
/
.octaverc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#get source code from : https://ftp.gnu.org/gnu/octave/ by wget
#compile dependence:gfortran BLAS:libblas-dev
#LAPACK:liblapack-dev PCRE:libpcre3-dev readline:libreadline-dev
#./configure --enable-jit
#package load
pkg load symbolic
# pkg load io
# pkg load statistics
PS1("GNU Octave:\\#>> ")
#terminal display
#:ascii unicode flat
sympref display flat
#terminal display
#terminal_size
#:1 0
#split_long_rows(0)
#path
#what dir :find *.m files
#isdir('dir') :judge dir
#which function : find function file
# cd /home/me/octave/tmp/
if exist('~/script/')==7
#help exist
addpath ~/script/
endif
#digits display
#format short g
#format long g
#more on
# how to run C++ in octave
# sudo apt install liboctave-dev
# // compile :
# // mkoctfile helloworld.cpp
# // run :
# // octave-cli : helloworld(1,2,3)
# // octave-cli --eval 'helloworld(1,2,3)'
# #include <octave/oct.h>
# DEFUN_DLD (helloworld, args, nargout,
# "Hello World Help String")
# {
# octave_stdout << "Hello World has "
# << args.length () << " input arguments and "
# << nargout << " output arguments.\n";
# return octave_value_list ();
# }