Categories
Navigation Telecommunications

Scilab & ScicosLab – Graphs

Scilab and ScicosLab are Open Source Math Programs that can be used in various engineering and scientific applications. I use ScicosLab with the Modnum tool box in all my Telecommunications work, but both Scilab/ScicosLab can be used for all the mathematics involved in my CelNav EBook. In a previous post (Ref.1) I introduced the programs and working with the console & editor functions. In this post I will look at basic graphs.

Basic Graphs

There are many graphics and plotting options in Scilab/ScicosLab. The three variants I use are basically: plotting one graph in one window, or plotting several graphs in the same window, and finally having several graphs in separate windows.

One Graph in One Window

In this option, we simply use the “plot” function. We can also add a “Title” and X axis & Y axis labels which help describe the graph.

Fig.1 One Graph in One Window

Several Graphs in One Window

Here we use the “subplot” function along with the “plot” function. Graphs are stacked on each other in a matrix fashion. (2,1,1) means there are 2 graphs, in 1 column, and this is the first. (3,1,3) would mean there are 3 graphs in one column, and this would be the third.

Fig.2 Several Graphs One Window

Several Graphs Separate Windows

Here we use the “scf(#)” function to set the current graphic function/window. So scf(0) defines window #0, scf(1) defines window #1.

Fig.3 Several Graphs in Separate Windows
Fig.4 YouTube Video “Scilab & ScicosLab – Graphics”
YouTube Channel
YouTube Channel

References

#1. “Scilab & Scicoslab – Open-Source Math for CelNav”

#2. “Scilab & Scicoslab – Open Source Math for the Plane Triangle”

#3. “Scilab & Scicoslab – Open Source Math for the Spherical Triangle”

#4. “Scilab & Scicoslab – HF Loop Bearing”

#5. “ScicosLab & Scicos – AM Modulator”

#6. Scilab Open Source Software

#7. ScicosLab Open Source Software

#8. ScicosLab with Modnum Toolbox

By Jeremy Clark

Jeremy Clark is a Senior Telecommunications Engineer and Advanced Amateur Radio Operator VE3PKC. He is the author of E-Books on Telecommunications, Navigation & Electronics.