Hide menu

TDDD34 Programming with Applications in Engineering

Lab Material

Lab signup

All (MatLab) lab work shall be done together with ONE fellow student. Lab signup is done by demonstarting Lab0 to one of the assistants.

Lab demonstartion and approval

Finished (well tested and debugged) labs shall be approved by one of the assistants during laborations. Read the Common Requirements for instructions. The "hand-in" expects your files to be named as stated in each assignment title in the instruction. Refer to STONE information if you need to rename or move any files.

Bonus time on the exam

Getting labs approved BEFORE the time expires (see the timetable) give you bonus time on the exam. Bonus time extends the time limit of grade 4 and 5. You will get 5 minutes for each lab deadline you meet. You can get in total 35 minutes of bonus time, but never more that 5 hours total exam time.

Hard deadlines

At the end of the first period there is a deadline for lab 0, 1, 2, 3, STONE and the MatLab intro assignment. These assignments must be completed before that time (see the timetable for the exact time). We will not accept any demonstrations for these labs after the deadline and you will have to demonstrate them next year. There will be a similar deadline in period 2 for labs 4, 5 and 6. Check the timetable regurlarly for updates.

Lab instructions

Miscellaneous files

  • Rotating 3D cube program.
  • plot_poker_hand.m A function which graphically plots a poker hand at a desired location (x, y). Usefull to check your eval_hand.m function from lab 5-10. Some code in the file has been deliberatly obfuscated. This is because these parts solve a part of the problem in assigment 5-10.
  • test_eval_hand.m A script which tests your function eval_hand.m from lab 5-10. plot_poker_hand.m is required for this script to run. The function firsts tests if permutations of the same hand gives different results (they should not). Then checks a set of pairs of hands. For each pair in the set it checks that the winning hand has a greater return value from eval_hand.m. At last it checks another set of pairs for which the outcome should be a draw.

Your responsibilities in order to learn

  • Attend lectures and ask questions
  • Read book and study examples
  • Attend lessons and participate actively and ask questions
  • Study, modify and write small eperimental programs that focus on how one particular feature of MatLab works
  • Prepare lab solutions at home
  • Discuss different solution approaces with your lab patner
  • Attend labs and write lab solutions
  • ...

Page responsible: Erik Nilsson
Last updated: 2012-09-07