summaryrefslogtreecommitdiff
path: root/getting-started-strings/quickref.tex
diff options
context:
space:
mode:
Diffstat (limited to 'getting-started-strings/quickref.tex')
-rw-r--r--getting-started-strings/quickref.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/getting-started-strings/quickref.tex b/getting-started-strings/quickref.tex
index b26d168..3bd7055 100644
--- a/getting-started-strings/quickref.tex
+++ b/getting-started-strings/quickref.tex
@@ -1,8 +1,8 @@
-Creating a linear array:\\
-{\ex \lstinline| x = linspace(0, 2*pi, 50)|}
+Creating a string:\\
+{\ex \lstinline| s = ``Hello World''|} -- Single quotes and triple
+quotes can also be used.
-Plotting two variables:\\
-{\ex \lstinline| plot(x, sin(x))|}
+Accessing individual elements:\\
+{\ex \lstinline| s[5]|} -- Elements can be accessed with their index
-Plotting two lists of equal length x, y:\\
-{\ex \lstinline| plot(x, y)|}
+Strings are immutable.