Matlab vs. Scilab - PowerPoint PPT Presentation

About This Presentation
Title:

Matlab vs. Scilab

Description:

Title: Matlab vs. Scilab Author: Rafael Brunner Last modified by: Rafael Brunner Created Date: 7/31/2003 6:13:31 AM Document presentation format: Bildschirmpr sentation – PowerPoint PPT presentation

Number of Views:234
Avg rating:3.0/5.0
Slides: 22
Provided by: Rafael214
Category:

less

Transcript and Presenter's Notes

Title: Matlab vs. Scilab


1
Matlab vs. Scilab
  • Rafael Brunner

2
Whats going on?
  • Few words about Scilabs origin
  • Introduction to Scilab- linear algebra-
    programming
  • Parts of my term work- sparse matrices-
    Savitzky-Golay filter- performance comparison
  • My own experiences

3
Scilab
  • developed since 1990 at INRIA / ENPC (France)
  • open source
  • free of charge
  • high quality toolboxes available- artificial
    network- serial port
  • similar to Matlab... yes, but...

4
Demo
  • Linear Algebra- basics (how to enter matrices
    etc.)- compute with matrices- solving systems
    of equations- hessenberg form- LU-,
    QR-decomposition- eigenvalues, -vectors- SVD

5
Programming
  • introduction / overview
  • example poisson2d_kron

6
Overview (1)
  • for var expr, statement ... statement end
  • while expression, statements end
  • if expr then statementselseif expr then
    statementselse statementsend

7
Overview (2)
  • select expr case expr1 then instructions1
    ... case exprn then instructionsn else
    instructionsend

8
Overview (3)
  • lhs,rhs argn(0)
  • error
  • warning

9
Example (demo)
  • poisson2d_kron.m ? poisson2d_kron.sci
  • mfile2sci

10
2D-Poisson matrix
11
Sparse matrices
  • Three different algorithms to generate the
    2D-Poisson matrix- set the elements one by
    one- block wise- kronecker product

12
Performance comparison
13
Solving a system Axb
  • in this case Ax 1
  • pcg (preconditioned conjugate gradients method)
  • Scilab does not provide a pcg method ? Scilin
    (IRISA)

14
Demo
  • Solving Ax1 for n100
  • 2D-Poisson matrix generated by poisson2d_kron

15
Performance comparison
16
Savitzky-Golay Filter
  • measured data (slowly varying and corrupted by
    random noise)
  • reconstruction of the underlying smooth function

17
Savitzky-Golay Filter (DEMO)
18
My own experiences
  • editor
  • translating- build up new functions- mfile2sci

19
Summary
  • speed
  • graphics
  • signal processing

20
Is Scilab an alternative to Matlab?
21
In my opinionScilab is capable and can be an
alternative to Matlab.
Write a Comment
User Comments (0)
About PowerShow.com