Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

How to write scripts for SciLab ?

Status
Not open for further replies.

asjoshi

Junior Member level 2
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
 

Hello asjoshi:
I heard people talking about SciLab, could you tell me what it is for? and how to use it?
regards,
cdcll
 

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
https://www.octave.org
Scilab
https://www.scilab.org
 

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.
 

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

Back
Top