[Scilab-users] structures manipulation

2024-04-09 Thread Collewet Guylaine
Hello, Is it possible to do the same as this matlab code in scilab ? thank you in advance obj=struct(); obj.a=1; obj.b=2; obj.c=3; tmp=fieldnames(obj); for i=1:3 disp(obj.(tmp{i})); end Guylaine Collewet [cid:image001.png@01DA89BC.68CB93C0] ingénieur de recherche équipe

Re: [Scilab-users] vector operation replacing for loop

2018-11-01 Thread Collewet Guylaine
Hello, Could you try this? I think this gives the same result as with the loop I think that the matrix mat could be probably built in a smarter way V=zeros(n,1); V(1)=Z(1); expo=1:n-1; vect=[zeros(1,n-1) r.^(expo-1)]; A=makematrix_toeplitz(vect); mat=A(n:$,1:n-1);

Re: [Scilab-users] read format

2015-10-12 Thread Collewet Guylaine
Hello, Perhaps this could help (there is probably a more direct way to do it) str1="00:01:00;5.49;1"; str2=strchr(str1,';'); //str2= ";5.49;1" str3=strtok(str2,';'); // str3 = "5.49" d = strtod(str3); Regards Guylaine -Message d'origine- De : users

Re: [Scilab-users] Resolving libraries = (no subject)

2015-07-31 Thread Collewet Guylaine
, Collewet Guylaine a écrit : Hello, I want to use together two atoms modules that have some functions with the same names. Is there a way to indicate the name of the module I want to use when I call one function ? If both functions -- say fun() -- are functions written in Scilab language -- i mean none

[Scilab-users] Plotlib

2014-11-28 Thread Collewet Guylaine
Hello, I would like to plot an image using a colormap with plotlib (pcolor function) In order to zoom on the values between A and B, I use the function caxis([A B]) But I would like also the pixels with values lower than A or greater than B to be colored in white as the background Is it