Unformatted text preview:

PrefaceIntroductionTutorial 1 – Scilab EnvironmentTutorial 2 – The Workspace and Working DirectoryTutorial 3 – Matrix OperationsTutorial 4 – Sub-matricesTutorial 5 – StatisticsTutorial 6 – Plotting GraphsTutorial 7 – Scilab Programming LanguageTutorial 8 – Functions in ScilabTutorial 9 – Miscellaneous CommandsScilabA Hands on IntroductionbySatish Annigeri Ph.D.Professor of Civil EngineeringB.V. Bhoomaraddi College of Engineering & Technology, [email protected] 2006Table of ContentsPreface.............................................................................................................................................iiIntroduction..................................................................................................................................... 1Tutorial 1 – Scilab Environment..................................................................................................... 2Tutorial 2 – The Workspace and Working Directory......................................................................3Tutorial 3 – Matrix Operations....................................................................................................... 4Tutorial 4 – Sub-matrices................................................................................................................5Tutorial 5 – Statistics...................................................................................................................... 6Tutorial 6 – Plotting Graphs............................................................................................................7Tutorial 7 – Scilab Programming Language................................................................................... 8Tutorial 8 – Functions in Scilab...................................................................................................... 9Tutorial 9 – Miscellaneous Commands.........................................................................................11Scilab Tutorial iPrefaceScilab is a software for numerical mathematics and scientific visualization. It is capable of interactive calculations as well as automation of computations through programming. It provides all basic operations on matrices through built-in functions so that the trouble of developing and testing code for basic operations are completely avoided. Its ability to plot 2D and 3D graphs helps in visualizing the data we work with. All these make Scilab an excellent tool for teaching, especially those subjects that involve matrix operations. Further, the numerous toolboxes that are available for various specialized applications make it an important tool for research. Being compatible with Matlab®, all available Matlab M-files can be directly used in Scilab. Scicos, a hybrid dynamic systems modeler and simulator for Scilab, simplifies simulations. The greatest features of Scilab are that it is multi-platform and is free. It is available for many operating systems including Windows, Linux and MacOS X. More information about the features of Scilab are given in the Introduction.Scilab can help a student understand all intermediate steps in solving even complicated problems, as easily as using a calculator. In fact, it is a calculator that is capable of matrix algebra computations. Once the student is sure of having mastered the steps, they can be converted into functions and whole problems can be solved by simply calling a few functions. Scilab is an invaluable tool as solved problems need not be restricted to simple examples to suit hand calculations.It is not the aim of this tutorial to be an exhaustive and in-depth look into Scilab. Instead, it attempts to get a novice started with the least fuss and is aimed at anyone who intends to start learning to use Scilab entirely on her own.AcknowledgmentsIt goes without saying that my first indebtedness is to the developers of Scilab and the consortium that continues to develop it. I must also thank Dr. A.B. Raju, E&EE Department, BVBCET, Hubli who first introduced me to Scilab and forever freed me from using Matlab.September 2006 Satish AnnigeriScilab Tutorial iiIntroductionScilab is a scientific software package for numerical computations providing a powerful open computing environment for engineering and scientific applications. Developed since 1990 by researchers from INRIA (French National Institute for Research in Computer Science and Control, http://www.inria.fr/index.en.html) and ENPC (National School of Bridges and Roads, http://www.enpc.fr/english/int_index.htm), it is now maintained and developed by Scilab Consortium (http://scilabsoft.inria.fr/consortium/consortium.html) since its creation in May 2003.Distributed freely and open source through the Internet since 1994, Scilab is currently being used in educational and industrial environments around the world.Scilab includes hundreds of mathematical functions with the possibility to add interactively programs from various languages (C, Fortran...). It has sophisticated data structures (including lists, polynomials, rational functions, linear systems...), an interpreter and a high level programming language.Scilab has been designed to be an open system where the user can define new data types and operations on these data types by using overloading.A number of toolboxes are available with the system:• 2-D and 3-D graphics, animation• Linear algebra, sparse matrices• Polynomials and rational functions• Simulation: ODE solver and DAE solver• Scicos : a hybrid dynamic systems modeler and simulator• Classic and robust control, LMI optimization• Differentiable and non-differentiable optimization• Signal processing• Metanet: graphs and networks• Parallel Scilab using PVM• Statistics• Interface with Computer Algebra (Maple, MuPAD)• Interface with Tcl/Tk• And a large number of contributions for various domains.Scilab works on most Unix systems including GNU/Linux and on Windows 9X/NT/2000/XP. It comes with source code, on-line help and English user manuals. Binary versions are available.Some of its features are listed below:• Basic data type is a matrix, and all matrix operations are available as built-in operations.• Has a built-in interpreted high-level programming language.• Graphics such as 2D and 3D graphs can be generated and exported to various


View Full Document

UT Arlington MAE 3183 - A Hands on Introduction

Download A Hands on Introduction
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view A Hands on Introduction and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view A Hands on Introduction 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?