Virtual Labs Basic
Virtual Labs Basic
Outline
1 Vectors/matrices
2 Plotting
4 Polynomials
Today’s focus
Scilab is free.
Matrix/loops syntax is same as for Matlab.
Scilab provides all basic and many advanced tools.
Signal processing, Control systems, block-diagram-simulation
(xcos), Electrical, networks, op-amps, device simulation, ++
Toolboxes: image/video processing, wavelets, neural networks,
filter design, hardware-interfacing for real time control, ++
French National Space Agency (CNES) (like India ISRO) uses
only Scilab (search google Martin CNES Scilab )
Teaching Matlab is like MBBS colleges teaching to-be-doctors
how to use only very expensive medicines
Today: basic matrix operations and loops syntax, plotting
Also: signal processing: DSP,
Madhu Belur, CC group, EE, IITB Scilab/Linear Algebra
Outline Vectors/matrices Plotting if-then-else-end and for-end Polynomials Other useful commands
Today’s focus
Scilab is free.
Matrix/loops syntax is same as for Matlab.
Scilab provides all basic and many advanced tools.
Signal processing, Control systems, block-diagram-simulation
(xcos), Electrical, networks, op-amps, device simulation, ++
Toolboxes: image/video processing, wavelets, neural networks,
filter design, hardware-interfacing for real time control, ++
French National Space Agency (CNES) (like India ISRO) uses
only Scilab (search google Martin CNES Scilab )
Teaching Matlab is like MBBS colleges teaching to-be-doctors
how to use only very expensive medicines
Today: basic matrix operations and loops syntax, plotting
Also: signal processing: DSP,
Madhu Belur, CC group, EE, IITB Scilab/Linear Algebra
Outline Vectors/matrices Plotting if-then-else-end and for-end Polynomials Other useful commands
Today’s focus
Scilab is free.
Matrix/loops syntax is same as for Matlab.
Scilab provides all basic and many advanced tools.
Signal processing, Control systems, block-diagram-simulation
(xcos), Electrical, networks, op-amps, device simulation, ++
Toolboxes: image/video processing, wavelets, neural networks,
filter design, hardware-interfacing for real time control, ++
French National Space Agency (CNES) (like India ISRO) uses
only Scilab (search google Martin CNES Scilab )
Teaching Matlab is like MBBS colleges teaching to-be-doctors
how to use only very expensive medicines
Today: basic matrix operations and loops syntax, plotting
Also: signal processing: DSP,
Madhu Belur, CC group, EE, IITB Scilab/Linear Algebra
Outline Vectors/matrices Plotting if-then-else-end and for-end Polynomials Other useful commands
Today’s focus
Scilab is free.
Matrix/loops syntax is same as for Matlab.
Scilab provides all basic and many advanced tools.
Signal processing, Control systems, block-diagram-simulation
(xcos), Electrical, networks, op-amps, device simulation, ++
Toolboxes: image/video processing, wavelets, neural networks,
filter design, hardware-interfacing for real time control, ++
French National Space Agency (CNES) (like India ISRO) uses
only Scilab (search google Martin CNES Scilab )
Teaching Matlab is like MBBS colleges teaching to-be-doctors
how to use only very expensive medicines
Today: basic matrix operations and loops syntax, plotting
Also: signal processing: DSP,
Madhu Belur, CC group, EE, IITB Scilab/Linear Algebra
Outline Vectors/matrices Plotting if-then-else-end and for-end Polynomials Other useful commands
Today’s focus
Scilab is free.
Matrix/loops syntax is same as for Matlab.
Scilab provides all basic and many advanced tools.
Signal processing, Control systems, block-diagram-simulation
(xcos), Electrical, networks, op-amps, device simulation, ++
Toolboxes: image/video processing, wavelets, neural networks,
filter design, hardware-interfacing for real time control, ++
French National Space Agency (CNES) (like India ISRO) uses
only Scilab (search google Martin CNES Scilab )
Teaching Matlab is like MBBS colleges teaching to-be-doctors
how to use only very expensive medicines
Today: basic matrix operations and loops syntax, plotting
Also: signal processing: DSP,
Madhu Belur, CC group, EE, IITB Scilab/Linear Algebra
Outline Vectors/matrices Plotting if-then-else-end and for-end Polynomials Other useful commands
Today’s focus
Scilab is free.
Matrix/loops syntax is same as for Matlab.
Scilab provides all basic and many advanced tools.
Signal processing, Control systems, block-diagram-simulation
(xcos), Electrical, networks, op-amps, device simulation, ++
Toolboxes: image/video processing, wavelets, neural networks,
filter design, hardware-interfacing for real time control, ++
French National Space Agency (CNES) (like India ISRO) uses
only Scilab (search google Martin CNES Scilab )
Teaching Matlab is like MBBS colleges teaching to-be-doctors
how to use only very expensive medicines
Today: basic matrix operations and loops syntax, plotting
Also: signal processing: DSP,
Madhu Belur, CC group, EE, IITB Scilab/Linear Algebra
Outline Vectors/matrices Plotting if-then-else-end and for-end Polynomials Other useful commands
Today’s focus
Scilab is free.
Matrix/loops syntax is same as for Matlab.
Scilab provides all basic and many advanced tools.
Signal processing, Control systems, block-diagram-simulation
(xcos), Electrical, networks, op-amps, device simulation, ++
Toolboxes: image/video processing, wavelets, neural networks,
filter design, hardware-interfacing for real time control, ++
French National Space Agency (CNES) (like India ISRO) uses
only Scilab (search google Martin CNES Scilab )
Teaching Matlab is like MBBS colleges teaching to-be-doctors
how to use only very expensive medicines
Today: basic matrix operations and loops syntax, plotting
Also: signal processing: DSP,
Madhu Belur, CC group, EE, IITB Scilab/Linear Algebra
Outline Vectors/matrices Plotting if-then-else-end and for-end Polynomials Other useful commands
Defining a matrix
Defining a matrix
Defining a matrix
Defining a matrix
Random numbers/matrices
Random numbers/matrices
Random numbers/matrices
Random numbers/matrices
function
x = 0:0.3:3
y = x• ˆ2 // elementwise squaring
plot(x) and plot(x,y) // independent, dependent-variable(s)
plot(x’,y’) // Now 2nd argument can have many columns
x = 0:0.3:3’; y2 = x• ˆ2; y3 = x• ˆ3;
plot(x, [y2 y3]),
plot2d(x, [y2 y3], [2, -4]) // help plot and plot2d
x = 0:0.3:3
y = x• ˆ2 // elementwise squaring
plot(x) and plot(x,y) // independent, dependent-variable(s)
plot(x’,y’) // Now 2nd argument can have many columns
x = 0:0.3:3’; y2 = x• ˆ2; y3 = x• ˆ3;
plot(x, [y2 y3]),
plot2d(x, [y2 y3], [2, -4]) // help plot and plot2d
Defining polynomials
Differentiation
p=poly([1 3 4 -3],’s’,’coeff’)
cfp=coeff(p) constant term first
diffpcoff=cfp(2:length(cfp)).*[1:length(cfp)-1]
diffp=poly(diffpcoff,’s’,’coeff’)
degree(p) can be used instead of length(cfp)-1
Of course, derivat(p)
Differentiation
p=poly([1 3 4 -3],’s’,’coeff’)
cfp=coeff(p) constant term first
diffpcoff=cfp(2:length(cfp)).*[1:length(cfp)-1]
diffp=poly(diffpcoff,’s’,’coeff’)
degree(p) can be used instead of length(cfp)-1
Of course, derivat(p)
Differentiation
p=poly([1 3 4 -3],’s’,’coeff’)
cfp=coeff(p) constant term first
diffpcoff=cfp(2:length(cfp)).*[1:length(cfp)-1]
diffp=poly(diffpcoff,’s’,’coeff’)
degree(p) can be used instead of length(cfp)-1
Of course, derivat(p)
Differentiation
p=poly([1 3 4 -3],’s’,’coeff’)
cfp=coeff(p) constant term first
diffpcoff=cfp(2:length(cfp)).*[1:length(cfp)-1]
diffp=poly(diffpcoff,’s’,’coeff’)
degree(p) can be used instead of length(cfp)-1
Of course, derivat(p)
Differentiation
p=poly([1 3 4 -3],’s’,’coeff’)
cfp=coeff(p) constant term first
diffpcoff=cfp(2:length(cfp)).*[1:length(cfp)-1]
diffp=poly(diffpcoff,’s’,’coeff’)
degree(p) can be used instead of length(cfp)-1
Of course, derivat(p)
Differentiation
p=poly([1 3 4 -3],’s’,’coeff’)
cfp=coeff(p) constant term first
diffpcoff=cfp(2:length(cfp)).*[1:length(cfp)-1]
diffp=poly(diffpcoff,’s’,’coeff’)
degree(p) can be used instead of length(cfp)-1
Of course, derivat(p)
find([%T %F %T %F %T %F %F])
gives ‘indices’ of TRUE’s.
x=[4 5 6 7]
x < 5.5
true indices of x=find(x < 5.5)
y=[5 6 7 8 9 0 -1]
y(true indices of x)
Conclusions