2011-PHYS-339 Introduction to Programming
From McGill University Physics Department Technical Services Wiki
[edit]
Synopsis
- Equipment available: Tuesday January 5th through Thursday January 14th 2010.
- Report due: Monday January 18th 2010.
[edit]
Introduction
This is a two week exercise designed to get you up to speed with using the computer.
Do not overlook this step. Several of the programs you will need to write for the exercise can be used in later experiments. Write code that you can understand next month when you will not have time to reinvent the wheel.
This page should have a great deal more content!
[edit]
Tutorial
The following links will take you to a tutorial section.
- Help - This is a brief introduction to this help system
- Login - How a login should work
- X Desktop - How to interact with the desktop manager
- Emacs - How to use my favorite editor
[edit]
Resources for the exercise
Right click on these links to save them to disk.
- intro.pdf (http://www.ugrad.physics.mcgill.ca/resources/339/intro/intro.pdf) - PDF version of document handed out in class.
- exercise.pdf (http://www.ugrad.physics.mcgill.ca/resources/339/intro/exercise.pdf) - PDF version of document handed out in class.
- sinusoid.data (http://www.ugrad.physics.mcgill.ca/resources/339/intro/sinusoid.data) - Data to be used for exercise.
- histogram.data (http://www.ugrad.physics.mcgill.ca/resources/339/intro/histogram.data) - Data to be used for exercise.
- gaussian.data (http://www.ugrad.physics.mcgill.ca/resources/339/intro/gaussian.data) - Data used in examples, may be useful for testing programs.
- triplet_plot.m (http://www.ugrad.physics.mcgill.ca/resources/339/intro/triplet_plot.m) - A simple MATLAB script used in tutorial.
- triplet_copy.m (http://www.ugrad.physics.mcgill.ca/resources/339/intro/triplet_copy.m) - A simple MATLAB script given as a template in the exercise.
- read_histogram.m (http://www.ugrad.physics.mcgill.ca/resources/339/intro/read_histogram.m) - A simple MATLAB script to load histogram for the exercise.
- histogram_analyse.m (http://www.ugrad.physics.mcgill.ca/resources/339/intro/histogram_analyse.m) - A stub of MATLAB script given as a template in the exercise.
- write_latex_table.m (http://www.ugrad.physics.mcgill.ca/resources/339/intro/write_latex_table.m) - An ugly MATLAB script to facilitate inclusion of analysis results into report.
- LaTeX Template - this page documents the LaTeX template mentioned in the exercise handout.
[edit]
Printing
If you wish to print a text file, use the command enscript.
kukucan:~# enscript window.c [ 2 pages * 1 copy ] sent to printer
\begin{sarcasm}
For a slightly more in depth treatment of this topic, follow the link printing.
\end{sarcasm}
[edit]
Links
[edit]
