DD1312 Programming Techniques and Matlab 8.0 credits

Programmeringsteknik och Matlab

A basic course in programming techniques.

Show course information based on the chosen semester and course offering:

Offering and execution

No offering selected

Select the semester and course offering above to get information from the correct course syllabus and course offering.

Course information

Content and learning outcomes

Course contents *

Fundamental computer concepts.

Programming in a modern programming language (Python). Data structures. Using simple graphics routines. Problem-solving through division into sub-problems. Program structuring. Several smaller programming assignments as well as one larger, individual programming assignment with strong emphasis on structuring and specification of included modules.
Interactive computation, programming and two-dimensional graphical presentation in Matlab.

Intended learning outcomes *

Having passed the course, the student should be able to:
• design programs without code repetitions
• divide a larger problem in manageable parts
• divide a program
• apply control structures
• design and present user friendly output
• create flexible applications
• choose appropriate names of identifiers
• design interactive programs
• use and design composite data types (classes)
• transfer data between file and program,
• review others' programs
• handle matrices and use matrix operations in Matlab
• use existing functions from the Matlab library for computation and visualisation.
• write own Matlab functions, in order to be able to
• use programming to solve problems,
• apply the problem solving methodology also within other fields than programming,
• discuss software development with experts
• assess commercial programs
• independently and in a group be able to solve problems by designing programs of up to 500 lines in a modern programming language.
• utilise Matlab as an aid for numerical computations and visualisation in other courses.

Course Disposition

No information inserted

Literature and preparations

Specific prerequisites *

No information inserted

Recommended prerequisites

High school mathematics (scientific program). Some computer experience (the concepts of operating system and file and experience from one computer application, e.g. word processing).


No information inserted


Kurslitteratur meddelas senast 4 veckor före kursstart på kursens hemsida.

Examination and completion

Grading scale *

A, B, C, D, E, FX, F

Examination *

  • LAB1 - Laboratory Work, 2.0 credits, Grading scale: P, F
  • LAB2 - Laboratory Work, 1.5 credits, Grading scale: P, F
  • LAB3 - Laboratory Work, 3.0 credits, Grading scale: A, B, C, D, E, FX, F
  • MAT1 - Laboratory Work, 1.5 credits, Grading scale: P, F

Based on recommendation from KTH’s coordinator for disabilities, the examiner will decide how to adapt an examination for students with documented disability.

The examiner may apply another examination format when re-examining individual students.

It is the examiner who, in agreement with KTH´s coordinator for disabilities, will decide on possible adapted examination for students with a proven permanent disability. The examiner may permit another examination format at the re-examination of individual students.

Opportunity to complete the requirements via supplementary examination

No information inserted

Opportunity to raise an approved grade via renewed examination

No information inserted


Linda Kann

Further information

Course web

Further information about the course can be found on the Course web at the link below. Information on the Course web will later be moved to this site.

Course web DD1312

Offered by

EECS/Computer Science

Main field of study *


Education cycle *

First cycle

Add-on studies

Recommended: DD1320/DD1325 Applied Computer Science and DD1380 Java Programming for Python Programmers.


Linda Kann tel: 790 9276, e-post: lk@kth.se

Ethical approach *

  • All members of a group are responsible for the group's work.
  • In any assessment, every student shall honestly disclose any help received and sources used.
  • In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.

Supplementary information

Only one of the following courses may be counted in your exam:
DD100N, DD1310, DD1311, DD1312, DD1314, DD1315, DD1337, DD1340, DD1341, DD1342, DD1343, DD1345, DN1212, HI1024, HI1026, ID1004, ID1301.

In this course, the EECS code of honor applies, see: