Académique Documents
Professionnel Documents
Culture Documents
Coordinator Training 10,000 Teacher Training Programme IIT Bombay June 2012
Kannan Moudgalya Use Scilab, not Matlab 1/68
Outline
Open Source Software History of Scilab Usage of Scilab Comparing other open source software systems
Kannan Moudgalya
2/68
Scilab
Kannan Moudgalya
4/68
What is Scilab?
Kannan Moudgalya
5/68
Kannan Moudgalya
6/68
History of Scilab
Prof. Cleve Moler created Matlab through NSF funding As Government funded, source code had to be made available Many companies started using this idea
Matrixx CTRL-C Matlab Scilab
Used extensively for linear algebra, simulation, control system design Scilab - a recent story
Kannan Moudgalya Use Scilab, not Matlab 7/68
Kannan Moudgalya
8/68
CNES - Frances ISRO CNES Arianne rockets CNES relies on Scilab for many critical calculations: trajectory, ight dynamics, orbit
Kannan Moudgalya
9/68
CNES Talk
Use of Scilab for Space Mission Analysis and Flight Dynamics Activities by Thierry Martin Senior Manager, CNES
Kannan Moudgalya
10/68
Kannan Moudgalya
11/68
Usage of Scilab
Kannan Moudgalya
12/68
Simple Arithmetic - 1
4+6+12 ans = 22.
Useful Commands
demos
Gives demos on several dierent things
apropos
Helps locate commands associated with a word
diary
Stores all commands and resulting outputs
Kannan Moudgalya
14/68
d = a+b+c; d d = 22.
Kannan Moudgalya Use Scilab, not Matlab 15/68
Simple Arithmetic
x = sqrt(2)/2, y = asin(x) x = 0.7071068 = 0.7853982 y_deg = y * 180 /%pi y_deg 45. =
Kannan Moudgalya Use Scilab, not Matlab 16/68
Vector Operation - 2 I
-->a = 1:5, b = 1:2:9
a ! b !
= 1. = 1. 3. 5. 7. 9. ! 2. 3. 4. 5. !
-->c = [b a]
c = ! 1.
3.
5.
Kannan Moudgalya
7.
9.
1.
17/68
2.
3.
Vector Operation - 2 II
-->d = [b(1:2:5) 1 0 1]
d !
= 1.
5.
9.
1.
0.
1. !
Kannan Moudgalya
18/68
Vector Operation - 3 I
-->a, b
a ! b !
= 1. = 1. 3. 5. 7. 9. ! 2. 3. 4. 5. !
-->a - 2
Kannan Moudgalya
19/68
Vector Operation - 3 II
ans = ! - 1. -->2*a-b
0.
1.
2.
3. !
ans !
= 1.
1.
1.
1.
1. !
Kannan Moudgalya
20/68
Logical Operators
equal to less than greater than less than or equal to greater than or equal to not equal to
Kannan Moudgalya
21/68
A ! B !
= 1. = 8. 2. 7. 3. 6. 4. 5. 5. 4. 6. 3. 7. 2.
-->tf = A==B
Kannan Moudgalya Use Scilab, not Matlab 22/68
tf = ! F F F F T T T T T !
Kannan Moudgalya
23/68
Transpose I
-->c = [1;2;3]
c ! ! !
= 1. ! 2. ! 3. !
-->a=1:3
Kannan Moudgalya
24/68
Transpose II
a ! = 1. 2. 3. !
-->b = a
b ! ! !
= 1. ! 2. ! 3. !
Kannan Moudgalya
25/68
Submatrix I
-->A=[1 2 3;4 5 6;7 8 9]
A ! ! !
= 1. 4. 7. 2. 5. 8. 3. ! 6. ! 9. !
-->A(3,3)=0
Kannan Moudgalya Use Scilab, not Matlab 26/68
Submatrix II
A ! ! !
= 1. 4. 7. 2. 5. 8. 3. ! 6. ! 0. !
Kannan Moudgalya
27/68
Submatrix I
A
A ! ! !
= 1. 4. 7. 2. 5. 8. 3. ! 6. ! 0. !
-->B=A(3:-1:1,1:3)
Kannan Moudgalya Use Scilab, not Matlab 28/68
Submatrix II
B ! ! !
= 7. 4. 1. 8. 5. 2. 0. ! 6. ! 3. !
Kannan Moudgalya
29/68
Submatrix
-->A A ! ! ! = 1. 1. 7. 2. 4. 8. 3. ! 7. ! 0. !
-->B=A(:,2) B ! ! ! = 2. ! 4. ! 8. !
Kannan Moudgalya Use Scilab, not Matlab 30/68
Submatrix I
b ! !
= 5. 2.
- 3. ! - 4. !
-->x=abs(b)>2
Kannan Moudgalya
31/68
Submatrix II
x = ! T T ! ! F T ! -->y=b(abs(b)>2)
= ! 5. ! ! - 3. ! ! - 4. !
Kannan Moudgalya
32/68
Special Matrices I
-->zeros(3,3)
ans ! ! !
= 0. 0. 0.
0. 0. 0.
0. ! 0. ! 0. !
-->ones(2,4)
Kannan Moudgalya
33/68
Special Matrices II
ans = ! 1. ! 1. 1. 1. 1. 1. 1. ! 1. !
-->rand(2,1)
Kannan Moudgalya
34/68
Kannan Moudgalya
35/68
ans
= 0.02
Kannan Moudgalya
36/68
ans
= 0.03
Kannan Moudgalya
37/68
Plots
Go through the
Demos!
Kannan Moudgalya
38/68
Capability comparison - a correct question? Is Matlab required for class students? Matlab and versions Mathworks: 2,000 employees Scilab: 23 full time employees
Kannan Moudgalya
39/68
Scilab
Xcos, HART, COMEDI
GNURadio
Kannan Moudgalya
40/68
COMEDI has device drivers for 150 A/D and Digital I/O cards We can call ALL of them from Scilab
Using Xcos ( Simulink), HART
Devices not in COMEDI, but with C drivers Devices without device drivers
Kannan Moudgalya
41/68
Calling Scilab functions from GNURadio Calling Xcos functions from GNURadio
LabView does not allow Simulink calls!
Kannan Moudgalya
42/68
Kannan Moudgalya
43/68
Kannan Moudgalya
44/68
Kannan Moudgalya
45/68
Kannan Moudgalya
46/68
Other Projects
Kannan Moudgalya
47/68
Kannan Moudgalya
48/68
Good documents are missing Lack of support Wrong impression about the quality
Kannan Moudgalya
49/68
Kannan Moudgalya
50/68
Creation of documents is dicult Code creation is easier Create code for existing documents
Kannan Moudgalya
51/68
Kannan Moudgalya
52/68
Kannan Moudgalya
53/68
Kannan Moudgalya
54/68
Completed books - 100 Books in progress - 50 Expect many summer interns to do this See the web page
Kannan Moudgalya
55/68
Availability
Every textbook companion is available as a pdf le Can be downloaded free of cost from scilab.in Can be printed as a book as well samples will be shown to you Need the original textbook to understand No copyright violation
Kannan Moudgalya
56/68
Spoken Tutorials
Kannan Moudgalya
57/68
Spoken Tutorials
It is an instructional methodology Based on IT Available also in local languages Available free of cost - thanks to MHRD funding Will help bridge digital divide Make our country IT literate Make our children employable
Kannan Moudgalya
58/68
Kannan Moudgalya
59/68
It is a recording of a computer session, along with a running commentary It is an audio-video tutorial It is typically ten minutes long Suitable for self learning
Kannan Moudgalya
60/68
Target Audience
Kannan Moudgalya
61/68
Kannan Moudgalya
62/68
Dub only audio Video remains the same If original spoken tutorial is made properly, dubbing is easy
Kannan Moudgalya
63/68
Benets of dubbing
Kannan Moudgalya
64/68
Kannan Moudgalya
65/68
Conclusion
Open source eorts are not only idealistic, but make economic and commercial sense as well It has a potential to empower ALL Indian children to collaborate and make us a developed nation IIT Bombay is working on several open source projects We invite you to join us
Kannan Moudgalya
66/68
Funded by National Mission on Education through ICT, MHRD, Government of India http://spoken-tutorial.org/NMEICT-Intro
Kannan Moudgalya
67/68
Thanks
Kannan Moudgalya
68/68