scilab

Porting matlab functions to scilab. How to use symbolic?

I'm porting some matlab functions to scilab. The cool thing is that there is a conversion toolbox that make things very easy. The problem is I did not find the counter part to the syms function, and the symbolic toolbox in general. (I'd like a port of the Control System Toolbox too, i'm still searching for some functions I'd may need). ...

how to execute VC++2008 dll function in SCILAB

I have created dll in VC++2008, I linked Dll in my software SCILAB 5.1, and now i have an error Execution part. what is the syntax to follow exeute that function. ...

scilab question

hi. i am new to scilab. can somebody please tell me how to convert this c++ code to scilab code? thanks! #include <stdio.h> #include <math.h> int main (void) { double c= 12.5; // kg/s double g = 9.8; // m/s double m = 68.1; // kgs double vt[200]; // velocity ...

strange function definition in Scilab<->C interface

Hi there, I'am talking about this example of a Scilab<->C wrapper: http://www.scilab.org/doc/intro/node89.html. The strange part is this one: int intsfoubare(fname) char *fname; { ....(some code) } It is some kind of function defintion but I really don't understand what the char *fname is good for also just fname as par...

Solution to overdetermined systems

How to find solution to overdetermined systems in Macsyma, Scilab, Octave? ...

Scilab - limit to the number of digits

hello! my project is to create a program that will test whether a number is prime or not. the code is ready. but when i enter a 19 digit prime for example, the code immediately outputs "composite". i'm quite sure it is because it treats the last few digits of the number as zeroes. is there a way to store more than 16 digits in scilab? ...

What is the meaning of a dollar symbol ($) in SciLab?

What is the meaning of a dollar symbol ($) in SciLab? EDIT: What I meant was dollar symbol used in indexing lists. I assumed that's the single use of it. ...

Can I directly use Java source code directly in SCILAB, or Is there another way to connect both?

Hi, a friend of mine uses SCILAB for doing his mathematicall "homework" for his studies and he told me, that it should be possible to use Java source code diretly in SCILAB. The background is that I presented my current Java project and I would like to plot this in 3D, but I haven't done graphical output so far. And he proposed to let ...

what advantages MATLAB has over SCILAB and vice versa ?

hello 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 ...

Can anyone describe in detail how to set up javasci (SCILAB) in eclipse right, please?

hi, I am trying to set up SCILAB's javasci ineclipse for the whole day, but it's not working and I don't know, what they want to tell me with http://www.scilab.org/product/man/compile_and_run_javasci.html in included the javasci.jar in the properties/libraray so that eclipse knows the special comands but afterwards it desn't work. I co...

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 vectorise it as z = diag(X' * A * X) which wastes RAM unacceptably when X has a lot of...

How to pass a function as argument

Hi. I'm using Scilab and I'm trying to make a function like the following: function p = binary_search(myf,a,b) The target is to make a binary_search to find such p that: myf(p) = 0 in [a,b]. I want to do someting like this: root = binary_search("x^3 - 10",1,2) Where the first string is a definition of a function. The only way I f...

how to find integrals from limit -infinity to +infinity in scilab

How to find integrals from limits -infinity to +infinity in SCILAB ? ( Expression to be integrated are not directly integratable ) ...

What is the best way to capture output form scilab into a publishable format?

I am using scilab to do some simple simulation. The outcome will a number of plot and graph. What is the easiest way to capture these outputs and publish them into a pdf or ps file? Hopefully it is simple to do that I can include the boilerplate code into my scilab script itself? ...

"scicosim: error. Type 0 not yet supported for outtb." how to solve this problem?

I'm having an incomprehensible problem in Scicoslab in the last few days. I've been writing some communication blocks (to send data to an external application) for scicos in C and then wrap them with it's own code. The problem is that, even if the code is working (I've checked every output possible), scicos gives me this error message: s...

(scilab) x = [-6,6] y = 1/(1+%e^-x) why it doesn't work?

I'm trying to draw sigmoid function using this code on scilab, but the result I got is not from the equation. what's wrong with my code? x = -6:1:6; y = 1/(1+%e^-x) y = 0.0021340 0.0007884 0.0002934 0.0001113 0.0000443 0.0000196 0.0000106 0.0000072 0.0000060 0.0000055 0.0000054 0.0000053 0.0000053 http://...

replicating a matrix in the 3rd dimension in scilab

I'd like to replicate an NxM matrix into an NxMx3 matrix, i.e. have 3 copies of the input matrix in the third dimension. How do I do that? ...

return type of who_user in scilab

greetings and apologies if this is a repost (i searched this site, and i believe its not a repost, though) I work with scilab, but during a project, scilab has to deal with a large number of variables. I was wondering if i can do the following var_list = who_user(); for _var_ = var_list do if _var_ is global then writetofile(huma...