Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to write scripts for SciLab ?

Status
Not open for further replies.

asjoshi

Junior Member level 2
Joined
Mar 29, 2002
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
96
Anybody using SciLab?

Hi,
Anybody have xp in SciLab which is free substitute for Matlab? I want to know how to write scripts for Scilab (Similar to .m files). Are the *.m files for Matlab fully compatible to SciLab?
Thanx in adv.
-asjoshi
 

cdcll

Full Member level 3
Joined
Feb 15, 2002
Messages
163
Helped
8
Reputation
16
Reaction score
1
Trophy points
1,298
Activity points
1,199
Hello asjoshi:
I heard people talking about SciLab, could you tell me what it is for? and how to use it?
regards,
cdcll
 

vsupachai

Junior Member level 3
Joined
Jun 30, 2002
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
97
Not all 100% of m-files can be used in Scilab, several basic operations of scilab use symbols that different from MATLAB.
Anyway, why not considering Octave? It is also MATLAB clone but at least more activity (open-source) and seem to be more compatible (upto version 4).

Octave
http://www.octave.org
Scilab
http://www.scilab.org
 

brmadhukar

Advanced Member level 3
Joined
Jun 21, 2002
Messages
840
Helped
42
Reputation
84
Reaction score
11
Trophy points
1,298
Location
India
Activity points
6,783
Hi Here is an example
Most commands are matlab like.
pi is not defined.



prc.sci --- > .sci is the extension
-----------------------------------

clear

rin = 50;
cl = 100e-12;
cm = 2.7e-12;
lm = 3.3e-9;
pi = 3.14159; -->define pi
f = 1.57542e9;
w = 2*pi*f;

Z = 0+%i*w*lm + (((rin - %i*1/(w*cl))*(0.0 - %i*(1/(w*cm))) )/(rin - %i*(1/w)*(1/cl + 1/cm)))

%i --> indicates complex.

-----------
exec should be used

For more info let me know what is it you want to really write.
 

Mazi3

Advanced Member level 4
Joined
May 29, 2002
Messages
101
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,298
Location
Europe
Activity points
960
I'ts nice to use,

Pi is defined as "%pi".
Tnx for info about octave
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top