diff options
author | Amit Sethi | 2010-10-13 17:10:38 +0530 |
---|---|---|
committer | Amit Sethi | 2010-10-13 17:10:38 +0530 |
commit | f3daa8d124e1a3b9378c011a19cabc631cca588e (patch) | |
tree | 93771b6ec923cb62bc7a75243a23c0048855602b /getting-started-with-lists/quickref.tex | |
parent | a7f0f75b1ae8eb5e1cb0b205b01cf1333386f104 (diff) | |
download | st-scripts-f3daa8d124e1a3b9378c011a19cabc631cca588e.tar.gz st-scripts-f3daa8d124e1a3b9378c011a19cabc631cca588e.tar.bz2 st-scripts-f3daa8d124e1a3b9378c011a19cabc631cca588e.zip |
Adding new format st-scripts with questions etc for basic-data-type and
getting started with lists
Diffstat (limited to 'getting-started-with-lists/quickref.tex')
-rw-r--r-- | getting-started-with-lists/quickref.tex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/getting-started-with-lists/quickref.tex b/getting-started-with-lists/quickref.tex new file mode 100644 index 0000000..b26d168 --- /dev/null +++ b/getting-started-with-lists/quickref.tex @@ -0,0 +1,8 @@ +Creating a linear array:\\ +{\ex \lstinline| x = linspace(0, 2*pi, 50)|} + +Plotting two variables:\\ +{\ex \lstinline| plot(x, sin(x))|} + +Plotting two lists of equal length x, y:\\ +{\ex \lstinline| plot(x, y)|} |