0% found this document useful (0 votes)
87 views6 pages

Scilab Familarization - Lopez

1) Scilab is a free and open source software for numerical computation, providing tools for engineering and scientific applications. It includes hundreds of mathematical functions and allows programming and accessing advanced data structures. 2) The Scilab environment includes icons for the console, editor, variable browser, and other windows. The console allows interactive commands while the editor allows coding and formatting code. 3) Windows in Scilab like the editor and console can be docked together into a single window for easier viewing. This allows sub-windows to be arranged on different sides.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views6 pages

Scilab Familarization - Lopez

1) Scilab is a free and open source software for numerical computation, providing tools for engineering and scientific applications. It includes hundreds of mathematical functions and allows programming and accessing advanced data structures. 2) The Scilab environment includes icons for the console, editor, variable browser, and other windows. The console allows interactive commands while the editor allows coding and formatting code. 3) Windows in Scilab like the editor and console can be docked together into a single window for easier viewing. This allows sub-windows to be arranged on different sides.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

LOPEZ, CARL ADRIENNE S.

ACTIVITY 1: SCI LAB FAMILIARIZATION

A. ABOUT SCI LAB


Scilab is free and open source software for numerical computation providing a powerful
computing environment for engineering and scientific applications. Scilab includes hundreds of
mathematical functions. It has a high level programming language allowing access to advanced
data structures, 2-D and 3-D graphical functions.

Scilab is a programming language associated with a rich collection of numerical algorithms


covering many aspects of scientific computing problems. From the software point of view, Scilab
is an interpreted language. This generally speeds up the development process, because the user
directly accesses a high-level language, with a rich set of features provided by the library. The
Scilab language is meant to be extended so that user-defined data types can be defined with
possibly overloaded operations. Scilab users can develop their own modules so that they can
solve their particular problems.

B. EXPLORING SCILAB ENVIRONMENT – ICONS, COMMAND WINDOWS

THE CONSOLE

The first way is to use Scilab interactively, by typing commands in the console, analyzing the
results and continuing this process until the final result is computed. This document is designed
so that the Scilab examples which are printed here can be copied into the console. The goal is
that the reader can experiment with Scilab behavior by himself. This is indeed a good way of
understanding the behavior of the program and, most of the time, it is a quick and smooth way
of performing the desired computation.
THE EDITOR

The editor can be accessed from the menu of the console, under the Applications > Editor menu,
or from the console, as presented in the following session. This editor manages several files at
the same time, as presented in figure 5, where we edit five files at the same time. There are
many features which are worth mentioning in this editor. The most commonly used features are
under the Execute menu.

THE VARIABLE BROWSER


We can access this browser through the menu Applications > Variable Browser, but the function
browsevar() has the same effect.

We can double click on a variable, which opens the variable editor, as presented in the figure 12.
We can then interactively change the value of a variable by changing its content in a cell. On the
other hand, if we change the variable content within the console, we must refresh the content
of the dialog box by pushing the refresh button in the toolbar of the Variable Editor.

The Edit menu provides a very interesting feature, commonly known as a ”pretty printer” in
most languages. This is the Edit > Correct Indentation feature, which automatically indents the
current selection. This feature is extremely convenient, because it formats algorithms, so that
the if, for and other structured blocks are easy to analyze.

The editor provides a fast access to the inline help. Indeed, assume that we have selected the
disp statement, as presented in figure 7. When we right-click in the editor, we get the context
menu, where the Help about ”disp” entry opens the help page associated with the disp function.

Docking

The graphics in Scilab version 5 has been updated so that many components are now based on
Java. This has a number of advantages, including the possibility to manage docking windows.
The docking system uses Flexdock [12], an open-source project providing a Swing docking
framework. Assume that we have both the console and the editor opened in our environment,
as presented in figure 8. It might be annoying to manage two windows, because one may hide
the other, so that we constantly have to move them around in order to actually see what
happens.

The title bar in the source window. In order to dock the editor into the console, drag and drop
the title bar of the editor into the console.
The Flexdock system allows us to drag and drop the editor into the console, so that we finally
have only one window, with several sub-windows. All Scilab windows are dockable, including
the console, the editor, the variable browser, the command history, the help and the plotting
windows. In figure 9, we present a situation where we have docked four windows into the
console window.
In order to dock one window into another window, we must drag and drop the source window
into the target window. To do this, we left-click on the title bar of the docking window, as
indicated in figure 8. Before releasing the click, let us move the mouse over the target window
and notice that a window, surrounded by dotted lines is displayed. This ”phantom” window
indicates the location of the future docked window.
We can choose this location, which can be on the top, the bottom, the left or the right of the
target window. Once we have chosen the target location, we release the click, which finally
moves the source window into the target window
Scilab provides a variable browser, which displays the list of variables currently used in the
environment. Figure 11 presents the state of this browser during a session.
The Command History dialog allows browsing through the commands that we have previously
executed. This dialog is available in the menu Applications > Command History and is presented
in the figure

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy