## Drafting in Octave/Matlab

Plotting package of octave is very powerful. It can be used to plot architectural drawings. Following steps are required:

1. Sketching the layout on paper while noting down the points and labeling it.
2. Afterwards, the coordinates of point is calculated.
3. Commands of line, gtext and axis limits are used.

For demo, m-file named drawoschool.m (draw octave school) is created which can be downloaded from here

To use this m-file, type:

## SCILAB Tutorials

SCILAB software is available for windows, mac and linux. It is a numerical computation tool and opensource alternative to MATLAB. It can be downloaded from http://www.scilab.org/.

Excellent tutorial on SCILAB are following:

The source code of above msa scilab document is available here. It can analyze 2D beam, frame and truss.

## Solver based on Direct Stiffness Method

DSM-SOLVER is based on Direct Stiffness Method.  Direct Stiffness Method is implementation of Finite Element Method. It is available in two flavors. One is octave/matlab while other is scilab script and distributed under GNU/GPL v2.0 license.

GNU Octave is free clone of matlab. It is fully compatible with matlab.

Scilab is an open source, cross-platform numerical computational package and a high-level, numerically oriented programming language. Scilab is alternative to matlab.

You can download the source-code of DSM-OCTAVE-SOLVER or  DSM-SCILAB-SOLVER. To understand how this script works,  read the document provided along with the source files. Consider the following example:

The above example can be solved in one of the two scripts explained as under:

For Octave/Matlab example, first define some input variables as:

To run the program, you need to update the directory to src folder, then, write following:

Note that truss2d has same code as that of frame 2d. You can get pretty accurate result for trusses by considering it as frame.

For SCILAB example, the input matrices and command for making var01.bin as provided in the preproc.sce file are:

To run the program, you need to update the directory to src folder, then, write following: