Questions tagged [scilab]

Scilab is a free and open source, cross-platform numerical computational package and a high-level, numerically oriented programming language. It can be used for signal processing, statistical analysis, image enhancement, fluid dynamics simulations, numerical optimization, and modeling and simulation of explicit and implicit dynamical systems.

[Scilab] is a free and open source, cross-platform software with a high-level, numerically oriented programming language. It can be used, for example, in signal processing, statistical analysis, image enhancement, fluid dynamics simulations, numerical optimization, and modeling and simulation of explicit and implicit dynamical systems.

It includes a block-diagram based modeling and simulation tool, [Xcos].

Here are some resources for Scilab:

853 questions
189
votes
6 answers

How to convert a boolean array to an int array

I use Scilab, and want to convert an array of booleans into an array of integers: >>> x = np.array([4, 3, 2, 1]) >>> y = 2 >= x >>> y array([False, False, True, True], dtype=bool) In Scilab I can use: >>> bool2s(y) 0. 0. 1. 1. or…
Kwolf
  • 2,001
  • 2
  • 12
  • 4
13
votes
3 answers

what advantages MATLAB has over SCILAB and vice versa?

i'm a computer systems engineering undergraduate student, i just want to know what advantages MATLAB has over SCILAB and vice versa other than that SCILAB is freeware. i mean from a computer engineer point of view. thanks
Alan_AI
  • 1,529
  • 3
  • 22
  • 32
11
votes
3 answers

Accessing variable by string name

I need to load experimental data into scicoslab, a (pretty badly designed) clone fork of scilab which happens to support graphical modeling. The documentation on the web is pretty poor, but it's reasonably similar to scilab and octave. The data I…
Dacav
  • 13,590
  • 11
  • 60
  • 87
11
votes
4 answers

If two languages follow IEEE 754, will calculations in both languages result in the same answers?

I'm in the process of converting a program from Scilab code to C++. One loop in particular is producing a slightly different result than the original Scilab code (it's a long piece of code so I'm not going to include it in the question but I'll try…
Paul Warnick
  • 903
  • 2
  • 13
  • 26
9
votes
4 answers

Using a MATLAB code on Scilab

Is it possible to use a MATLAB code on Scilab? Is that what is meant when saying that Scilab is a "clone" from MATLAB?
user2013394
  • 149
  • 1
  • 1
  • 9
7
votes
3 answers

Extract .mat data without matlab - tried scilab unsuccessfully

I've downloaded a data set that I am interested in. However, it is in .mat format and I do not have access to Matlab. I've done some googling and it says I can open it in SciLab. I tried a few things, but I haven't found any good tutorials on…
Nate
  • 1,889
  • 1
  • 20
  • 40
7
votes
1 answer

Maximum weighted pairing algorithm for complete graph

The mathematical problem Let there be 2n persons, and C(i,j) the "cost" of having i and j work together (the function C is quick to compute, in my case it is a given matrix, and is symmetric). The question is to find the arrangement of 2n pairs of…
Leporello
  • 638
  • 4
  • 12
7
votes
4 answers

How to use parallel 'for' loop in Octave or Scilab?

I have two for loops running in my Matlab code. The inner loop is parallelized using Matlabpool in 12 processors (which is maximum Matlab allows in a single machine). I dont have Distributed computing license. Please help me how to do it using…
han17
  • 71
  • 1
  • 1
  • 3
6
votes
4 answers

Best way to find all points of lattice in sphere

Given a bunch of arbitrary vectors (stored in a matrix A) and a radius r, I'd like to find all integer-valued linear combinations of those vectors which land inside a sphere of radius r. The necessary coordinates I would then store in a Matrix V.…
kram1032
  • 237
  • 1
  • 14
5
votes
1 answer

Scilab issue with exec command

I am using Scinote 5.4.0 with OSX 10.7.4. I am unable to execute script files from the console using the exec("path") command; when I do so, only the first line of the script file is read. Example: -->exec("plot1.sce") -->x=[0:.1:10]'; //(the…
andy87
  • 53
  • 1
  • 4
4
votes
1 answer

Scilab "Warning adding a matrix with the empty matrix will give an empty matrix result."

I am a new user of Scilab (see also here). I define a simple piece-wise function and get a confusing warning when I use the function ("Warning adding a matrix with the empty matrix will give an empty matrix result."). Do you see where my mistake…
Dr. Manuel Kuehner
  • 389
  • 1
  • 6
  • 16
4
votes
1 answer

Swap elements in Matlab as in Python

I am new in Matlab. In Python one can swap elements in a handy way. x, y = 5, 10 x, y = y, x Is there something similar in Matlab (or in Octave/Scilab)? Otherwise, what is the best way to swap elements without the use of a temp variable?
Dimitris
  • 569
  • 3
  • 14
4
votes
4 answers

Calculate the n-th derivative in any point using Scilab

I am trying to evaluate a function in Scilab using the following steps: x=poly(0,'x') y=(x^18+x^11)^3 // function (the function is variable) y1=derivat(y) // first derivate y2=derivat(y) //second derivate y3=derivat(y) //third derivate I need…
Code Geas Coder
  • 1,839
  • 4
  • 23
  • 29
4
votes
1 answer

Converting Matlab anonymous functions to Scilab inline functions

Most of my Matlab functions can be converted with the mfile2sci function to Scilab functions except some functions that contain anonymous functions (for example f=@(x,y)sin(x)+log(y)). Is there a way to convert the anonymous functions to Scilab…
Dante
  • 611
  • 1
  • 7
  • 21
4
votes
3 answers

Faster projected-norm (quadratic-form, metric-matrix...) style computations

I need to perform lots of evaluations of the form X(:,i)' * A * X(:,i) i = 1...n where X(:,i) is a vector and A is a symmetric matrix. Ostensibly, I can either do this in a loop for i=1:n z(i) = X(:,i)' * A * X(:,i) end which is slow, or…
thekindamzkyoulike
  • 244
  • 1
  • 2
  • 7
1
2 3
56 57