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
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);
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
, 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
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