summaryrefslogtreecommitdiff
path: root/matlab_usage_source/index.t2t
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2013-09-06 14:40:11 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2013-09-06 14:40:11 -0400
commit42ae1263a6c038433a0a8e1aea303998fd868ef5 (patch)
tree26310c78e863add69eb9937794f046a9c8b965a2 /matlab_usage_source/index.t2t
parentbefe2e9254f2c85759dcdbc71faad083697209bf (diff)
downloadmanual_for_Experimental_Atomic_Physics-42ae1263a6c038433a0a8e1aea303998fd868ef5.tar.gz
manual_for_Experimental_Atomic_Physics-42ae1263a6c038433a0a8e1aea303998fd868ef5.zip
fitting and small fixes for matlab
Diffstat (limited to 'matlab_usage_source/index.t2t')
-rw-r--r--matlab_usage_source/index.t2t20
1 files changed, 15 insertions, 5 deletions
diff --git a/matlab_usage_source/index.t2t b/matlab_usage_source/index.t2t
index 4bc5b32..d04efcd 100644
--- a/matlab_usage_source/index.t2t
+++ b/matlab_usage_source/index.t2t
@@ -89,21 +89,28 @@ Now we make a simple plot without error bars to get the basic, text after
```
figure(1) % all plotting output will go to the particular window
-plot(I,V)
+plot(I,V, 'x')
```
-Easy, is not it?
+[simple_unlabeled_plot.png]
-[simple_labeled_plot.png]
+Easy, is not it? Here were mark our data point with crosses and used
+**'''x'''** parameter to specify this. You can do other markers as well.
But **every plot must be present with title, proper axes labels and units**.
Note **'** for the string specifiers
+```
+title('Dependence of voltage on current')
+xlabel('Current (A)')
+ylabel('Voltage (V)')
+```
+
+[simple_labeled_plot.png]
No our plot is nice and pretty.
-[simple_unlabeled_plot.png]
= Fixing the range of the axes =
@@ -129,7 +136,10 @@ Let's open a new window for the plot
Now we make plot with error bars assuming that they are the same for up and down parts
-``` errorbar(I,V,dV)
+```
+errorbar(I,V,dV)
+ylim([0,6])
+```
Yet again we need proper labeling