conditionals/quickref.tex
author anand
Sun, 07 Nov 2010 01:18:26 +0530
changeset 390 69f285b3a5ed
parent 315 7944a4504769
child 439 b437ff7def95
permissions -rw-r--r--
checklist OK for `accessing pieces arrays`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
315
7944a4504769 Conditionals LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     1
Creating a linear array:\\
7944a4504769 Conditionals LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     2
{\ex \lstinline|    x = linspace(0, 2*pi, 50)|}
7944a4504769 Conditionals LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     3
7944a4504769 Conditionals LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     4
Plotting two variables:\\
7944a4504769 Conditionals LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     5
{\ex \lstinline|    plot(x, sin(x))|}
7944a4504769 Conditionals LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     6
7944a4504769 Conditionals LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     7
Plotting two lists of equal length x, y:\\
7944a4504769 Conditionals LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     8
{\ex \lstinline|    plot(x, y)|}