~~UNDERCONSTRUCTION~~ <texit info> author=Roman Putanowicz backgroundtext=http://www.L5.pk.edu.pl/~putanowr/iten.html title=Lab 7: Solving problems; operating on files showbuttons=off </texit> <texit>\input{/home/prac/putanowr/dokuwiki/data/media/wiki/latex/it_preamb.tex}</texit> <texit>\begin{comment}</texit> prev | up | next <texit>\end{comment}</texit>

Lab 7 : Solving problems; operating on files

Description

Reading and saving variables with load and save commands. Exercising formulation and implementation of algorithms for miscellaneous problems. Partitioning of complex algorithms into several functions.

Skills to be acquired

  • Performing simple I/O operations on files.
  • Writing programs consisting of several functions.

Self study

This lab shows how to do simple I/O operations using load and save commands. However very often one needs much finer control over how the variables are saved or read in. Octave provides input and output functions that mimic most of the functionality that is available in the C programming language's standard I/O library. Mastering those functions as well as understanding the concept of data streams is the proposal for self-study topics: * understanding the concept of input, output and error stream * manipulation of the streams on the shell level: redirection to files and building pipelines * C-style functions for fine grained control over I/O operations.

Readings

Solved problems

Ex. 7.1
Ex. 7.2

Questions and open problems

Ex. 7.2.1
Ex. 7.2.2
Ex. 7.2.3
Ex. 7.2.4
Ex. 7.2.5
Ex. 7.2.6
Ex. 7.2.7
Ex. 7.2.8
Ex. 7.2.9

<texit>\begin{comment}</texit> prev | up | next <texit>\end{comment}</texit>

  • en/teaching/subjects/it/labs/lab7.txt
  • Last modified: 2017/10/02 15:54
  • (external edit)