Hello,
I don't know what you want to model exactly but there are several
problems in your code.
In scilab, if x is a vector, Smat*x means matrix multiplication. As
Smat is a 5x5 matrix it certainly won't work with a 96 components
vector.
If x is a scalar it is the scalar multiplication (bet
Le 29/11/2012 12:46, Lamy Alain a écrit :
Changing elements of a "global" (i.e. visible) variable in a function may be
dangerous.
A new structure or vector is created that only contains the elements that have
been changed.
I would expect the whole structure/vector to be copied locally before c
Dear users,
I would like to plot a function f(x) that contains matrix operations.
Correctly, it looks like this (obtained by Mathematica):
Do you know how to do this?
My code is:
//Löschen der Variablen
clear
//Bereinigen der Konsole
clc
// S. Lagershausen
// 29.1
Inside the Scilab functions the variables declared in the base workspace can
only be read. For write access the variable has to be defined with the
global keyword.
global A;
A = [1, 2, 3];
function fun1()
global A;
disp(A);
A(5) = 5;
disp(A);
endfunction
-->fun1
1.2.3
Hi,
Yes, but with ATOMS the package is installed in the
scilab-5.4.0/share/scilab/contrib and with everything automaticaly
configured (help...). Is it possible with your procedure ?
Best regards,
Jacques
Le 29/11/2012 09:36, michael.bau...@contrib.scilab.org a écrit :
Hi,
To create a Scil
Changing elements of a "global" (i.e. visible) variable in a function may be
dangerous.
A new structure or vector is created that only contains the elements that have
been changed.
I would expect the whole structure/vector to be copied locally before changing
part of them.
A workaround is to c
Changing elements of a "global" (i.e. visible) variable in a function may be
dangerous.
A new structure or vector is created that only contains the elements that have
been changed.
I would expect the whole structure/vector to be copied locally before changing
part of them.
A workaround is to c
On 29/11/2012 11:11, Aleksandar Dedic wrote:
Installation is not possible
Scilab-5.4.0 Setup message:
CPU SSE2 instruction are required for Scilab to run correctly.
What computer are you using?
What kind of CPU do you have?
Antoine
___
users mai
Installation is not possible
Scilab-5.4.0 Setup message:
CPU SSE2 instruction are required for Scilab to run correctly.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
Hi Samuel,
Thanks for your fast and pertinent answer.
However, it does not work really well for what I try to do.
Indeed, I would like to use
f=[c,s]
as a normal function that is being able to call something like
f(x)=[c(x),s(x)];
I assume that all the functions f,c and s share the same input
Hi,
Thanks for the input.
I did not know this syntax, but it really works !
-->[NONE, CONTINUOUS, DISCRETE, FFT] = (1, 2, 3, 4)
FFT =
4.
DISCRETE =
3.
CONTINUOUS =
2.
NONE =
1.
This sounds weird, since the "(1, 2, 3, 4)" variable has no meaning
by itself:
-->(1, 2, 3, 4
11 matches
Mail list logo