From paul.carrico at esterline.com Fri Jun 1 11:07:10 2018 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 1 Jun 2018 09:07:10 +0000 Subject: [Scilab-users] submatrix issue Message-ID: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> Dear all I've a submatrix issue on the following example, and I do not remember (or understand) why : how can I do this ? (the goal is to extract and to store within a matrix results from an Ascii file) Thanks for any help Paul ############################################################### mode(0) clear all StartNodeLine = 1; NumberOfNodes = 100; DimCoordinates = 3; resu = rand(1000,1); tic(); NodesMatrix2 = zeros(NumberOfNodes,DimCoordinates+1); i = [1 : NumberOfNodes]'; NodesMatrix2(i,1) = evstr(resu(StartNodeLine + (DimCoordinates+2)*(i-1)+2)); i = [1 : NumberOfNodes]'.*.ones(1,DimCoordinates)'; j = ones(1,NumberOfNodes)'.*.[1 : DimCoordinates]'; k = StartNodeLine + (DimCoordinates+2)*(i-1)+3+j; a = evstr(resu(k)); NodesMatrix2(i,j+1) = evstr(resu(k)); // does not work //NodesMatrix2(i,j+1) = 1; // work(basic assignement) Duration2 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Jun 1 11:45:09 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 1 Jun 2018 11:45:09 +0200 Subject: [Scilab-users] submatrix issue In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> Message-ID: It cannot work since --> size(k) ?ans? = ?? 300.?? 1. --> length(i)*length(j) ?ans? = ?? 90000. i.e. NodesMatrix2(i,j+1) has 90000 elements and resu(k) has 300 S. Le 01/06/2018 ? 11:07, Carrico, Paul a ?crit?: > > Dear all > > I?ve a submatrix issue on the following example, and I do not remember > (or understand) why?: how can I do this?? > > (the goal is to extract and to store within a matrix results from an > Ascii file) > > Thanks for any help > > Paul > > ############################################################### > > mode(0) > > clearall > > StartNodeLine= 1; > > NumberOfNodes= 100; > > DimCoordinates= 3; > > resu= rand(1000,1); > > tic(); > > NodesMatrix2= zeros(NumberOfNodes,DimCoordinates+1); > > i= [1 : NumberOfNodes]'; NodesMatrix2(i,1) = > _evstr_(resu(StartNodeLine + (DimCoordinates+2)*(i-1)+2)); > > i= [1 : NumberOfNodes]'.*.ones(1,DimCoordinates)'; > > j= ones(1,NumberOfNodes)'.*.[1 : DimCoordinates]'; > > k= StartNodeLine + (DimCoordinates+2)*(i-1)+3+j; > > a= _evstr_(resu(k)); > > NodesMatrix2(i,j+1)= _evstr_(resu(k)); /// does not work/ > > ///NodesMatrix2(i,j+1) = 1; // work(basic assignement)/ > > Duration2= toc() > > */EXPORT CONTROL : > /**Cet email ne contient pas de donn?es techniques > This email does not contain technical data* > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Jun 1 11:58:15 2018 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 1 Jun 2018 09:58:15 +0000 Subject: [Scilab-users] [EXTERNAL] Re: submatrix issue In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> Message-ID: <3A6B7233274DB449A2A0053A47684F953F98F274@BGS-EX01.auxitrol.ad> Thanks Stephane for your answer, nonetheless: size i = size j = size k = 300. 1. And if you uncomment the line with assignment to 1, the final size is (100x4) as expected //NodesMatrix2(i,j+1) = 1; // work(basic assignment) Am I wrong to think that "evstr(resu(k)" assign the n th value of the k vector ? it has worked for "NodesMatrix2(i,j+1)" ... Paul ########################### mode(0) clear all StartNodeLine = 1; NumberOfNodes = 100; DimCoordinates = 3; resu = rand(1000,1); tic(); NodesMatrix2 = zeros(NumberOfNodes,DimCoordinates+1); //i = [1 : NumberOfNodes]'; NodesMatrix2(i,1) = evstr(resu(StartNodeLine + (DimCoordinates+2)*(i-1)+2)); i = [1 : NumberOfNodes]'.*.ones(1,DimCoordinates)'; j = ones(1,NumberOfNodes)'.*.[1 : DimCoordinates]'; k = StartNodeLine + (DimCoordinates+2)*(i-1)+3+j; a = evstr(resu(k)); //NodesMatrix2(i,j+1) = evstr(resu(k)); // does not work NodesMatrix2(i,j+1) = 1; // work Duration2 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de St?phane Mottelet Envoy? : vendredi 1 juin 2018 11:45 ? : users at lists.scilab.org Objet : [EXTERNAL] Re: [Scilab-users] submatrix issue It cannot work since --> size(k) ans = 300. 1. --> length(i)*length(j) ans = 90000. i.e. NodesMatrix2(i,j+1) has 90000 elements and resu(k) has 300 S. Le 01/06/2018 ? 11:07, Carrico, Paul a ?crit : Dear all I've a submatrix issue on the following example, and I do not remember (or understand) why : how can I do this ? (the goal is to extract and to store within a matrix results from an Ascii file) Thanks for any help Paul ############################################################### mode() clear all StartNodeLine = 1; NumberOfNodes = 100; DimCoordinates = 3; resu = rand(1000,1); tic(); NodesMatrix2 = zeros(NumberOfNodes,DimCoordinates+1); i = [1 : NumberOfNodes]'; NodesMatrix2(i,1) = evstr(resu(StartNodeLine + (DimCoordinates+2)*(i-1)+2)); i = [1 : NumberOfNodes]'.*.ones(1,DimCoordinates)'; j = ones(1,NumberOfNodes)'.*.[1 : DimCoordinates]'; k = StartNodeLine + (DimCoordinates+2)*(i-1)+3+j; a = evstr(resu(k)); NodesMatrix2(i,j+1) = evstr(resu(k)); // does not work //NodesMatrix2(i,j+1) = 1; // work(basic assignement) Duration2 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data _______________________________________________ users mailing list users at lists.scilab.org https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Fri Jun 1 11:55:07 2018 From: antoine.monmayrant at laas.fr (antoine monmayrant) Date: Fri, 1 Jun 2018 11:55:07 +0200 Subject: [Scilab-users] submatrix issue In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> Message-ID: Hello, What do you wan to achieve exactly? As St?phane pointed out, the sizes are not the same. When you assign something like: A=B; You have two different situations: 1) size(A)==size(B) 2) size(B)=[1,1] In the first case, you assign each element of B to each element of A. In the latter case (which corresponds to your commented line), B is just a scalar that gets assigned to each element of A. In the current situation, you are neither in case 1) nor in case 2). As you have size(NodesMatrix2(i,j+1))=[300,300] and size(resu(k))=[300,1], you might want to replicate resu(k) 300 times and fill NodesMatrix2(i,j+1) with these 300 copies. If this what you want to do, here is the code: NodesMatrix2(i,j+1)=resu(k)*ones(1,300); By the way, why do you use "evstr(resu(k))" instead of "resu(k)"? Antoine Le 01/06/2018 ? 11:45, St?phane Mottelet a ?crit?: > It cannot work since > > --> size(k) > ?ans? = > > ?? 300.?? 1. > > > --> length(i)*length(j) > ?ans? = > > ?? 90000. > > i.e. NodesMatrix2(i,j+1) has 90000 elements and resu(k) has 300 > > S. > > Le 01/06/2018 ? 11:07, Carrico, Paul a ?crit?: >> >> Dear all >> >> I?ve a submatrix issue on the following example, and I do not >> remember (or understand) why?: how can I do this?? >> >> (the goal is to extract and to store within a matrix results from an >> Ascii file) >> >> Thanks for any help >> >> Paul >> >> ############################################################### >> >> mode(0) >> >> clearall >> >> StartNodeLine= 1; >> >> NumberOfNodes= 100; >> >> DimCoordinates= 3; >> >> resu= rand(1000,1); >> >> tic(); >> >> NodesMatrix2= zeros(NumberOfNodes,DimCoordinates+1); >> >> i= [1 : NumberOfNodes]'; NodesMatrix2(i,1) = >> _evstr_(resu(StartNodeLine + (DimCoordinates+2)*(i-1)+2)); >> >> i= [1 : NumberOfNodes]'.*.ones(1,DimCoordinates)'; >> >> j= ones(1,NumberOfNodes)'.*.[1 : DimCoordinates]'; >> >> k= StartNodeLine + (DimCoordinates+2)*(i-1)+3+j; >> >> a= _evstr_(resu(k)); >> >> NodesMatrix2(i,j+1)= _evstr_(resu(k)); /// does not work/ >> >> ///NodesMatrix2(i,j+1) = 1; // work(basic assignement)/ >> >> Duration2= toc() >> >> */EXPORT CONTROL : >> /**Cet email ne contient pas de donn?es techniques >> This email does not contain technical data* >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >> > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Jun 1 12:46:00 2018 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 1 Jun 2018 10:46:00 +0000 Subject: [Scilab-users] [EXTERNAL] Re: submatrix issue In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> Message-ID: <3A6B7233274DB449A2A0053A47684F953F98F296@BGS-EX01.auxitrol.ad> Evstr(resu(k)) is a paste error - I'm reading an asci file :) Without using a loop, I would like to get the n th component of the vector resu(k) ... k is no more no less than the index of specific lines I'm trying to get ... Through your answers I'm understanding that I'm thinking on a bad way Paul EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de antoine monmayrant Envoy? : vendredi 1 juin 2018 11:55 ? : users at lists.scilab.org Objet : [EXTERNAL] Re: [Scilab-users] submatrix issue Hello, What do you wan to achieve exactly? As St?phane pointed out, the sizes are not the same. When you assign something like: A=B; You have two different situations: 1) size(A)==size(B) 2) size(B)=[1,1] In the first case, you assign each element of B to each element of A. In the latter case (which corresponds to your commented line), B is just a scalar that gets assigned to each element of A. In the current situation, you are neither in case 1) nor in case 2). As you have size(NodesMatrix2(i,j+1))=[300,300] and size(resu(k))=[300,1], you might want to replicate resu(k) 300 times and fill NodesMatrix2(i,j+1) with these 300 copies. If this what you want to do, here is the code: NodesMatrix2(i,j+1)=resu(k)*ones(1,300); By the way, why do you use "evstr(resu(k))" instead of "resu(k)"? Antoine Le 01/06/2018 ? 11:45, St?phane Mottelet a ?crit : It cannot work since --> size(k) ans = 300. 1. --> length(i)*length(j) ans = 90000. i.e. NodesMatrix2(i,j+1) has 90000 elements and resu(k) has 300 S. Le 01/06/2018 ? 11:07, Carrico, Paul a ?crit : Dear all I've a submatrix issue on the following example, and I do not remember (or understand) why : how can I do this ? (the goal is to extract and to store within a matrix results from an Ascii file) Thanks for any help Paul ############################################################### mode(0) clearall StartNodeLine= 1; NumberOfNodes= 100; DimCoordinates= 3; resu= rand(1000,1); tic(); NodesMatrix2= zeros(NumberOfNodes,DimCoordinates+1); i= [1 : NumberOfNodes]'; NodesMatrix2(i,1) = _evstr_(resu(StartNodeLine + (DimCoordinates+2)*(i-1)+2)); i= [1 : NumberOfNodes]'.*.ones(1,DimCoordinates)'; j= ones(1,NumberOfNodes)'.*.[1 : DimCoordinates]'; k= StartNodeLine + (DimCoordinates+2)*(i-1)+3+j; a= _evstr_(resu(k)); NodesMatrix2(i,j+1)= _evstr_(resu(k)); /// does not work/ ///NodesMatrix2(i,j+1) = 1; // work(basic assignement)/ Duration2= toc() */EXPORT CONTROL : /**Cet email ne contient pas de donn?es techniques This email does not contain technical data* _______________________________________________ users mailing list users at lists.scilab.org https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Fri Jun 1 13:52:27 2018 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Fri, 1 Jun 2018 13:52:27 +0200 Subject: [Scilab-users] [EXTERNAL] Re: submatrix issue In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F98F296@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953F98F296@BGS-EX01.auxitrol.ad> Message-ID: Le 01/06/2018 ? 12:46, Carrico, Paul a ?crit?: > > Evstr(resu(k)) is a paste error - I?m reading an asci file J > > Without using a loop, I would like to get the n th component of the > vector resu(k) ? k is no more no less than the index of specific lines > I?m trying to get ? > > Through your answers I?m understanding that I?m thinking on a bad way > I think you can achieve what you want to do without a for loop. But my feeling is that there is something wrong with the way you index your matrix NodesMatrix2(i,j+1) and your results resu(k). When you index with "i" and "j+1" that are vectors of length N & M, you are basically indexing NxM elements of you matrix. This seems to be the core of the issue here. Maybe? indexing your matrix like a vector (ie NodesMatrix2(p) with p in [1:length(NodesMatrix2)]) would be better. Antoine > Paul > > */EXPORT CONTROL : > /**Cet email ne contient pas de donn?es techniques > This email does not contain technical data* > > *De?:*users [mailto:users-bounces at lists.scilab.org] *De la part de* > antoine monmayrant > *Envoy??:* vendredi 1 juin 2018 11:55 > *??:* users at lists.scilab.org > *Objet?:* [EXTERNAL] Re: [Scilab-users] submatrix issue > > Hello, > > What do you wan to achieve exactly? > As St?phane pointed out, the sizes are not the same. > When you assign something like: > > A=B; > > You have two different situations: > > 1) size(A)==size(B) > 2) size(B)=[1,1] > > In the first case, you assign each element of B to each element of A. > In the latter case (which corresponds to your commented line), B is > just a scalar that gets assigned to each element of A. > > In the current situation, you are neither in case 1) nor in case 2). > As you have size(NodesMatrix2(i,j+1))=[300,300] and > size(resu(k))=[300,1], you might want to replicate resu(k) 300 times > and fill NodesMatrix2(i,j+1) with these 300 copies. If this what you > want to do, here is the code: > > NodesMatrix2(i,j+1)=resu(k)*ones(1,300); > > By the way, why do you use "evstr(resu(k))" instead of "resu(k)"? > > Antoine > > Le 01/06/2018 ? 11:45, St?phane Mottelet a ?crit?: > > It cannot work since > > --> size(k) > ?ans? = > > ?? 300.?? 1. > > > --> length(i)*length(j) > ?ans? = > > ?? 90000. > > i.e. NodesMatrix2(i,j+1) has 90000 elements and resu(k) has 300 > > S. > > Le 01/06/2018 ? 11:07, Carrico, Paul a ?crit?: > > > Dear all > > I?ve a submatrix issue on the following example, and I do not > remember (or understand) why?: how can I do this?? > > (the goal is to extract and to store within a matrix results from > an Ascii file) > > Thanks for any help > > Paul > > ############################################################### > > mode(0) > > clearall > > StartNodeLine= 1; > > NumberOfNodes= 100; > > DimCoordinates= 3; > > resu= rand(1000,1); > > tic(); > > NodesMatrix2= zeros(NumberOfNodes,DimCoordinates+1); > > i= [1 : NumberOfNodes]'; NodesMatrix2(i,1) = > _evstr_(resu(StartNodeLine + (DimCoordinates+2)*(i-1)+2)); > > i= [1 : NumberOfNodes]'.*.ones(1,DimCoordinates)'; > > j= ones(1,NumberOfNodes)'.*.[1 : DimCoordinates]'; > > k= StartNodeLine + (DimCoordinates+2)*(i-1)+3+j; > > a= _evstr_(resu(k)); > > NodesMatrix2(i,j+1)= _evstr_(resu(k)); /// does not work/ > > ///NodesMatrix2(i,j+1) = 1; // work(basic assignement)/ > > Duration2= toc() > > */EXPORT CONTROL : > /**Cet email ne contient pas de donn?es techniques > This email does not contain technical data* > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Fri Jun 1 17:56:18 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 1 Jun 2018 15:56:18 +0000 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: References: <1b44e4b4-a924-06f2-b4ee-c1c416008947@free.fr> <8f751180-20e9-3c28-83d2-f6801271caf6@free.fr> Message-ID: Hi Samuel, The implementation below of the circular fractional shift function seems to suffer from less endpoints? artefacts. // START OF CODE // Circular fractional shift (R.Guerra, 01-Jun-2018) function v=cfshift(y, s) // y: 1D series of real values // s: shift, decimal number of samples // v: y series shifted by s samples N0 = length(y); y2 = [y y($:-1:1)]; // make input even and continuous N = length(y2); m = N/2; dw = -%i*2*%pi/N; ix1 = 1:m; ix = [0, ix1, -ix1(m-1:-1:1)]; s = modulo(s,N0); lph = exp(ix*dw*s); v0 = real((ifft(fft(y2).*lph))); n0 = floor(s); if n0>=0 then v = [v0(N0+1:N0+n0) v0(n0+1:N0)]; else v = [v0(1:N0+n0) v0(N+n0+1:N)]; end endfunction clf n = 30; // number of input samples x = 1:n; // domain of the series, with unit sampling rate sn = -33; // ex.1: negative integer shift (modulo(sn,n) = -3) sp = 10.5; // ex.2: positive fractional shift y = cos(1.8*%pi*(x-10)/n); // ex. of input series with discontinuous at endpoints vi = cfshift(y, sn); vf = cfshift(y, sp); plot(x,y,'blacko',x,y,'black--',x,vi,'bo',x,vi,'b--',x,vf,'ro',x,vf,'r--'); xgrid title("Original series with circular integer shift = " + string(sn) + " (blue) and circular fractional shift = " + string(sp) +" (red)", "fontsize",4); gca().data_bounds = [0.5,-1.1;n+0.5,1.1] gca().tight_limits="on"; // END OF CODE Not sure if this is the best way to implement this. Also, it requires generalization to complex numbers and multi-dimensions. Regards, Rafael -------------- next part -------------- A non-text attachment was scrubbed... Name: fractional_circular_shifts_1d.png Type: image/png Size: 32779 bytes Desc: fractional_circular_shifts_1d.png URL: From jrafaelbguerra at hotmail.com Sat Jun 2 15:23:33 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 2 Jun 2018 13:23:33 +0000 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: References: <1b44e4b4-a924-06f2-b4ee-c1c416008947@free.fr> <8f751180-20e9-3c28-83d2-f6801271caf6@free.fr> Message-ID: The previous fractional shift code was still not handling properly the endpoints. Herein an improvement. Fourier is still used but the sample laying between end and start points is interpolated. // START OF CODE // Circular fractional shift (R.Guerra, rev1, 02-Jun-2018) function v=cfshift(y, s) // y: 1D series values // s: shift, decimal number of samples // v: y series shifted by s samples N0 = length(y); y2 = [y y($:-1:1)]; // make input even and continuous N = length(y2); m = N/2; dw = -%i*2*%pi/N; ix1 = 1:m; ix = [0, ix1, -ix1(m-1:-1:1)]; s = modulo(s,N0); lph = exp(ix*dw*s); v0 = real((ifft(fft(y2).*lph))); n0 = floor(s); xi = s - n0; yi = y(1) + xi*(y($)-y(1)); //interpolates sample between end and start if n0>=0 then v = [v0(N0+1:N0+n0) yi v0(n0+2:N0)]; else v = [v0(1:N0+n0) yi v0(N+n0+2:N)]; end endfunction clf n = 30; // number of input samples x = 1:n; // domain of the series, with unit sampling rate sn = -33; // ex.1: negative integer shift (modulo(sn,n) = -3) sp = 10.5; // ex.2: positive fractional shift y = cos(1.8*%pi*(x-10)/n); // input series, discontinuous at endpoints vi = cfshift(y, sn); vf = cfshift(y, sp); plot(x,y,'blacko',x,y,'black--',x,vi,'bo',x,vi,'b--',x,vf,'ro',x,vf,'r--'); xgrid title("Original series (black), with circular integer shift = " + string(sn) + " (blue) and circular fractional shift = " + string(sp) +" (red)", "fontsize",4); gca().data_bounds = [0.5,-1.1;n+0.5,1.1] gca().tight_limits="on"; // END OF CODE Regards, Rafael -------------- next part -------------- A non-text attachment was scrubbed... Name: fractional_circular_shifts_1d_rev1.png Type: image/png Size: 40010 bytes Desc: fractional_circular_shifts_1d_rev1.png URL: From j.s.strom at hslmg.de Sat Jun 2 22:31:23 2018 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sat, 02 Jun 2018 22:31:23 +0200 Subject: [Scilab-users] Fill plot line properties into a list Message-ID: <5B12FE9B.30006@hslmg.de> Hello Scilab intimates, The lines Cspec=list('Color','r','thickness',5); plot(1:5,Cspec(:)) are functional, but the lines Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); plot([1:5],Cspec(:)) are not. What has to be changed? I would like to use line specifying lists as function input arguments. Kind regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun Jun 3 01:33:06 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 2 Jun 2018 23:33:06 +0000 Subject: [Scilab-users] Fill plot line properties into a list In-Reply-To: <5B12FE9B.30006@hslmg.de> References: <5B12FE9B.30006@hslmg.de> Message-ID: Hi Jen, Several of the arguments you would like to use do not seem to be valid GlobalProperty members for plot(). Maybe you could use a function that takes as input a proper graphics handle and your list. Herein a quick and dirty example: //START OF CODE function gce_list(h, list0) n = length(list0); if modulo(n,2)<>0 then printf("\nIncorrect number of GlobalProperty arguments!\n") return; end for i=1:n/2 h(list0(2*i-1)) = list0(2*i); end endfunction x=1:10; plot(x); h=gce().children; Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',10); gce_list(h,Cspec) //END OF CODE Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Sun Jun 3 10:15:26 2018 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sun, 03 Jun 2018 10:15:26 +0200 Subject: [Scilab-users] Fill plot line properties into a list In-Reply-To: References: <5B12FE9B.30006@hslmg.de> Message-ID: <5B13A39E.8010405@hslmg.de> Hi Rafael, Thanks! Not as simple as I hoped, but it works. Regards Jens ------------------------------------------------------------------------------------------------------------------------------ Am 03.06.2018 01:33, schrieb Rafael Guerra: > > Hi Jen, > > Several of the arguments you would like to use do not seem to be valid > GlobalProperty members for plot(). > > Maybe you could use a function that takes as input a proper graphics > handle and your list. > > Herein a quick and dirty example: > > ///START OF CODE/ > function _gce_list_(*h*,*list0*) > n = length(*list0*); > if modulo(n,2)<>0 then > printf("\nIncorrect number ofGlobalProperty arguments!\n") > return; > end > for i=1:n/2 > *h*(*list0*(2*i-1)) = *list0*(2*i); > end > endfunction > > x=1:10; > plot(x); > h=gce().children; > Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',10); > _gce_list_(h,Cspec) > ///END OF CODE/ > > Regards, > > Rafael > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Jun 3 10:44:19 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 3 Jun 2018 10:44:19 +0200 Subject: [Scilab-users] Fill plot line properties into a list In-Reply-To: <5B12FE9B.30006@hslmg.de> References: <5B12FE9B.30006@hslmg.de> Message-ID: <1369d720-d486-b115-967f-005f18be9671@free.fr> Hello Jens, Le 02/06/2018 ? 22:31, Jens Simon Strom a ?crit : > Hello Scilab intimates, > > The lines > > Cspec=list('Color','r','thickness',5); > plot(1:5,Cspec(:)) > > are functional, but the lines > > Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); > > plot([1:5],Cspec(:)) > > are not. What has to be changed? > > I would like to use line specifying lists as function input arguments. As a workaround, you may use the following: plot(1:5) Cspec = list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); set(gce().children, Cspec(:)) Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Jun 3 11:26:06 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 3 Jun 2018 11:26:06 +0200 Subject: [Scilab-users] Fill plot line properties into a list In-Reply-To: <5B12FE9B.30006@hslmg.de> References: <5B12FE9B.30006@hslmg.de> Message-ID: <964b4cae-3ae8-710b-7782-f84fe4fdcdba@free.fr> Le 02/06/2018 ? 22:31, Jens Simon Strom a ?crit : > Hello Scilab intimates, > > The lines > > Cspec=list('Color','r','thickness',5); > plot(1:5,Cspec(:)) > > are functional, but the lines > > Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); > > plot([1:5],Cspec(:)) > > are not. What has to be changed? > > I would like to use line specifying lists as function input arguments. Presently, plot() accepts only "plot-like" properties names and values. I agree that this is an issue, due to some wishes to make Scilab just a shadow of another language. plot-like equivalences exist for some properties, but not for all, and some features are not documented. The following code works and does what you aim to do: Cspec = list('linestyle','none','marker','+','markforeground','r','marksize',5); plot([1:5],Cspec(:)) Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun Jun 3 15:56:59 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 3 Jun 2018 13:56:59 +0000 Subject: [Scilab-users] [EXTERNAL] Re: submatrix issue In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F98F296@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953F98F296@BGS-EX01.auxitrol.ad> Message-ID: Paul, Does your input ASCII file have N-lines with 3-values on each row: X1 Y1 Z1 X2 Y2 Z2 ... or instead, does it have one value per row over Nx3 rows: X1 Y1 Z1 X2 Y2 Z2 ... ? Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Sun Jun 3 18:09:48 2018 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sun, 03 Jun 2018 18:09:48 +0200 Subject: [Scilab-users] Fill plot line properties into a list In-Reply-To: <964b4cae-3ae8-710b-7782-f84fe4fdcdba@free.fr> References: <5B12FE9B.30006@hslmg.de> <964b4cae-3ae8-710b-7782-f84fe4fdcdba@free.fr> Message-ID: <5B1412CC.3080607@hslmg.de> Great,Samuel! Now my script looks much better. Thanks with kind regards Jens --------------------------------------------------------------------- Am 03.06.2018 11:26, schrieb Samuel Gougeon: > Le 02/06/2018 ? 22:31, Jens Simon Strom a ?crit : >> Hello Scilab intimates, >> >> The lines >> >> Cspec=list('Color','r','thickness',5); >> plot(1:5,Cspec(:)) >> >> are functional, but the lines >> >> Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); >> >> plot([1:5],Cspec(:)) >> >> are not. What has to be changed? >> >> I would like to use line specifying lists as function input arguments. > > Presently, plot() accepts only "plot-like" properties names and values. > I agree that this is an issue, due to some wishes to make Scilab just > a shadow of another language. > > plot-like equivalences exist for some properties, but not for all, and > some features are not documented. > The following code works and does what you aim to do: > > Cspec = > list('linestyle','none','marker','+','markforeground','r','marksize',5); > plot([1:5],Cspec(:)) > > Regards > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sun Jun 3 21:58:00 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 03 Jun 2018 21:58:00 +0200 Subject: [Scilab-users] [EXTERNAL] Re: submatrix issue In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F98F20D@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953F98F296@BGS-EX01.auxitrol.ad> Message-ID: Hi Rafael, Thanks for your interest,; I think I was wrong in my way of using 3 vectors at the same time, To answer to your question, the structure is N = Node number 2/3 = number of coordinates (2 for 2D and 3 for 3D obviously) X Y (Z) if in 3D [same structure for all the nodes] Obviously I can use a loop, but vectorization is more efficient; I was thinking on a generic code that works for all the configuration .. the silmpliest way is to check since the beginning if we are in 3D or not, and to add anorther line if necessary: - one vector to get the node number - one for X and one for Y if we are in 3D, then a new vector dealing to Z will be added I'll have a look on it tomorrow :-) Regards Paul Le 2018-06-03 15:56, Rafael Guerra a ?crit : > Paul, > > Does your input ASCII file have N-lines with 3-values on each row: > > X1 Y1 Z1 > > X2 Y2 Z2 > > ? > > or instead, does it have one value per row over Nx3 rows: > > X1 > > Y1 > > Z1 > > X2 > > Y2 > > Z2 > > ? > > ? > > Regards, > > Rafael > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Tue Jun 5 11:17:46 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 5 Jun 2018 09:17:46 +0000 Subject: [Scilab-users] Empty matrix Message-ID: Hello, Thanks to the discussion started by Samuel and the document provided by Rafael (de Boor 1990) (see http://mailinglists.scilab.org/Scilab-users-Is-cond-0-or-1-bug-15579-td4037987.html ) I discovered this astonishing mathematical object: the empty matrix. Our only use of this in Scilab is the validity of limit cases. If we don't have to test the emptiness of a matrix, it makes the life easier. However, we also expect that the behavior of such matrices is consistent with the linear algebra. ========== Linear algebra of empty matrices ========== So a few elements: let us consider a field K (usually K is ? or ?). The zero vector space is K^0 = {0}. This is the most trivial vector space, its dimension is 0 (geometrically it is a point). Let us now consider E, a K-vector space of dimension n. There is one unique linear map from E to K^0 which can be represented by the n ? 0 empty matrix. There is also a unique linear map from K^0 to E which can be represented by the 0 ? n empty matrix. And there is a unique linear map from K^0 to K^0 which is represented by the 0 ? 0 empty matrix. The product of the 0 ? n matrix by a n ? p matrix is the 0 ? p empty matrix. The product of a m ? n matrix by the n ? 0 matrix is the m ? 0 empty matrix. The product of the m ? 0 matrix by the 0 ? p matrix is the zeros(m, p) matrix. So the product of two empty matrices is not always an empty matrix? Additionally: the 0 ? 0 empty matrix is Id0, the identity of K^0. It is thus a regular matrix. As the identity, it explains why det([]) = 1 and why some considere that cond([]) = 1 (as for any identity matrix) although it breaks the formula using the norms. ========== About Scilab ========== Scilab consider only one empty matrix, the 0 ? 0, denoted []. The following features are correct: sum([]) == 0 // identity element of addition prod([]) == 1 // identity element of product, also convention for the empty product inv([]) == [] []^-1 == [] // but a warning message shows up cond([]) == 1 // however this is imho more a matter of conventions and 0 is also correct []\[] == [] []/[] == [] linsolve([], []) == []// but a warning message shows up []\[0] == [] [0]/[] == [] linsolve([], [0]) == [] The following features are obviously wrong and misleading: det([]) == 0 // should be 1 linsolve([], [1 1]) == -1 // or can someone explain this result The following features are algebraically wrong but are acceptable as rules to process special cases such as a result of find(), e.g. find(a Hello, I noticed that saving graphs with legends was not reliable. Loading the graph in exactly the same environment results in a figure without readable legend. More specifically, the legend is almost always stowed in the upper left corner of the window, with all its components stacked on top of each other. In addition, even if the legend is initially in the top axis level "Axis(1)", after loading it appears in the tree in "Axis(2)", i.e. behind the graph. So that moving back the legend to its original (X,Y) position does not allow to see it until gcf().children(1).filled="off" is issued. Moving the legend using the "Axis properties" window is somehow possible by changing the "Data bounds" fields of the "Axis Options", but it is hard to tell what is the effect of the variable in each field. In addition, the units are not linked to anything relevant (always 0 for the first field and 0.001 for the second field ? same for X and Y). It looks like in general only the difference between the second field and the first field matters. g_test=scf(); x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); plot2d(x',[y;z]',style=1:2) legends(['Sin','Cos'],1:2,"ur") // Now, I save the figure in a file, // clear it, // and load it again, to notice that the legend escaped from its original place, not being able to read it. // Legend recovery: g_test.children(1).filled="off"; // and then it may be necessary to play with the "Data Bounds" of Axis(2), X or Y (or both). I am using SciLab 6.0.0 (64 bits) on Windows 7 and a more recent version on Linux (64 bits), and both show this behavior. With SciLab 5.5.0 on Windows 7, after loading the figure, the legend slips away as well, but it is still in Axis(1); thus, g_test.children(1).filled="off" is not necessary. And moving back the legend to its original position is achieved by setting the Data Bounds to 0 and 0.001 on both X and Y axes. . This behaviour looks so strange to me that I have spent a lot of time trying to figure out how to avoid it... without success. Best regards Denis [@@ THALES GROUP INTERNAL @@] Unit? Mixte de Physique CNRS / THALES 1 Avenue Augustin Fresnel 91767 Palaiseau CEDEx - France Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78 e-mail : denis.crete at thalesgroup.com http://www.trt.thalesgroup.com/ump-cnrs-thales http://www.research.thalesgroup.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Jun 5 13:05:13 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 5 Jun 2018 13:05:13 +0200 Subject: [Scilab-users] Legends of saved SciLab graphs slip away In-Reply-To: <20d02dcbd0854fb9bb2e0a82ccb268f3@thalesgroup.com> References: <20d02dcbd0854fb9bb2e0a82ccb268f3@thalesgroup.com> Message-ID: <65365d19-8107-5bd8-f54b-2514c8abc556@free.fr> Hello Denis, I am not able to reproduce the behavior that you describe, neither with 6.0.0 nor with 6.0.1 on Windows7 64 bits: g_test=scf(); x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); plot2d(x',[y;z]',style=1:2) legends(['Sin','Cos'],1:2,"ur") // with an _s_, as in your post twinkle(gcf().children(1)) save("fig0.dat","g_test") xdel(gcf().figure_id) load fig0.dat twinkle(gcf().children(1)) The legend is correctly restored, at the expected position, with the expected filled property set to "on", with its handle at the expected first position among figure's children. I did not try yet on Linux. Regards Samuel Le 05/06/2018 ? 12:15, CRETE Denis a ?crit : > > Hello, > > I noticed that saving graphs with legends was not reliable. Loading > the graph in exactly the same environment results in a figure without > readable legend. More specifically, the legend is almost always stowed > in the upper left corner of the window, with all its components > stacked on top of each other. > > In addition, even if the legend is initially in the top axis level > ?Axis(1)?, after loading it appears in the tree in ?Axis(2)?, i.e. > behind the graph. So that moving back the legend to its original (X,Y) > position does not allow to see it until gcf().children(1).filled=?off? > is issued. > > Moving the legend using the ?Axis properties? window is somehow > possible by changing the ?Data bounds? fields of the ?Axis Options?, > but it is hard to tell what is the effect of the variable in each > field. In addition, the units are not linked to anything relevant > (always 0 for the first field and 0.001 for the second field ? same > for X and Y). It looks like in general only the difference between the > second field and the first field matters. > > g_test=scf(); > > x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); > > plot2d(x',[y;z]',style=1:2) > > legends(['Sin','Cos'],1:2,"ur") > > // Now, I save the figure in a file, > > // clear it, > > // and load it again, to notice that the legend escaped from its > original place, not being able to read it. > > // Legend recovery: > > g_test.children(1).filled="off"; > > // and then it may be necessary to play with the ?Data Bounds? of > Axis(2), X or Y (or both). > > I am using SciLab 6.0.0 (64 bits) on Windows 7 and a more recent > version on Linux (64 bits), and both show this behavior. With SciLab > 5.5.0 on Windows 7, after loading the figure, the legend slips away as > well, but it is still in Axis(1); thus, > g_test.children(1).filled="off" is not necessary. And moving back the > legend to its original position is achieved by setting the Data Bounds > to 0 and 0.001 on both X and Y axes. > > . > > This behaviour looks so strange to me that I have spent a lot of time > trying to figure out how to avoid it? without success. > > Best regards > > Denis > > [@@ THALES GROUP INTERNAL @@] > > Unit? Mixte de Physique CNRS / THALES > > 1 Avenue Augustin Fresnel > > 91767 Palaiseau CEDEx - France > > Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78 > > e-mail : > > denis.crete at thalesgroup.com > > > http://www.trt.thalesgroup.com/ump-cnrs-thales > > http://www.research.thalesgroup.com > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Tue Jun 5 23:41:53 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 5 Jun 2018 21:41:53 +0000 Subject: [Scilab-users] Empty matrix In-Reply-To: References: Message-ID: Hi Christophe, Quite impressive summary. Fyi, the following reference on empty matrices algebra is extremelly good (and it even refers to de Boor memo and some previous ideas on the subject): Nett, C. N. and W. M. Haddad [1993] "A system-theoretic appropriate realization of the empty matrix concept," IEEE Transactions on Automatic Control, vol. 38, no. 5, pp. 771-775 Nett and Haddad define empty matrices of size []mxn and argue that "the empty matrix concept has the potential to provide an elegant, general means for transparently handling special cases in matrix formulas corresponding to the absence of one or more of the matrices involved." Another interesting message from that article: " ... we have purposely avoided any and all discussion of anything but the purely algebraic properties of empty matrices. For example, we have purposely not discussed the determinant, eigenvalues, singular values, or norm of an empty matrix. The reason for this is because we feel strongly that the empty matrix concept has utility only from a purely algebraic standpoint. Note, however, that determinants, eigenvalues, singular values, and norms of empty matrices are considered in the current version of MATLAB." Regards, Rafael From denis.crete at thalesgroup.com Wed Jun 6 12:57:50 2018 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Wed, 6 Jun 2018 10:57:50 +0000 Subject: [Scilab-users] Legends of saved SciLab graphs slip away In-Reply-To: <65365d19-8107-5bd8-f54b-2514c8abc556@free.fr> References: <20d02dcbd0854fb9bb2e0a82ccb268f3@thalesgroup.com> <65365d19-8107-5bd8-f54b-2514c8abc556@free.fr> Message-ID: <51b900e6000a414ea7a45c265aa37bbb@thalesgroup.com> Hello, Thank you for your quick answer. I could get a correct behaviour with your code. However, if you run this part of the code: g_test=scf(); x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); plot2d(x',[y;z]',style=1:2) legends(['Sin','Cos'],1:2,"ur") // with an _s_, as in your post twinkle(gcf().children(1)) save("fig0.dat","g_test") xdel(gcf().figure_id) and terminate with the command: g_man=scf(); Now from the (empty) graphic window I click on "File"/"Load" and type in "*.dat" + select "fig0.dat" then, I end up with the legend in the background (and thus invisible until I issue the console command g_man.children(1).filled="off"... Note that the box is at the right location in the window; it is invisible only because it is in the background. The same behaviour is observed both on Windows and Linux platforms. I still could not figure out under what circumstances the legends slip away in the top left corner... Best regards Denis De : users [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon Envoy? : mardi 5 juin 2018 13:05 ? : Users mailing list for Scilab Objet : Re: [Scilab-users] Legends of saved SciLab graphs slip away Hello Denis, I am not able to reproduce the behavior that you describe, neither with 6.0.0 nor with 6.0.1 on Windows7 64 bits: g_test=scf(); x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); plot2d(x',[y;z]',style=1:2) legends(['Sin','Cos'],1:2,"ur") // with an _s_, as in your post twinkle(gcf().children(1)) save("fig0.dat","g_test") xdel(gcf().figure_id) load fig0.dat twinkle(gcf().children(1)) The legend is correctly restored, at the expected position, with the expected filled property set to "on", with its handle at the expected first position among figure's children. I did not try yet on Linux. Regards Samuel Le 05/06/2018 ? 12:15, CRETE Denis a ?crit : Hello, I noticed that saving graphs with legends was not reliable. Loading the graph in exactly the same environment results in a figure without readable legend. More specifically, the legend is almost always stowed in the upper left corner of the window, with all its components stacked on top of each other. In addition, even if the legend is initially in the top axis level "Axis(1)", after loading it appears in the tree in "Axis(2)", i.e. behind the graph. So that moving back the legend to its original (X,Y) position does not allow to see it until gcf().children(1).filled="off" is issued. Moving the legend using the "Axis properties" window is somehow possible by changing the "Data bounds" fields of the "Axis Options", but it is hard to tell what is the effect of the variable in each field. In addition, the units are not linked to anything relevant (always 0 for the first field and 0.001 for the second field ? same for X and Y). It looks like in general only the difference between the second field and the first field matters. g_test=scf(); x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); plot2d(x',[y;z]',style=1:2) legends(['Sin','Cos'],1:2,"ur") // Now, I save the figure in a file, // clear it, // and load it again, to notice that the legend escaped from its original place, not being able to read it. // Legend recovery: g_test.children(1).filled="off"; // and then it may be necessary to play with the "Data Bounds" of Axis(2), X or Y (or both). I am using SciLab 6.0.0 (64 bits) on Windows 7 and a more recent version on Linux (64 bits), and both show this behavior. With SciLab 5.5.0 on Windows 7, after loading the figure, the legend slips away as well, but it is still in Axis(1); thus, g_test.children(1).filled="off" is not necessary. And moving back the legend to its original position is achieved by setting the Data Bounds to 0 and 0.001 on both X and Y axes. . This behaviour looks so strange to me that I have spent a lot of time trying to figure out how to avoid it... without success. Best regards Denis [@@ THALES GROUP INTERNAL @@] Unit? Mixte de Physique CNRS / THALES 1 Avenue Augustin Fresnel 91767 Palaiseau CEDEx - France Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78 e-mail : denis.crete at thalesgroup.com http://www.trt.thalesgroup.com/ump-cnrs-thales http://www.research.thalesgroup.com _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Wed Jun 6 15:29:44 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 6 Jun 2018 13:29:44 +0000 Subject: [Scilab-users] Wrapped numeric input files Message-ID: Dear Scilab'ers, Has anyone come across wrapped numeric input files, where the data spans over thousands of lines? It takes ages using loops to read data like in example below with 20 input curves with index support from 1 to 4200 spreading over >20,000 lines: 1 12 0 3 2 -29 130 130 256 248 129 0 123 247 12 1 3 4 4 4 3 2 10 0 3 2 -2 132 132 250 245 127 0 122 244 12 1 3 4 4 3 4 .... .... 4200 1 2 3 2 -9 132 112 25 145 17 0 122 214 112 1 3 4 4 1 1 4 Any tips are welcome. Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-philippe.grivet at wanadoo.fr Wed Jun 6 16:46:38 2018 From: jean-philippe.grivet at wanadoo.fr (Jean-Philippe Grivet) Date: Wed, 6 Jun 2018 16:46:38 +0200 Subject: [Scilab-users] orthogonal polynomials In-Reply-To: References: Message-ID: Hello, I wish to use orthogonal polynmials within Scilab. Axxording to "ttps://atoms.scilab.org/toolboxes/Ortpol",? I do ???? atomsInstall('Ortpol') and I get the answer atomsInstallList: The package "Ortpol" is not registered. Please check on the ATOMS repository that it is available for Scilab 6.0 on Windows. If it is, run atomsSystemUpdate() before trying atomsInstall(..) again. Where did I go wrong ? Is there a workaround ? Thank you in advance for your help. Jean-Philippe Grivet --- L'absence de virus dans ce courrier ?lectronique a ?t? v?rifi?e par le logiciel antivirus Avast. https://www.avast.com/antivirus From jrafaelbguerra at hotmail.com Wed Jun 6 18:12:10 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 6 Jun 2018 16:12:10 +0000 Subject: [Scilab-users] Wrapped numeric input files In-Reply-To: References: Message-ID: Never mind previous question, these files can be read very fast with the function mfscanf(). Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Jun 6 20:58:03 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 6 Jun 2018 20:58:03 +0200 Subject: [Scilab-users] Legends of saved SciLab graphs slip away In-Reply-To: <51b900e6000a414ea7a45c265aa37bbb@thalesgroup.com> References: <20d02dcbd0854fb9bb2e0a82ccb268f3@thalesgroup.com> <65365d19-8107-5bd8-f54b-2514c8abc556@free.fr> <51b900e6000a414ea7a45c265aa37bbb@thalesgroup.com> Message-ID: Hello Denis, Le 06/06/2018 ? 12:57, CRETE Denis a ?crit : > > Hello, > > Thank you for your quick answer. > > I could get a correct behaviour with your code. However, if you run > this part of the code: > > g_test=scf(); > x=-1:0.01:1; y=sin(2*%pi*x); z=cos(2*%pi*x); > plot2d(x',[y;z]',style=1:2) > legends(['Sin','Cos'],1:2,"ur") // with an _s_, as in your post > twinkle(gcf().children(1)) > save("fig0.dat","g_test") > > xdel(gcf().figure_id) > > and terminate with the command: > > g_man=scf(); > > Now from the (empty) graphic window I click on ?File?/?Load? and type > in ?*.dat? + select ?fig0.dat?then, I end up with the legend in the > background (and thus invisible until I issue the console command > g_man.children(1).filled=?off?? > Confirmed. Thanks for reporting this issue. It shall be fixed in Scilab 6.0.2 with https://codereview.scilab.org/20125 Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Jun 6 21:21:40 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 6 Jun 2018 21:21:40 +0200 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: References: <1b44e4b4-a924-06f2-b4ee-c1c416008947@free.fr> <8f751180-20e9-3c28-83d2-f6801271caf6@free.fr> Message-ID: <136cf01e-fb35-0848-29f7-4f11965bd417@free.fr> Hello Rafael, I did not remember this symetrization trick that you use to restore continuous boundaries and so avoid the noise-making jump. It is very efficient. Great! I don't see any reason that could make this trick failing with complex numbers: Making the signal even makes its spectrum even, whatever is the signal, real or complex. So, the very same algorithm shall work as well for complex data. Extension to N-Dimension should be OK as well with the fft(., ., selection) syntax, and a loop other the selected direction. May be because the slope is still discontinuous, there is still a tiny artefact after shifting. This may invite to still try with a damping window, in comparison with the symetrization. Damping makes the signal and its derivative continuous across limits. I am answering to your next message by replying to it. Best regards Samuel Le 01/06/2018 ? 17:56, Rafael Guerra a ?crit : > Hi Samuel, > > The implementation below of the circular fractional shift function seems to suffer from less endpoints? artefacts. > > // START OF CODE > // Circular fractional shift (R.Guerra, 01-Jun-2018) > > function v=cfshift(y, s) > // y: 1D series of real values > // s: shift, decimal number of samples > // v: y series shifted by s samples > N0 = length(y); > y2 = [y y($:-1:1)]; // make input even and continuous > N = length(y2); > m = N/2; > dw = -%i*2*%pi/N; > ix1 = 1:m; > ix = [0, ix1, -ix1(m-1:-1:1)]; > s = modulo(s,N0); > lph = exp(ix*dw*s); > v0 = real((ifft(fft(y2).*lph))); > n0 = floor(s); > if n0>=0 then > v = [v0(N0+1:N0+n0) v0(n0+1:N0)]; > else > v = [v0(1:N0+n0) v0(N+n0+1:N)]; > end > endfunction > > clf > n = 30; // number of input samples > x = 1:n; // domain of the series, with unit sampling rate > sn = -33; // ex.1: negative integer shift (modulo(sn,n) = -3) > sp = 10.5; // ex.2: positive fractional shift > y = cos(1.8*%pi*(x-10)/n); // ex. of input series with discontinuous at endpoints > vi = cfshift(y, sn); > vf = cfshift(y, sp); > plot(x,y,'blacko',x,y,'black--',x,vi,'bo',x,vi,'b--',x,vf,'ro',x,vf,'r--'); > xgrid > title("Original series with circular integer shift = " + string(sn) + " (blue) and circular fractional shift = " + string(sp) +" (red)", "fontsize",4); > gca().data_bounds = [0.5,-1.1;n+0.5,1.1] > gca().tight_limits="on"; > > // END OF CODE > > > Not sure if this is the best way to implement this. > Also, it requires generalization to complex numbers and multi-dimensions. > > Regards, > Rafael > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Jun 6 21:35:27 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 6 Jun 2018 21:35:27 +0200 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: References: <1b44e4b4-a924-06f2-b4ee-c1c416008947@free.fr> <8f751180-20e9-3c28-83d2-f6801271caf6@free.fr> Message-ID: Rafael, To me, this attempt looks not legitimate. Indeed, the true original signal HAS a steep jump across its edges. So, the best algorithm should shift the signal and *keep this big slope** **from one sample to the next*. The jump is /*at least*/ as steep as from one sample to the next (and likely steeper). It must not be broadened. There is no reason to interpolate and then decrease the slope. Is there? IMO, hybridating DFT and interpolation is not promising, and DFT looks more powerful. So, to me, now the question is mainly: with symetrization, versus with damping. Read you soon Samuel Le 02/06/2018 ? 15:23, Rafael Guerra a ?crit : > The previous fractional shift code was still not handling properly the endpoints. > Herein an improvement. > Fourier is still used but the sample laying between end and start points is interpolated. > > // START OF CODE > // Circular fractional shift (R.Guerra, rev1, 02-Jun-2018) > > function v=cfshift(y, s) > // y: 1D series values > // s: shift, decimal number of samples > // v: y series shifted by s samples > N0 = length(y); > y2 = [y y($:-1:1)]; // make input even and continuous > N = length(y2); > m = N/2; > dw = -%i*2*%pi/N; > ix1 = 1:m; > ix = [0, ix1, -ix1(m-1:-1:1)]; > s = modulo(s,N0); > lph = exp(ix*dw*s); > v0 = real((ifft(fft(y2).*lph))); > n0 = floor(s); > xi = s - n0; > yi = y(1) + xi*(y($)-y(1)); //interpolates sample between end and start > if n0>=0 then > v = [v0(N0+1:N0+n0) yi v0(n0+2:N0)]; > else > v = [v0(1:N0+n0) yi v0(N+n0+2:N)]; > end > endfunction > > clf > n = 30; // number of input samples > x = 1:n; // domain of the series, with unit sampling rate > sn = -33; // ex.1: negative integer shift (modulo(sn,n) = -3) > sp = 10.5; // ex.2: positive fractional shift > y = cos(1.8*%pi*(x-10)/n); // input series, discontinuous at endpoints > > vi = cfshift(y, sn); > vf = cfshift(y, sp); > > plot(x,y,'blacko',x,y,'black--',x,vi,'bo',x,vi,'b--',x,vf,'ro',x,vf,'r--'); > xgrid > title("Original series (black), with circular integer shift = " + string(sn) + " (blue) and circular fractional shift = " + string(sp) +" (red)", "fontsize",4); > gca().data_bounds = [0.5,-1.1;n+0.5,1.1] > gca().tight_limits="on"; > > // END OF CODE > > Regards, > Rafael > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Wed Jun 6 22:18:36 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 6 Jun 2018 20:18:36 +0000 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: References: <1b44e4b4-a924-06f2-b4ee-c1c416008947@free.fr> <8f751180-20e9-3c28-83d2-f6801271caf6@free.fr> Message-ID: Samuel, The idea and the implementation of the end-points interpolation is that this is done on the input data (big slope), not on the FFT output. Maybe be it needs some further work. Tbc. Regards, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Wednesday, June 06, 2018 9:35 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] circshift() : Scilab Enhancement Proposal Rafael, To me, this attempt looks not legitimate. Indeed, the true original signal HAS a steep jump across its edges. So, the best algorithm should shift the signal and keep this big slope from one sample to the next. The jump is at least as steep as from one sample to the next (and likely steeper). It must not be broadened. There is no reason to interpolate and then decrease the slope. Is there? IMO, hybridating DFT and interpolation is not promising, and DFT looks more powerful. So, to me, now the question is mainly: with symetrization, versus with damping. Read you soon Samuel Le 02/06/2018 ? 15:23, Rafael Guerra a ?crit : The previous fractional shift code was still not handling properly the endpoints. Herein an improvement. Fourier is still used but the sample laying between end and start points is interpolated. // START OF CODE // Circular fractional shift (R.Guerra, rev1, 02-Jun-2018) function v=cfshift(y, s) // y: 1D series values // s: shift, decimal number of samples // v: y series shifted by s samples N0 = length(y); y2 = [y y($:-1:1)]; // make input even and continuous N = length(y2); m = N/2; dw = -%i*2*%pi/N; ix1 = 1:m; ix = [0, ix1, -ix1(m-1:-1:1)]; s = modulo(s,N0); lph = exp(ix*dw*s); v0 = real((ifft(fft(y2).*lph))); n0 = floor(s); xi = s - n0; yi = y(1) + xi*(y($)-y(1)); //interpolates sample between end and start if n0>=0 then v = [v0(N0+1:N0+n0) yi v0(n0+2:N0)]; else v = [v0(1:N0+n0) yi v0(N+n0+2:N)]; end endfunction clf n = 30; // number of input samples x = 1:n; // domain of the series, with unit sampling rate sn = -33; // ex.1: negative integer shift (modulo(sn,n) = -3) sp = 10.5; // ex.2: positive fractional shift y = cos(1.8*%pi*(x-10)/n); // input series, discontinuous at endpoints vi = cfshift(y, sn); vf = cfshift(y, sp); plot(x,y,'blacko',x,y,'black--',x,vi,'bo',x,vi,'b--',x,vf,'ro',x,vf,'r--'); xgrid title("Original series (black), with circular integer shift = " + string(sn) + " (blue) and circular fractional shift = " + string(sp) +" (red)", "fontsize",4); gca().data_bounds = [0.5,-1.1;n+0.5,1.1] gca().tight_limits="on"; // END OF CODE Regards, Rafael _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Wed Jun 6 22:38:39 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 6 Jun 2018 20:38:39 +0000 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: References: <1b44e4b4-a924-06f2-b4ee-c1c416008947@free.fr> <8f751180-20e9-3c28-83d2-f6801271caf6@free.fr> Message-ID: Noting also that between the endpoints of the DFT periodic input, there is the interval of one sample. From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: Wednesday, June 06, 2018 10:19 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] circshift() : Scilab Enhancement Proposal Samuel, The idea and the implementation of the end-points interpolation is that this is done on the input data (big slope), not on the FFT output. Maybe be it needs some further work. Tbc. Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Jun 7 14:32:16 2018 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 7 Jun 2018 14:32:16 +0200 (CEST) Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: Message-ID: <1386045880.100602933.1528374736141.JavaMail.root@zimbra75-e12.priv.proxad.net> >Samuel, > >The idea and the implementation of the end-points interpolation is that >this is done on the input data (big slope), not on the FFT output. This is clear >Maybe be it needs some further work. Tbc. I don't think so. >Noting also that between the endpoints of the DFT periodic input, there is the interval of one sample. That is to say: Let u(1:$) be the original signal. Since it is virtually periodic, the FFT sees u($+1)=u(1). Do we agree about this? Then: Do we agree on that the |slope| across the shifted edges of u is necessarily greater or equal to |u($)-u(1)|/1 ? From jrafaelbguerra at hotmail.com Thu Jun 7 15:04:30 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 7 Jun 2018 13:04:30 +0000 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: <1386045880.100602933.1528374736141.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1386045880.100602933.1528374736141.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Hi Samuel, Fyi, many DFT references recommend averaging the values at endpoints and discontinuities in general. See for instance: Briggs, W. L. and V. E. Henson [1005] The DFT: an owner's manual for the Discrete Fourier Transform, SIAM, Philadelphia. I think my solution is simple and it looks harmless to me. At least the results look reasonable for different amounts of fractional shifts tested. But I will keep studying the subject. Maybe some expert on the matter can jump in. Note sure about your last question as many scenarios can be thought of, of continuous functions with discontinuities and their sampled versions. I can think of cases where the slope can be < |u($)-u(1)|/1 Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of sgougeon at free.fr Sent: Thursday, June 07, 2018 2:32 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] circshift() : Scilab Enhancement Proposal >Samuel, > >The idea and the implementation of the end-points interpolation is that >this is done on the input data (big slope), not on the FFT output. This is clear >Maybe be it needs some further work. Tbc. I don't think so. >Noting also that between the endpoints of the DFT periodic input, there is the interval of one sample. That is to say: Let u(1:$) be the original signal. Since it is virtually periodic, the FFT sees u($+1)=u(1). Do we agree about this? Then: Do we agree on that the |slope| across the shifted edges of u is necessarily greater or equal to |u($)-u(1)|/1 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rudolf.lehn at sfz-bw.de Fri Jun 8 14:08:38 2018 From: rudolf.lehn at sfz-bw.de (RudiLehn) Date: Fri, 8 Jun 2018 05:08:38 -0700 (MST) Subject: [Scilab-users] legend lets disappear my plot Message-ID: <1528459718860-0.post@n3.nabble.com> Hi friends with scilab, in many plots I can without problems put a legend in my graphic. But now I made plot, which doesn't accept anymore the legend? I make from my complicate math a subset with a very simple result and show here the program with the legend problem: clear; // Variablen l?schen clf(); // bisherige Grafik l?schen alpha = [0: %pi/100 : %pi/2] // Teilterme sina = sin(alpha)^2; // Legende zum Schaubild legend("$R_p \cdot R_p^*$",2); a = gca(); a.grid = [1,1]; a.x_location = "origin"; a.y_location = "origin"; a.auto_scale="off"; a.data_bounds = [0,0; %pi/2, 0.5]; Rp2 = sin(alpha) * 0.1; plot2d(alpha,Rp2) What could be wrong with the script? Thanks for help Regards Rudi -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jonas.vieira.de.souza at gmail.com Fri Jun 8 14:13:35 2018 From: jonas.vieira.de.souza at gmail.com (Jonas) Date: Fri, 8 Jun 2018 09:13:35 -0300 Subject: [Scilab-users] legend lets disappear my plot In-Reply-To: <1528459718860-0.post@n3.nabble.com> References: <1528459718860-0.post@n3.nabble.com> Message-ID: Put your legend(...) after plot2d(...) . Jonas Vieira de Souza ** Graduating in electronic engineering* jonas.vieira.de.souza at gmail.com +55(48)9.9944-3117 Em sex, 8 de jun de 2018 ?s 09:09, RudiLehn escreveu: > Hi friends with scilab, > in many plots I can without problems put a legend in my graphic. But now I > made plot, which doesn't accept anymore the legend? I make from my > complicate math a subset with a very simple result and show here the > program > with the legend problem: > > clear; // Variablen l?schen > clf(); // bisherige Grafik l?schen > alpha = [0: %pi/100 : %pi/2] > // Teilterme > sina = sin(alpha)^2; > // Legende zum Schaubild > legend("$R_p \cdot R_p^*$",2); > a = gca(); > a.grid = [1,1]; > a.x_location = "origin"; > a.y_location = "origin"; > a.auto_scale="off"; > a.data_bounds = [0,0; %pi/2, 0.5]; > > Rp2 = sin(alpha) * 0.1; > plot2d(alpha,Rp2) > > What could be wrong with the script? > > Thanks for help > > Regards > Rudi > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rudolf.Lehn at sfz-bw.de Fri Jun 8 14:26:11 2018 From: Rudolf.Lehn at sfz-bw.de (Rudolf Lehn) Date: Fri, 8 Jun 2018 12:26:11 +0000 Subject: [Scilab-users] legend lets disappear my plot In-Reply-To: References: <1528459718860-0.post@n3.nabble.com> Message-ID: <3E57D2AD-D8A0-450A-9EF0-47C7938E9652@sfz-bw.de> Hi Jonas, you had a perfect idea. Thank you very much. May be it is always better to put all the graphic things after the plot2d command. Regards Rudi Am 08.06.2018 um 14:13 schrieb Jonas >: Put your legend(...) after plot2d(...) . [https://raw.githubusercontent.com/jvsouza/abc/master/assets/img/tecnnova_user.png]Jonas Vieira de Souza * Graduating in electronic engineering [https://raw.githubusercontent.com/jvsouza/abc/master/assets/img/tecnnova_mail.png]jonas.vieira.de.souza at gmail.com [https://raw.githubusercontent.com/jvsouza/abc/master/assets/img/tecnnova_phone.png]+55(48)9.9944-3117 Em sex, 8 de jun de 2018 ?s 09:09, RudiLehn > escreveu: Hi friends with scilab, in many plots I can without problems put a legend in my graphic. But now I made plot, which doesn't accept anymore the legend? I make from my complicate math a subset with a very simple result and show here the program with the legend problem: clear; // Variablen l?schen clf(); // bisherige Grafik l?schen alpha = [0: %pi/100 : %pi/2] // Teilterme sina = sin(alpha)^2; // Legende zum Schaubild legend("$R_p \cdot R_p^*$",2); a = gca(); a.grid = [1,1]; a.x_location = "origin"; a.y_location = "origin"; a.auto_scale="off"; a.data_bounds = [0,0; %pi/2, 0.5]; Rp2 = sin(alpha) * 0.1; plot2d(alpha,Rp2) What could be wrong with the script? Thanks for help Regards Rudi -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Jun 9 12:11:02 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 9 Jun 2018 12:11:02 +0200 Subject: [Scilab-users] orthogonal polynomials In-Reply-To: References: Message-ID: <8a164ba7-3883-6945-da6f-608bb8fe7773@free.fr> Hello, Le 06/06/2018 ? 16:46, Jean-Philippe Grivet a ?crit : > Hello, > > I wish to use orthogonal polynmials within Scilab. Axxording to > "ttps://atoms.scilab.org/toolboxes/Ortpol", I do > > atomsInstall('Ortpol') > > and I get the answer > > atomsInstallList: The package "Ortpol" is not registered. > Please check on the ATOMS repository that it is available for Scilab > 6.0 on Windows. > If it is, run atomsSystemUpdate() before trying atomsInstall(..) again. As the message suggests it, you have checked on the ATOMS repository that Ortpol was not available for Scilab 6.0 on Windows. > > Where did I go wrong ? Is there a workaround ? Thank you in advance > for your help. Ortpol is now ported to Scilab 6.0 (+ some examples fixed). You may do: atomsSystemUpdate() atomsInstall Ortpol exit // Start a new session atomsLoad Ortpol Samuel From jean-philippe.grivet at wanadoo.fr Sat Jun 9 18:59:25 2018 From: jean-philippe.grivet at wanadoo.fr (Jean-Philippe Grivet) Date: Sat, 9 Jun 2018 18:59:25 +0200 Subject: [Scilab-users] orthogonal polynomials In-Reply-To: <8a164ba7-3883-6945-da6f-608bb8fe7773@free.fr> References: <8a164ba7-3883-6945-da6f-608bb8fe7773@free.fr> Message-ID: Thank you Samuel. However, there are some remaining bugs !When I launch Scilab, I ger the following d=series of messages: Start Linalg Start Makematrix Start Specfun Start Helptbx Start Distfun Start Stixbox Start Apifun ??? Load macros ??? Load help ??? Type "help apifun_overview" for quick start. Start Ortpol ??? Load macros ??? Load help ??? Load demos ??? Type "help ortpol_overview" for quick start. ??? Type "demo_gui()" and search for "Ortpol" for Demonstrations. So far so good. I type help ort?l_overview and I am redirected to the last help^page I l consulted ("disp" in the present case). Back to the console, I write demo_gui() and chose ortpoly in the popup menu. Scilab replies ? la ligne?? -11 du fichier ex?cut? C:\Users\grivet\AppData\Local\SCILAB~1.1\contrib\Ortpol\0315DD~1.1\demos\Ortpol.dem.gateway.sce ? la ligne??? 41 de la fonction demo_gui_update ( C:\Users\grivet\AppData\Local\scilab-6.0.1\modules\demo_tools\macros\demo_gui_update.sci ligne 58 ) get_absolute_file_path : Le fichier ortpol.dem.gateway.sce n'est pas ouvert dans Scilab. Further question: What should I do to uninstall these modules ? JP Grivet Le 09/06/2018 ? 12:11, Samuel Gougeon a ?crit?: > Hello, > > Le 06/06/2018 ? 16:46, Jean-Philippe Grivet a ?crit : >> Hello, >> >> I wish to use orthogonal polynmials within Scilab. Axxording to >> "ttps://atoms.scilab.org/toolboxes/Ortpol",? I do >> >> ???? atomsInstall('Ortpol') >> >> and I get the answer >> >> atomsInstallList: The package "Ortpol" is not registered. >> Please check on the ATOMS repository that it is available for Scilab >> 6.0 on Windows. >> If it is, run atomsSystemUpdate() before trying atomsInstall(..) again. > > As the message suggests it, you have checked on the ATOMS repository that > Ortpol was not available for Scilab 6.0 on Windows. > >> >> Where did I go wrong ? Is there a workaround ? Thank you in advance >> for your help. > > Ortpol is now ported to Scilab 6.0 (+ some examples fixed). You may do: > > atomsSystemUpdate() > atomsInstall Ortpol > exit > // Start a new session > atomsLoad Ortpol > > > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- L'absence de virus dans ce courrier ?lectronique a ?t? v?rifi?e par le logiciel antivirus Avast. https://www.avast.com/antivirus From sgougeon at free.fr Sat Jun 9 19:10:53 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 9 Jun 2018 19:10:53 +0200 Subject: [Scilab-users] orthogonal polynomials In-Reply-To: References: <8a164ba7-3883-6945-da6f-608bb8fe7773@free.fr> Message-ID: <531602f9-4efe-b49c-e39e-3c56c4997645@free.fr> Le 09/06/2018 ? 18:59, Jean-Philippe Grivet a ?crit : > Thank you Samuel. However, there are some remaining bugs !When I > launch Scilab, I ger the following d=series of messages: > > Start Linalg > Start Makematrix > Start Specfun > Start Helptbx > Start Distfun > Start Stixbox > Start Apifun > Load macros > Load help > Type "help apifun_overview" for quick start. > Start Ortpol > Load macros > Load help > Load demos > Type "help ortpol_overview" for quick start. > Type "demo_gui()" and search for "Ortpol" for Demonstrations. > > So far so good. I type help ort?l_overview and I am redirected to the > last help^page I l consulted ("disp" in the present case). You must close and reopen the help browser, to make it aware of the new loaded modules and their documentation. > Back to the console, I write demo_gui() and chose ortpoly in the popup > menu. Scilab replies > > ? la ligne -11 du fichier ex?cut? > C:\Users\grivet\AppData\Local\SCILAB~1.1\contrib\Ortpol\0315DD~1.1\demos\Ortpol.dem.gateway.sce > ? la ligne 41 de la fonction demo_gui_update ( > C:\Users\grivet\AppData\Local\scilab-6.0.1\modules\demo_tools\macros\demo_gui_update.sci > ligne 58 ) > get_absolute_file_path : Le fichier ortpol.dem.gateway.sce n'est pas > ouvert dans Scilab. I get the same error, indeed. Please report it on the Ortpol forge. > > Further question: What should I do to uninstall these modules ? Which ones? Linalg to Apifun, that you did not required? There are dependencies of Ortpol. If you uninstall them, some Ortpol code will fail. To uninstall Ortpol: --> atomsRemove Ortpol This will also uninstall its dependencies, provided that they are not used by some other modules installed intentionnaly. Samuel From sgougeon at free.fr Sat Jun 9 19:40:54 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 9 Jun 2018 19:40:54 +0200 Subject: [Scilab-users] orthogonal polynomials In-Reply-To: References: <8a164ba7-3883-6945-da6f-608bb8fe7773@free.fr> Message-ID: <715feebe-11a7-11c7-c30f-b315079d52d6@free.fr> Le 09/06/2018 ? 18:59, Jean-Philippe Grivet a ?crit : > Thank you Samuel. However, there are some remaining bugs !When I > launch Scilab, I ger the following d=series of messages: > > Start Linalg > Start Makematrix > Start Specfun > Start Helptbx > Start Distfun > Start Stixbox > Start Apifun > Load macros > Load help > Type "help apifun_overview" for quick start. > Start Ortpol > Load macros > Load help > Load demos > Type "help ortpol_overview" for quick start. > Type "demo_gui()" and search for "Ortpol" for Demonstrations. > > So far so good. I type help ort?l_overview and I am redirected to the > last help^page I l consulted ("disp" in the present case). Back to the > console, I write demo_gui() and chose ortpoly in the popup menu. > Scilab replies > > ? la ligne -11 du fichier ex?cut? > C:\Users\grivet\AppData\Local\SCILAB~1.1\contrib\Ortpol\0315DD~1.1\demos\Ortpol.dem.gateway.sce > ? la ligne 41 de la fonction demo_gui_update ( > C:\Users\grivet\AppData\Local\scilab-6.0.1\modules\demo_tools\macros\demo_gui_update.sci > ligne 58 ) > get_absolute_file_path : Le fichier ortpol.dem.gateway.sce n'est pas > ouvert dans Scilab. This is now fixed in the 0.3.2 version. You may do --> atomsSystemUpdate(); atomsUpdate Ortpol From arctica1963 at gmail.com Sun Jun 10 12:51:29 2018 From: arctica1963 at gmail.com (Lester Anderson) Date: Sun, 10 Jun 2018 11:51:29 +0100 Subject: [Scilab-users] Coding for a 3D Klein Bottle Message-ID: Hello all, I have been testing the latest version of Scilab (6.0.1) and have been looking at data visualisation of non-orientatable surfaces (e.g. Moebius, Klein Bottle etc.). The Moebius strip was not hard to figure out, but I am having issues with the Klein Bottle.I have attched the code as is so far, uses the parametric equations from https://en.wikipedia.org/wiki/Klein_bottle, for the 3D immersion of the bottle. As a test, I used the old software Derive 6 to run the equations and it plots the bottle as correct. If anyone has pointers on this code that would be helpful. Still learning Scilab! Thanks Lester -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Klein.sce Type: application/octet-stream Size: 719 bytes Desc: not available URL: From sgougeon at free.fr Sun Jun 10 13:18:05 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 10 Jun 2018 13:18:05 +0200 Subject: [Scilab-users] Coding for a 3D Klein Bottle In-Reply-To: References: Message-ID: <8d7ed26d-162a-a583-17b2-5ad792f915f6@free.fr> Hello Lester, The code was just missing many dots (* => .*, ^ = .^), to make operators working in an elementwise way (see attachement). Fixing that makes the expected picture: This could make a nice demo, in the /Graphics => More surfaces/ section. Regards Samuel Le 10/06/2018 ? 12:51, Lester Anderson a ?crit : > Hello all, > > I have been testing the latest version of Scilab (6.0.1) and have been > looking at data visualisation of non-orientatable surfaces (e.g. > Moebius, Klein Bottle etc.). > > The Moebius strip was not hard to figure out, but I am having issues > with the Klein Bottle.I have attched the code as is so far, uses the > parametric equations from https://en.wikipedia.org/wiki/Klein_bottle, > for the 3D immersion of the bottle. > > As a test, I used the old software Derive 6 to run the equations and > it plots the bottle as correct. If anyone has pointers on this code > that would be helpful. > > Still learning Scilab! > > Thanks > Lester > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: amfakkjmogmnhkoj.png Type: image/png Size: 23476 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Klein.sce Type: application/x-scilab-sce Size: 746 bytes Desc: not available URL: From arctica1963 at gmail.com Sun Jun 10 17:18:32 2018 From: arctica1963 at gmail.com (Lester Anderson) Date: Sun, 10 Jun 2018 16:18:32 +0100 Subject: [Scilab-users] Coding for a 3D Klein Bottle In-Reply-To: <8d7ed26d-162a-a583-17b2-5ad792f915f6@free.fr> References: <8d7ed26d-162a-a583-17b2-5ad792f915f6@free.fr> Message-ID: Thanks Samual! This is all good learning practice. Cheers, Lester On 12:19, Sun, 10 Jun 2018 Samuel Gougeon, wrote: > Hello Lester, > > The code was just missing many dots (* => .*, ^ = .^), to make operators > working in an elementwise way (see attachement). > Fixing that makes the expected picture: > > This could make a nice demo, in the *Graphics => More surfaces* section. > > Regards > Samuel > > > Le 10/06/2018 ? 12:51, Lester Anderson a ?crit : > > Hello all, > > I have been testing the latest version of Scilab (6.0.1) and have been > looking at data visualisation of non-orientatable surfaces (e.g. Moebius, > Klein Bottle etc.). > > The Moebius strip was not hard to figure out, but I am having issues with > the Klein Bottle.I have attched the code as is so far, uses the parametric > equations from https://en.wikipedia.org/wiki/Klein_bottle, for the 3D > immersion of the bottle. > > As a test, I used the old software Derive 6 to run the equations and it > plots the bottle as correct. If anyone has pointers on this code that would > be helpful. > > Still learning Scilab! > > Thanks > Lester > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: amfakkjmogmnhkoj.png Type: image/png Size: 23476 bytes Desc: not available URL: From fs.andre at gmail.com Sun Jun 10 19:21:41 2018 From: fs.andre at gmail.com (=?UTF-8?B?QW5kcsOpIEZT?=) Date: Sun, 10 Jun 2018 14:21:41 -0300 Subject: [Scilab-users] Xcos Scilab 6.0.1 Message-ID: Hello guys. I am building a model in Xcos (Scilab 6.0.1) and I am facing some problems that I am not sure if they are bugs or misuse from my side. * When a select a piece of the model and turn it to a superblock (right click -> selection to superblock), after playing the simulation I got a message error on console which says "invalid index". Then I realized that all the edges (lines) linking the blocks were like "doubled". Deleting all of them and redoing the links made it work well; * The block *Expression* from the pallette "user defined functions" requires that I create dummy variables u1, u2, u3, ... on my context of variables. I thought it would be unecessary. -- Andr? Ferreira da Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Mon Jun 11 09:47:42 2018 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 11 Jun 2018 08:47:42 +0100 Subject: [Scilab-users] Possible bug: export to JPEG Message-ID: Hi all, I am using Scilab 6.0.1 and there seems to be an issue with export to JPEG (low or high resolution). See attached low-res image. Tested this using xs2jpg and export figure from the graphic. Other export options seem to be fine, PNG has no problem. Cheers Lester -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Klein_Bottle1.jpg Type: image/jpeg Size: 29080 bytes Desc: not available URL: From amonmayr at laas.fr Mon Jun 11 09:54:41 2018 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Mon, 11 Jun 2018 09:54:41 +0200 Subject: [Scilab-users] Possible bug: export to JPEG In-Reply-To: References: Message-ID: <7a7dc191-b0ca-331f-2ea0-92e603a36c68@laas.fr> Hello Lester, It might be unrelated, but at some point, there was an issue with displayed or exported graphics being pink or reddish. It was always due to the drivers of the graphic card. Could you try to upgrade (or downgrade) your drivers? Hope it helps, Antoine Le 11/06/2018 ? 09:47, Lester Anderson a ?crit?: > Hi all, > > I am using Scilab 6.0.1 and there seems to be an issue with export to > JPEG (low or high resolution). See attached low-res image. > > Tested this using xs2jpg and export figure from the graphic. > > Other export options seem to be fine, PNG has no problem. > > Cheers > Lester > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Mon Jun 11 09:59:41 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 11 Jun 2018 09:59:41 +0200 Subject: [Scilab-users] Possible bug: export to JPEG In-Reply-To: References: Message-ID: <3f29d911-28eb-4fd6-8e91-b755a11b9a4f@utc.fr> This is a kown problem, see http://bugzilla.scilab.org/show_bug.cgi?id=14264 Le 11/06/2018 ? 09:47, Lester Anderson a ?crit?: > Hi all, > > I am using Scilab 6.0.1 and there seems to be an issue with export to > JPEG (low or high resolution). See attached low-res image. > > Tested this using xs2jpg and export figure from the graphic. > > Other export options seem to be fine, PNG has no problem. > > Cheers > Lester > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Jun 11 10:11:06 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 11 Jun 2018 08:11:06 +0000 Subject: [Scilab-users] {EXT} Re: Empty matrix In-Reply-To: References: Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de Rafael Guerra > Envoy? : mardi 5 juin 2018 23:42 > > Fyi, the following reference on empty matrices algebra is extremelly good [...] > Nett, C. N. and W. M. Haddad [1993] "A system-theoretic appropriate realization of the empty matrix concept," > IEEE Transactions on Automatic Control, vol. 38, no. 5, pp. 771-775 Thanks for this reference. It can be found here: https://haddad.gatech.edu/journal/00277245.pdf Some quotations: "The elegance afforded by the empty matrix approach can potentially be exploited to great advantage in the context of large-scale software development. Indeed, the traditional approach to special cases one must include in the software explicit checks for special cases along with appropriate provisions for each special case. This would be done for each matrix formula implemented in the software with potential for special cases of the type described above. Using the empty matrix approach, one would simply introduce the empty matrix as an object, or data type, and then code its algebraic realization. This would be done only once. Subsequent code would then be devoid of cumbersome explicit checks and provisions for special cases of the type described above." " Additionally, the examples are used to show how the empty matrix concept can be utilized to transparently handle static and/or single vector input, single vector output (SVISVO) systems within the more general context of dynamic, two vector input, two vector output (TVITVO) systems" So, it seems that having a correct algebraic handling of the empty matrixes could be of great interest for some users. I might post a wish on Bugzilla but not right now, so if someone else is willing to do this... -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From arctica1963 at gmail.com Mon Jun 11 10:30:14 2018 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 11 Jun 2018 09:30:14 +0100 Subject: [Scilab-users] Possible bug: export to JPEG In-Reply-To: <7a7dc191-b0ca-331f-2ea0-92e603a36c68@laas.fr> References: <7a7dc191-b0ca-331f-2ea0-92e603a36c68@laas.fr> Message-ID: Hi Antoine, Thanks for the info. I tested the code on a pc with nvidia card and a laptop with just a basic Intel hd graphics chip, same result but only with jpeg. PNG files work fine, would tgat be affected if it was a driver issue? Got the latest drivers. Not a big deal as I can convert the png files to jpeg. Will just save as png for now. Lester On 08:55, Mon, 11 Jun 2018 , wrote: > Hello Lester, > > It might be unrelated, but at some point, there was an issue with > displayed or exported graphics being pink or reddish. > It was always due to the drivers of the graphic card. > Could you try to upgrade (or downgrade) your drivers? > > Hope it helps, > > Antoine > > > Le 11/06/2018 ? 09:47, Lester Anderson a ?crit : > > Hi all, > > I am using Scilab 6.0.1 and there seems to be an issue with export to JPEG > (low or high resolution). See attached low-res image. > > Tested this using xs2jpg and export figure from the graphic. > > Other export options seem to be fine, PNG has no problem. > > Cheers > Lester > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > -- > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Antoine Monmayrant LAAS - CNRS > 7 avenue du Colonel Roche > BP 54200 > 31031 TOULOUSE Cedex 4 > FRANCE > > Tel:+33 5 61 33 64 59 > > email : antoine.monmayrant at laas.fr > permanent email : antoine.monmayrant at polytechnique.org > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fs.andre at gmail.com Tue Jun 12 19:35:50 2018 From: fs.andre at gmail.com (=?UTF-8?B?QW5kcsOpIEZT?=) Date: Tue, 12 Jun 2018 14:35:50 -0300 Subject: [Scilab-users] F-16 aircraft model In-Reply-To: References: Message-ID: I updated the GitHub with a full Xcos version [1]. In the Readme of the project, there is a brief explanation on how to run a basic simulation with the full model [2]. This article [3] explains the motivations behind the architecture. [1] https://github.com/fsandre/mcflight/tree/master/xcos [2] https://github.com/fsandre/mcflight [3] http://e-feather.blogspot.com/2018/05/six-dof-nonlinear-aircraft-model.html Em qui, 26 de abr de 2018 ?s 21:41, Andr? FS escreveu: > Hello, > > I recently translated the F-16 model (originally in Fortran) from Steven > And Lewis book (Aircraft Control and Simulation). The code is available at > GitHub [1]. I apologize for possible newbie mistakens that there might be > there. I am not that expert in Scilab yet. > > I used this model to illustrate the (probably) most famous > Non-Minimum-Phase Zero example of the Aeronautical Engineering, which is > described here [2]. > > Maybe this model can be useful for others in the community. > > [1] https://github.com/fsandre/mcflight > [2] > http://e-feather.blogspot.com.br/2018/04/aircraft-diving-before-climbing-or-nmp.html > > Best regards, > > Andr? Ferreira da Silva > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iwoj at il.pw.edu.pl Wed Jun 13 13:43:39 2018 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Wed, 13 Jun 2018 13:43:39 +0200 Subject: [Scilab-users] Remove duplicate rows and sustain original order of rows Message-ID: <80fa6262e442c4e3a31824e3963f0603@il.pw.edu.pl> Hi all, I can't figure out how to remove duplicate rows from the matrix and go back to the original order of rows. Function "unique" with an option "r" sorts rows in lexicographic ascending order. Thanks in advance for any help, Iza From david.cheze at cea.fr Wed Jun 13 14:00:56 2018 From: david.cheze at cea.fr (CHEZE David 227480) Date: Wed, 13 Jun 2018 12:00:56 +0000 Subject: [Scilab-users] Remove duplicate rows and sustain original order of rows In-Reply-To: <80fa6262e442c4e3a31824e3963f0603@il.pw.edu.pl> References: <80fa6262e442c4e3a31824e3963f0603@il.pw.edu.pl> Message-ID: Hi Iza, Just consider this tip from the unique help page: Extracted components, rows or columns can be resorted in their initial order by sorting k: [N, k] = unique(M); k = gsort(k,"g",i); N = N(k) [N, k] = unique(M, "c"); k = gsort(k,"g",i); N = N(:, k) [N, k] = unique(M, "r"); k = gsort(k,"g",i); N = N(k, :) Hope it helps, David -----Message d'origine----- De?: users De la part de Izabela W?jcik-Grzaba Envoy??: mercredi 13 juin 2018 13:44 ??: users at lists.scilab.org Objet?: [Scilab-users] Remove duplicate rows and sustain original order of rows Hi all, I can't figure out how to remove duplicate rows from the matrix and go back to the original order of rows. Function "unique" with an option "r" sorts rows in lexicographic ascending order. Thanks in advance for any help, Iza _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Wed Jun 13 14:41:54 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 13 Jun 2018 14:41:54 +0200 Subject: [Scilab-users] Remove duplicate rows and sustain original order of rows In-Reply-To: References: <80fa6262e442c4e3a31824e3963f0603@il.pw.edu.pl> Message-ID: Le 13/06/2018 ? 14:00, CHEZE David 227480 a ?crit?: > Hi Iza, > > Just consider this tip from the unique help page: > > Extracted components, rows or columns can be resorted in their initial order by sorting k: > [N, k] = unique(M); k = gsort(k,"g",i); N = N(k) > [N, k] = unique(M, "c"); k = gsort(k,"g",i); N = N(:, k) > [N, k] = unique(M, "r"); k = gsort(k,"g",i); N = N(k, :) > > Hope it helps, No, it does not help, since unique seems to be broken again: http://bugzilla.scilab.org/show_bug.cgi?id=15610 S. > David > > > -----Message d'origine----- > De?: users De la part de Izabela W?jcik-Grzaba > Envoy??: mercredi 13 juin 2018 13:44 > ??: users at lists.scilab.org > Objet?: [Scilab-users] Remove duplicate rows and sustain original order of rows > > Hi all, > > I can't figure out how to remove duplicate rows from the matrix and go back to the original order of rows. Function "unique" with an option "r" > sorts rows in lexicographic ascending order. > > Thanks in advance for any help, > Iza > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From sgougeon at free.fr Wed Jun 13 15:07:24 2018 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 13 Jun 2018 15:07:24 +0200 (CEST) Subject: [Scilab-users] Remove duplicate rows and sustain original order of rows In-Reply-To: Message-ID: <242178424.181205315.1528895244703.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, ----- Mail original ----- De: "CHEZE David 227480" ?: "Users mailing list for Scilab" >Hi Iza, > >Just consider this tip from the unique help page: > >Extracted components, rows or columns can be resorted in their initial order by sorting k: >[N, k] = unique(M); k = gsort(k,"g",i); N = N(k) >[N, k] = unique(M, "c"); k = gsort(k,"g",i); N = N(:, k) >[N, k] = unique(M, "r"); k = gsort(k,"g",i); N = N(k, :) I recently added this tip (in 6.0.1 doc), but it is wrong. This mistake is already fixed for SCilab 6.0.2 @ https://codereview.scilab.org/#/c/19944/3/scilab/modules/elementary_functions/help/en_US/setoperations/unique.xml Example: M = int8([2 0 2 2 1 1 1 2 1 1 0 1 1 0 1 1 0 1 2 0 1 2 2 0 1 1 2 0 1 0 0 0 ]) [uc, kc] = unique(M, "c") // Get unduplicated columns in initial order: M(:, gsort(kc,"g","i")) Samuel From iwoj at il.pw.edu.pl Wed Jun 13 15:30:45 2018 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Wed, 13 Jun 2018 15:30:45 +0200 Subject: [Scilab-users] Remove duplicate rows and sustain original order of rows In-Reply-To: <242178424.181205315.1528895244703.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <242178424.181205315.1528895244703.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <33351d2e8ed2190b8ca47222dd1a6d5a@il.pw.edu.pl> Thanks a lot all of you. The first method is fine provided that you change the last command for: N=M(k,:). I think it is the same as Samuel wrote in a shorter form. Iza W dniu 13.06.2018 15:07, sgougeon at free.fr napisa?(a): > Hello, > > ----- Mail original ----- > De: "CHEZE David 227480" > ?: "Users mailing list for Scilab" > >> Hi Iza, >> >> Just consider this tip from the unique help page: >> >> Extracted components, rows or columns can be resorted in their initial >> order by sorting k: >> [N, k] = unique(M); k = gsort(k,"g",i); N = N(k) >> [N, k] = unique(M, "c"); k = gsort(k,"g",i); N = N(:, k) >> [N, k] = unique(M, "r"); k = gsort(k,"g",i); N = N(k, :) > > I recently added this tip (in 6.0.1 doc), but it is wrong. > This mistake is already fixed for SCilab 6.0.2 @ > https://codereview.scilab.org/#/c/19944/3/scilab/modules/elementary_functions/help/en_US/setoperations/unique.xml > > Example: > M = int8([2 0 2 2 1 1 1 2 1 1 0 1 1 0 1 1 > 0 1 2 0 1 2 2 0 1 1 2 0 1 0 0 0 > ]) > [uc, kc] = unique(M, "c") > > // Get unduplicated columns in initial order: > M(:, gsort(kc,"g","i")) > > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Yves.Rambinintsoa at gmail.com Wed Jun 13 17:12:33 2018 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Wed, 13 Jun 2018 08:12:33 -0700 (MST) Subject: [Scilab-users] Create a super block through a script In-Reply-To: <1442492140766-4032849.post@n3.nabble.com> References: <1442492140766-4032849.post@n3.nabble.com> Message-ID: <1528902753739-0.post@n3.nabble.com> Dear all, after a Long break I tried to go on with this Topic. So my Intention was to create a superblock with 3 Inputs and one Input. But each time I try to run the script nothing appears. By the second run of the script the console hangs and I have to kill the Task WScilex. So no superblock appears for Scicos. Here is the code: ---------------- scs_m = scicos_diagram(); scs_m.props.title = "Test_Superblock"; //super block scs_m.objs(1) = SUPER_f("define"); scs_m.objs(1).graphics.sz = [200 200]; //create one additional input scs_m.objs(1).model.rpar.objs(4)= IN_f("define") //define input-structure //scs_m.objs(1).model.in = [2;-1;-1] //scs_m.objs(1).model.in2 = [1;-2;-2] //scs_m.objs(1).model.intyp = [2;-1;-1] scs_m.objs(1).model.in = [1;1;1] scs_m.objs(1).model.in2 = [2;2;2] scs_m.objs(1).model.intyp = [1;1;1] scs_m.objs(1).model.out =1 scs_m.objs(1).model.out2 =1 scs_m.objs(1).model.outtyp =1 xcos(scs_m) ------------------------- What is wrong with my script? Best Regards Yves -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From iwoj at il.pw.edu.pl Thu Jun 14 13:28:59 2018 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Thu, 14 Jun 2018 13:28:59 +0200 Subject: [Scilab-users] Function "locate" for 3d graphs Message-ID: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> Hello, I've got another question. Is there a function like "locate" but appropriate for param3d plot. I would like to pick some points from my param3d plot. Regards, Iza From fs.andre at gmail.com Fri Jun 15 04:12:28 2018 From: fs.andre at gmail.com (=?UTF-8?B?QW5kcsOpIEZT?=) Date: Thu, 14 Jun 2018 23:12:28 -0300 Subject: [Scilab-users] Function "locate" for 3d graphs In-Reply-To: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> References: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> Message-ID: Hi Iza, What if you use the linear_interpn [1]? [1] https://help.scilab.org/doc/5.3.3/en_US/linear_interpn.html Regards, Andr? Em qui, 14 de jun de 2018 ?s 08:30, Izabela W?jcik-Grz?ba escreveu: > Hello, > > I've got another question. Is there a function like "locate" but > appropriate for param3d plot. I would like to pick some points from my > param3d plot. > > Regards, > Iza > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Jun 15 08:49:10 2018 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Fri, 15 Jun 2018 08:49:10 +0200 Subject: [Scilab-users] Function "locate" for 3d graphs In-Reply-To: References: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> Message-ID: <71C5C1CF-98BE-48D5-9C88-DF3F80A42F57@utc.fr> Hello, Your 3D graphics is projected on 2D. How could you get points in 3D ? S. > Le 15 juin 2018 ? 04:12, Andr? FS a ?crit : > > Hi Iza, > > What if you use the linear_interpn [1]? > > [1] https://help.scilab.org/doc/5.3.3/en_US/linear_interpn.html > > Regards, > > Andr? > >> Em qui, 14 de jun de 2018 ?s 08:30, Izabela W?jcik-Grz?ba escreveu: >> Hello, >> >> I've got another question. Is there a function like "locate" but >> appropriate for param3d plot. I would like to pick some points from my >> param3d plot. >> >> Regards, >> Iza >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Jun 15 09:24:38 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 15 Jun 2018 07:24:38 +0000 Subject: [Scilab-users] {EXT} Re: Function "locate" for 3d graphs In-Reply-To: <71C5C1CF-98BE-48D5-9C88-DF3F80A42F57@utc.fr> References: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> <71C5C1CF-98BE-48D5-9C88-DF3F80A42F57@utc.fr> Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de St?phane Mottelet > Envoy? : vendredi 15 juin 2018 08:49 > > Your 3D graphics is projected on 2D. How could you get points in 3D ? This is a common feature of the CAD softwares and I think I already saw this on some data analysis software. Youv'e got an injective function between the projected points on the screen and the 3D data points. However, I don't claim it is easy to implement. I guess you can do this manually with the matrix used for the 2D projection which you can compute from the view angles. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From stephane.mottelet at utc.fr Fri Jun 15 10:48:29 2018 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Fri, 15 Jun 2018 10:48:29 +0200 Subject: [Scilab-users] {EXT} Re: Function "locate" for 3d graphs In-Reply-To: References: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> <71C5C1CF-98BE-48D5-9C88-DF3F80A42F57@utc.fr> Message-ID: Of course, if points are part of a graph it is doable. But a ? locate ? giving raw 3D coordinates has no sense... S. > Le 15 juin 2018 ? 09:24, Dang Ngoc Chan, Christophe a ?crit : > > Hello, > >> De : users [mailto:users-bounces at lists.scilab.org] De la part de St?phane Mottelet >> Envoy? : vendredi 15 juin 2018 08:49 >> >> Your 3D graphics is projected on 2D. How could you get points in 3D ? > > This is a common feature of the CAD softwares and I think I already saw this on some data analysis software. > Youv'e got an injective function between the projected points on the screen and the 3D data points. > > However, I don't claim it is easy to implement. > I guess you can do this manually with the matrix used for the 2D projection > which you can compute from the view angles. > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From iwoj at il.pw.edu.pl Fri Jun 15 14:02:27 2018 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Fri, 15 Jun 2018 14:02:27 +0200 Subject: [Scilab-users] {EXT} Re: Function "locate" for 3d graphs In-Reply-To: References: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> <71C5C1CF-98BE-48D5-9C88-DF3F80A42F57@utc.fr> Message-ID: <56f9bc082651b44095e9db9a53a149f9@il.pw.edu.pl> Yes, I thought about the situation when the points are part of the graph. As there is no such function in Scilab I will have to manage with it in a different way. Thanks all. Iza W dniu 15.06.2018 10:48, St?phane Mottelet napisa?(a): > Of course, if points are part of a graph it is doable. But a ? locate > ? giving raw 3D coordinates has no sense... > > S. > >> Le 15 juin 2018 ? 09:24, Dang Ngoc Chan, Christophe >> a ?crit : >> >> Hello, >> >>> De : users [mailto:users-bounces at lists.scilab.org] De la part de >>> St?phane Mottelet >>> Envoy? : vendredi 15 juin 2018 08:49 >>> >>> Your 3D graphics is projected on 2D. How could you get points in 3D ? >> >> This is a common feature of the CAD softwares and I think I already >> saw this on some data analysis software. >> Youv'e got an injective function between the projected points on the >> screen and the 3D data points. >> >> However, I don't claim it is easy to implement. >> I guess you can do this manually with the matrix used for the 2D >> projection >> which you can compute from the view angles. >> >> Regards >> >> -- >> Christophe Dang Ngoc Chan >> Mechanical calculation engineer >> This e-mail may contain confidential and/or privileged information. If >> you are not the intended recipient (or have received this e-mail in >> error), please notify the sender immediately and destroy this e-mail. >> Any unauthorized copying, disclosure or distribution of the material >> in this e-mail is strictly forbidden. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Fri Jun 15 14:02:39 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 15 Jun 2018 14:02:39 +0200 Subject: [Scilab-users] hist3d() puzzling rendering Message-ID: Hello, Using hist3d() -- just enter hist3d() to plot the example --, and rotating the figure in 3D (right-press and drag), we can note that the color of the different faces are not the same: 2 of the four faces are rendered with the hidden color (usually used for the internal or back faces), and the 2 other ones with the default or chosen color and color mode. I was deeming that the usage of the hidden color for 2 over 4 apparent faces is a bug . Now, i am wondering if it is not rather intentional, in order to have a kind of lighting effect. I still think that, even if it was intentional, it should rather be fixed. Now, Scilab has some explicit lighting features. But, before possibly processing the bug report, what's your opinion? Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Jun 15 14:19:15 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 15 Jun 2018 14:19:15 +0200 Subject: [Scilab-users] Function "locate" for 3d graphs In-Reply-To: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> References: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl> Message-ID: Hello Izabela, locate() is being fixed against 3 bugs in 2D @ https://codereview.scilab.org/#/c/20018/ But beyond this, you are right, it could deserve to be upgraded in order to become usable in 3D. Please do not hesitate to post a report for this wish, on bugzilla. The interactive java curve editor is already able to edit 3D curves: param3d() + right-click on the curve and edit its points. But locate() and xchange() presently work only in 2D. Regards Samuel Le 14/06/2018 ? 13:28, Izabela W?jcik-Grz?ba a ?crit : > Hello, > > I've got another question. Is there a function like "locate" but > appropriate for param3d plot. I would like to pick some points from my > param3d plot. > > Regards, > Iza > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Yves.Rambinintsoa at gmail.com Sat Jun 16 10:22:15 2018 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Sat, 16 Jun 2018 01:22:15 -0700 (MST) Subject: [Scilab-users] [Scicos] - Need advice in creation of Super Blocks via script Message-ID: <1529137335878-0.post@n3.nabble.com> Hello to the community, since days I am waiting for an answer to my post but nothing. So I Need help from experts in creating scicos super blocks via a script. Especially it is about how to create a superblock with more than two Inputs. The documentation is not precise enough and lasting resarches in internet didn't provide any answer. It's about this: scs_m.objs(1).model.in = [1;1;1] scs_m.objs(1).model.in2 = [2;2;2] Why doesn't this work? What I understand from the few documentatin is that "model.in" ist for the first dimension and "model.in2" for the second dimension. Negative numbers for ".in" and ".in2" indicate inheritance but why is it then still necessary to quantify the numbers and not just letting it by "-1". I didn't post the whole code (for this please see my posting from 13th of June 2018). Many thanks in advance. Yves -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From arctica1963 at gmail.com Sun Jun 17 00:40:28 2018 From: arctica1963 at gmail.com (Lester Anderson) Date: Sat, 16 Jun 2018 23:40:28 +0100 Subject: [Scilab-users] Compute normals to 3D surface Message-ID: Hello all, I was wondering if it was possible to compute and visualise the normals to a 3D surface in Scilab? I think Matlab has something called surfnorm;is there something similar for Scilab? I have attached the basic code for the Moebius strip, and it would be useful to showwhat happens to the normals at say z=0, but not sure how one would go about this. Perhaps this has already been solved. Cheers Lester -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Moebius.sce Type: application/octet-stream Size: 538 bytes Desc: not available URL: From stephane.mottelet at utc.fr Sun Jun 17 08:47:31 2018 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sun, 17 Jun 2018 08:47:31 +0200 Subject: [Scilab-users] Compute normals to 3D surface In-Reply-To: References: Message-ID: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr> Hello, In the Plotlib you have an equivalent function : http://forge.scilab.org/index.php/p/plotlib/source/tree/HEAD/tags/0.46/plotlib/macros/surfnorm.sci S. > Le 17 juin 2018 ? 00:40, Lester Anderson a ?crit : > > Hello all, > > I was wondering if it was possible to compute and visualise the normals to a 3D surface in Scilab? I think Matlab has something called surfnorm;is there something similar for Scilab? > > I have attached the basic code for the Moebius strip, and it would be useful to showwhat happens to the normals at say z=0, but not sure how one would go about this. Perhaps this has already been solved. > > Cheers > Lester > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From jrafaelbguerra at hotmail.com Sun Jun 17 16:51:22 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 17 Jun 2018 14:51:22 +0000 Subject: [Scilab-users] Function "locate" for 3d graphs In-Reply-To: References: <276c4e975701c0c4b7c3d330e7f8518b@il.pw.edu.pl>, Message-ID: Hi Iza, Not sure if this is what you need but I wrote the following code you can try on: // START OF CODE //From param3d datatips to data vector clear clf param3d() datatipManagerMode(gcf()) // Edit --> Start Datatip manager --> Stop Datatip manager input("ENTER to continue after stopping datatips","string") e = gce() n = size(e.datatips,1); x = zeros(n,3); for i=1:n x(i,:) = e.datatips(i).data; end // END OF CODE Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun Jun 17 19:25:47 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 17 Jun 2018 17:25:47 +0000 Subject: [Scilab-users] hist3d() puzzling rendering In-Reply-To: References: Message-ID: Hi, Preserving the color of the original hidden faces under interactive rotations, does not seem to be a bad idea. It allows assessing what parts of the objects are hidden under the original choice of view angles. The behaviour of plot3d is similar. Regards, Rafael ________________________________ From: users on behalf of Samuel Gougeon Sent: 15 June 2018 14:02 To: International users mailing list for Scilab. Subject: [Scilab-users] hist3d() puzzling rendering Hello, Using hist3d() -- just enter hist3d() to plot the example --, and rotating the figure in 3D (right-press and drag), we can note that the color of the different faces are not the same: 2 of the four faces are rendered with the hidden color (usually used for the internal or back faces), and the 2 other ones with the default or chosen color and color mode. I was deeming that the usage of the hidden color for 2 over 4 apparent faces is a bug. Now, i am wondering if it is not rather intentional, in order to have a kind of lighting effect. I still think that, even if it was intentional, it should rather be fixed. Now, Scilab has some explicit lighting features. But, before possibly processing the bug report, what's your opinion? Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Sun Jun 17 19:29:08 2018 From: arctica1963 at gmail.com (Lester Anderson) Date: Sun, 17 Jun 2018 18:29:08 +0100 Subject: [Scilab-users] Compute normals to 3D surface In-Reply-To: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr> References: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr> Message-ID: Hi St?phane, Scilab users Thanks for the information. I retrieved the surfnorm function, and the associated functions that it called internally. I still cannot figure out how it should work with the existing code;had to add the functions into the main sce file to get it doing something (not sure why!). The attached code shows where I am at so far,and a small image of what I would like to get to. [x1,y1,z1] = surfnorm(x,y,z) does generate value,but plot3d does not give a meaningful result.Perhaps I am missing something very obvious, so any pointers are great. Scilab 6.0.1 (64 bit Windows) Thanks in advance Lester On 17 June 2018 at 07:47, St?phane Mottelet wrote: > Hello, > > In the Plotlib you have an equivalent function : > > > http://forge.scilab.org/index.php/p/plotlib/source/tree/ > HEAD/tags/0.46/plotlib/macros/surfnorm.sci > > S. > > > Le 17 juin 2018 ? 00:40, Lester Anderson a > ?crit : > > > > Hello all, > > > > I was wondering if it was possible to compute and visualise the normals > to a 3D surface in Scilab? I think Matlab has something called surfnorm;is > there something similar for Scilab? > > > > I have attached the basic code for the Moebius strip, and it would be > useful to showwhat happens to the normals at say z=0, but not sure how one > would go about this. Perhaps this has already been solved. > > > > Cheers > > Lester > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLm > Zy/lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Moebius2.sce Type: application/octet-stream Size: 2259 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moebiusnormals.gif Type: image/gif Size: 6314 bytes Desc: not available URL: From sgougeon at free.fr Sun Jun 17 19:31:55 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 17 Jun 2018 19:31:55 +0200 Subject: [Scilab-users] hist3d() puzzling rendering In-Reply-To: References: Message-ID: <303693ea-125c-3d15-4489-29d9e88b8ec3@free.fr> Hello Rafael, Le 17/06/2018 ? 19:25, Rafael Guerra a ?crit : > > Hi, > > > Preserving the color of the original hidden faces under > interactive rotations, does not seem to be a bad idea. It allows > assessing what parts of the objects are hidden under the original > choice of view angles. > > /The behaviour of plot3d is similar./ > It's a plot3d() bug in 6.0 , and hist3d() uses plot3d(). hist3d() had actually 2 bugs (not one). They are fixed @ https://codereview.scilab.org/20164 Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Sun Jun 17 19:39:26 2018 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sun, 17 Jun 2018 19:39:26 +0200 Subject: [Scilab-users] Compute normals to 3D surface In-Reply-To: References: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr> Message-ID: <8FF51455-8D38-4D73-A531-A956E9CA2C27@utc.fr> Hello, If you are using scilab 5.5.2 you can install the Plotlib (Atoms package). There is an example of normals plotting in the help page of quiver3. S. > Le 17 juin 2018 ? 19:29, Lester Anderson a ?crit : > > Hi St?phane, Scilab users > > Thanks for the information. I retrieved the surfnorm function, and the associated functions that it called internally. I still cannot figure out how it should work with the existing code;had to add the functions into the main sce file to get it doing something (not sure why!). > > The attached code shows where I am at so far,and a small image of what I would like to get to. > > [x1,y1,z1] = surfnorm(x,y,z) does generate value,but plot3d does not give a meaningful result.Perhaps I am missing something very obvious, so any pointers are great. > > Scilab 6.0.1 (64 bit Windows) > > Thanks in advance > Lester > >> On 17 June 2018 at 07:47, St?phane Mottelet wrote: >> Hello, >> >> In the Plotlib you have an equivalent function : >> >> >> http://forge.scilab.org/index.php/p/plotlib/source/tree/HEAD/tags/0.46/plotlib/macros/surfnorm.sci >> >> S. >> >> > Le 17 juin 2018 ? 00:40, Lester Anderson a ?crit : >> > >> > Hello all, >> > >> > I was wondering if it was possible to compute and visualise the normals to a 3D surface in Scilab? I think Matlab has something called surfnorm;is there something similar for Scilab? >> > >> > I have attached the basic code for the Moebius strip, and it would be useful to showwhat happens to the normals at say z=0, but not sure how one would go about this. Perhaps this has already been solved. >> > >> > Cheers >> > Lester >> > >> > _______________________________________________ >> > users mailing list >> > users at lists.scilab.org >> > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Jun 17 19:42:03 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 17 Jun 2018 19:42:03 +0200 Subject: [Scilab-users] hist3d() puzzling rendering In-Reply-To: References: Message-ID: <219e7515-cd32-2a15-34a2-0b7bba38ed13@free.fr> Le 17/06/2018 ? 19:25, Rafael Guerra a ?crit : > > Hi, > > > Preserving the color of the original hidden faces under > interactive rotations, does not seem to be a bad idea. > The bug was not that the color of some faces changed with respect to the view angle, but that the hidden color was wrongly ascribed to some external visible faces. By the way, the way Scilab ascribes the hidden color looks not documented. It follows the "screw" rule to set the external and internal faces. So, the order vertices are provided matters. I did not see it described in any page. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun Jun 17 20:14:01 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 17 Jun 2018 18:14:01 +0000 Subject: [Scilab-users] Compute normals to 3D surface In-Reply-To: References: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr>, Message-ID: Hi Lester, Try xarrows(). At the end of your code, add: // Compute normals to surface [x1,y1,z1]=surfnorm(x,y,z); sf = 0.2; // arrows scale factor x1 = sf*x1 + x; y1 = sf*y1 + y; z1 = sf*z1 + z; // Plot normal vectors to surface xarrows([x(:)';x1(:)'],[y(:)';y1(:)'],[z(:)';z1(:)'],-1,2) Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Jun 17 20:19:00 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 17 Jun 2018 20:19:00 +0200 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: References: <1386045880.100602933.1528374736141.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <3108f572-d985-da44-0e4f-c7c1403c145c@free.fr> Hello Rafael, Le 07/06/2018 ? 15:04, Rafael Guerra a ?crit : > > Hi Samuel, > > Fyi, many DFT references recommend averaging the values at endpoints > and discontinuities in general. See for instance: > > Briggs, W. L. and V. E. Henson [1005] The DFT: an owner's manual for > the Discrete Fourier Transform, SIAM, Philadelphia. > >and discontinuities in general Yes, that's a point. If a specific processing is used for the edges, it would look strange to not implement it as well in the body of the initial signal. From here, a criteria (and likely some threshold) must be set to decide what's a discontinuity, and what's not. I did not go into any reading -- and frankly, if there is a summarized performances comparison and a standard published procedure --, it would be easier just to implement it, instead of reinventing the wheel with external tests. Then, i am afraid that it will come either with some choices with respect to the type of input signal, or with a bunch of processing options (making circshift a signal processing function rather than just a general matrix handling operation). Anyway, no damping window could process inner discontinuities. To me, the main advantage of the DFT was to avoid local interpolations, in order to stay simple. If the algo then implements some interpolations, why not performing the fractional part of the shift only by interpolation, instead of /in addition/ to the DFT? If you can provide some quantified rationale and possibly some finalized algo, it would be fine. Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Mon Jun 18 10:55:01 2018 From: arctica1963 at gmail.com (arctica1963) Date: Mon, 18 Jun 2018 01:55:01 -0700 (MST) Subject: [Scilab-users] Compute normals to 3D surface In-Reply-To: References: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr> Message-ID: <1529312101813-0.post@n3.nabble.com> Hi Rafael, Xarrows() worked to generate the normals in Scilab 6.0.1. Getting closer to the solution, but it gets "confused" at position (x=1.5, y=0, z=0) where the vectors should change to inbound rather than outbound as the surface folds as shown in the illustrative figure before. At this point we actually see a double vector. From x=0 to -1 it should be on the "inner" part if I'm looking at this right? Is it possible to just show the vector arrows along say z=0 only? Hopefully I am explaining this properly. Thanks for the help, very informative. Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Mon Jun 18 10:59:12 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 18 Jun 2018 10:59:12 +0200 Subject: [Scilab-users] Compute normals to 3D surface In-Reply-To: <1529312101813-0.post@n3.nabble.com> References: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr> <1529312101813-0.post@n3.nabble.com> Message-ID: Le 18/06/2018 ? 10:55, arctica1963 a ?crit?: > Hi Rafael, > > Xarrows() worked to generate the normals in Scilab 6.0.1. > > > > Getting closer to the solution, but it gets "confused" at position (x=1.5, > y=0, z=0) where the vectors should change to inbound rather than outbound as > the surface folds as shown in the illustrative figure before. At this point > we actually see a double vector. The Moebius ring is a non-orientable surface, that's why your normals field is not continous : https://en.wikipedia.org/wiki/Orientability S. > From x=0 to -1 it should be on the "inner" > part if I'm looking at this right? > > Is it possible to just show the vector arrows along say z=0 only? Hopefully > I am explaining this properly. > > Thanks for the help, very informative. > > Lester > > > > -- > Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From jrafaelbguerra at hotmail.com Mon Jun 18 11:46:52 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 18 Jun 2018 09:46:52 +0000 Subject: [Scilab-users] Compute normals to 3D surface In-Reply-To: <1529312101813-0.post@n3.nabble.com> References: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr> <1529312101813-0.post@n3.nabble.com> Message-ID: Lester, To just show the vector arrows close to level Z ~ 0, you can define the # of points for each parametric coordinate of the Mobius strip: Nl = 40; // long axis #points Ns = 10; // short axis #points u = linspace(0,2*%pi,Nl); v = linspace(-0.5,0.5,Ns); and then at the end of the code write: // Compute normals to surface [x1,y1,z1]=surfnorm(x,y,z); x0 = x(Ns/2,:); y0 = y(Ns/2,:); z0 = z(Ns/2,:); sf = 0.2; // arrows scale factor x1 = sf*x1(Ns/2,:) + x0; y1 = sf*y1(Ns/2,:) + y0; z1 = sf*z1(Ns/2,:) + z0; // Plot normal vectors to surface along Z~0 xarrows([x0;x1],[y0;y1],[z0;z1],-1,2) You'll then get the less busy picture attached. As pointed out by Stephane, as the Mobius strip is non-orientable it will be impossible to extend the definition of normal to the whole surface. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of arctica1963 Sent: Monday, June 18, 2018 10:55 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] Compute normals to 3D surface Hi Rafael, Xarrows() worked to generate the normals in Scilab 6.0.1. Getting closer to the solution, but it gets "confused" at position (x=1.5, y=0, z=0) where the vectors should change to inbound rather than outbound as the surface folds as shown in the illustrative figure before. At this point we actually see a double vector. From x=0 to -1 it should be on the "inner" part if I'm looking at this right? Is it possible to just show the vector arrows along say z=0 only? Hopefully I am explaining this properly. Thanks for the help, very informative. Lester -------------- next part -------------- A non-text attachment was scrubbed... Name: Moebius_strip_normal_vector.png Type: image/png Size: 24563 bytes Desc: Moebius_strip_normal_vector.png URL: From arctica1963 at gmail.com Mon Jun 18 13:07:43 2018 From: arctica1963 at gmail.com (arctica1963) Date: Mon, 18 Jun 2018 04:07:43 -0700 (MST) Subject: [Scilab-users] Compute normals to 3D surface In-Reply-To: References: <5B1C0EC4-FC5E-4C6A-B2E4-6B3AD630A968@utc.fr> <1529312101813-0.post@n3.nabble.com> Message-ID: <1529320063266-0.post@n3.nabble.com> Thanks St?phane, Rafael for all your help. All helps with the learning process. Cheers Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Tue Jun 19 01:15:49 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 18 Jun 2018 23:15:49 +0000 Subject: [Scilab-users] circshift() : Scilab Enhancement Proposal In-Reply-To: <3108f572-d985-da44-0e4f-c7c1403c145c@free.fr> References: <1386045880.100602933.1528374736141.JavaMail.root@zimbra75-e12.priv.proxad.net> <3108f572-d985-da44-0e4f-c7c1403c145c@free.fr> Message-ID: Hi Samuel, There might be an advantage of using the suggested DFT approach for fractional circular shifting of continuous/bandlimited input signals. This is a restrictive but quite useful class of signals. For the more general case of input series, other interpolation schemes should perform better. PS: I could not find a good reference on this topic so far. Regards, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Sunday, June 17, 2018 8:19 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] circshift() : Scilab Enhancement Proposal Hello Rafael, Le 07/06/2018 ? 15:04, Rafael Guerra a ?crit : Hi Samuel, Fyi, many DFT references recommend averaging the values at endpoints and discontinuities in general. See for instance: Briggs, W. L. and V. E. Henson [1005] The DFT: an owner's manual for the Discrete Fourier Transform, SIAM, Philadelphia. >and discontinuities in general Yes, that's a point. If a specific processing is used for the edges, it would look strange to not implement it as well in the body of the initial signal. From here, a criteria (and likely some threshold) must be set to decide what's a discontinuity, and what's not. I did not go into any reading -- and frankly, if there is a summarized performances comparison and a standard published procedure --, it would be easier just to implement it, instead of reinventing the wheel with external tests. Then, i am afraid that it will come either with some choices with respect to the type of input signal, or with a bunch of processing options (making circshift a signal processing function rather than just a general matrix handling operation). Anyway, no damping window could process inner discontinuities. To me, the main advantage of the DFT was to avoid local interpolations, in order to stay simple. If the algo then implements some interpolations, why not performing the fractional part of the shift only by interpolation, instead of in addition to the DFT? If you can provide some quantified rationale and possibly some finalized algo, it would be fine. Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yves.Rambinintsoa at gmail.com Tue Jun 19 06:33:56 2018 From: Yves.Rambinintsoa at gmail.com (Yves Rambi) Date: Mon, 18 Jun 2018 21:33:56 -0700 (MST) Subject: [Scilab-users] [Scicos] - Need advice in creation of Super Blocks via script In-Reply-To: <1529137335878-0.post@n3.nabble.com> References: <1529137335878-0.post@n3.nabble.com> Message-ID: <1529382836980-0.post@n3.nabble.com> It's a pity that no one can answer. Have a good day! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From perrichon.pierre at wanadoo.fr Tue Jun 19 09:44:04 2018 From: perrichon.pierre at wanadoo.fr (perrichon) Date: Tue, 19 Jun 2018 09:44:04 +0200 Subject: [Scilab-users] [Scicos] - Need advice in creation of Super Blocks via script In-Reply-To: <1529382836980-0.post@n3.nabble.com> References: <1529137335878-0.post@n3.nabble.com> <1529382836980-0.post@n3.nabble.com> Message-ID: Hello Yves, Book "Tome 2 - SCILAB - Mod?liser et Simuler avec XCOS" gives all explainations to build SuperBlocks Sincerely Pierre -----Message d'origine----- De?: users De la part de Yves Rambi Envoy??: mardi 19 juin 2018 06:34 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] [Scicos] - Need advice in creation of Super Blocks via script It's a pity that no one can answer. Have a good day! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246. html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From cfuttrup at gmail.com Tue Jun 19 21:45:36 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Tue, 19 Jun 2018 21:45:36 +0200 Subject: [Scilab-users] [Scicos] - Need advice in creation of Super Blocks via script In-Reply-To: References: <1529137335878-0.post@n3.nabble.com> <1529382836980-0.post@n3.nabble.com> Message-ID: <7d3b7c41-82e6-af7d-19c8-1ccc9b1a9291@gmail.com> Hi Pierre, et al (attention: Serge Steer). Is there? a chance we can have that book translated into English, please? Best regards, Claus On 6/19/2018 9:44 AM, perrichon wrote: > Hello Yves, > > Book "Tome 2 - SCILAB - Mod?liser et Simuler avec XCOS" gives all > explainations to build SuperBlocks > > Sincerely > > Pierre > > > -----Message d'origine----- > De?: users De la part de Yves Rambi > Envoy??: mardi 19 juin 2018 06:34 > ??: users at lists.scilab.org > Objet?: Re: [Scilab-users] [Scicos] - Need advice in creation of Super > Blocks via script > > It's a pity that no one can answer. > > Have a good day! > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246. > html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From arctica1963 at gmail.com Thu Jun 21 18:31:41 2018 From: arctica1963 at gmail.com (arctica1963) Date: Thu, 21 Jun 2018 09:31:41 -0700 (MST) Subject: [Scilab-users] Transparency for 3D surfaces Message-ID: <1529598701627-0.post@n3.nabble.com> Hello all, A very general query, but are there plans to include transparency options to 3D (and 2D) plots/surfaces? I have seen this discussed previously with reference to 5.3.x and 5.5.2; it would certainly be useful for surface plots. Lester -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From j_holland at msn.com Thu Jun 21 21:56:47 2018 From: j_holland at msn.com (James Holland) Date: Thu, 21 Jun 2018 12:56:47 -0700 (MST) Subject: [Scilab-users] Sockets in scilab 6.0 In-Reply-To: <1527169243922-0.post@n3.nabble.com> References: <1527169243922-0.post@n3.nabble.com> Message-ID: <1529611007140-0.post@n3.nabble.com> I finally got back to this. The problem I am having now is that wireshark is showing two sets of LF,CR appended to the end of the string that it sends, this seems to be causing the oscilloscope to fail to recognise the message. If I use the command line in the manufacturer's software then I get data back, in Scilab nothing. This is what I see on wireshark: >From DS Wave: 0000 38 d2 69 a2 04 9e a0 8c fd 1d e0 79 08 00 45 00 8?i?..?.?.?y..E. 0010 00 2d 46 bf 40 00 80 06 00 00 c0 a8 01 47 c0 a8 .-F?@.....??.G?? 0020 01 48 d4 96 0b b8 ec 1f 69 0d 00 00 19 99 50 18 .H?..??.i.....P. 0030 fa f0 83 ff 00 00 2a 49 44 4e 3f ??.?..*IDN? >From Scilab: 0000 38 d2 69 a2 04 9e a0 8c fd 1d e0 79 08 00 45 00 8?i?..?.?.?y..E. 0010 00 31 46 d3 40 00 80 06 00 00 c0 a8 01 47 c0 a8 .1F?@.....??.G?? 0020 01 48 d4 b0 0b b8 4f ed f3 c9 00 00 19 a0 50 18 .H??.?O???...?P. 0030 fa f0 84 03 00 00 2a 49 44 4e 3f 0d 0a 0d 0a ??....*IDN?.... Is this problem embedded in the TCL/TK interface? If it is then I would consider that a bug, CR/LF should be optional. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From j_holland at msn.com Thu Jun 21 22:23:16 2018 From: j_holland at msn.com (James Holland) Date: Thu, 21 Jun 2018 13:23:16 -0700 (MST) Subject: [Scilab-users] Sockets in scilab 6.0 In-Reply-To: <1529611007140-0.post@n3.nabble.com> References: <1527169243922-0.post@n3.nabble.com> <1529611007140-0.post@n3.nabble.com> Message-ID: <1529612596040-0.post@n3.nabble.com> This is my code: // Exemple avec Socket SOCKET_open(1,"192.168.1.72",3000); SOCKET_write(1,["*IDN?"]); SOCKET_read(1) SOCKET_close(1); I've modified the write routine from this: function SOCKET_write(id,commande) TCL_EvalStr([ "puts $tclsocket"+string(id)+" """+commande+ascii(10)+""""; "flush $tclsocket"+string(id)]); endfunction to this: function SOCKET_write(id,commande) TCL_EvalStr([ "puts $tclsocket"+string(id)+"" ""+commande+""; "flush $tclsocket"+string(id)]); endfunction That has already removed some spurious LF/CRs. Putty also works OK and doesn't add the CR/LF at the end. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From aweeks at hidglobal.com Fri Jun 22 09:11:49 2018 From: aweeks at hidglobal.com (Adrian Weeks) Date: Fri, 22 Jun 2018 07:11:49 +0000 Subject: [Scilab-users] Sockets in scilab 6.0 In-Reply-To: <1529612596040-0.post@n3.nabble.com> References: <1527169243922-0.post@n3.nabble.com> <1529611007140-0.post@n3.nabble.com> <1529612596040-0.post@n3.nabble.com> Message-ID: Hi James, I use Scilab to control an oscilloscope. Mine is connected to a serial port not a TCP socket but I have had problems with CR LF. You could look at the TCL 'configure' command. When I open the serial port I use something like: TCL_EvalStr("fconfigure $serialport -translation binary"); so that TCL doesn't automatically add CR LF, then I add them, as required, to the string I'm sending. Adrian Weeks. Engineer, Hardware Engineering EMEA. Office: +44 (0) 2920 528500?| Direct: +44 (0) 2920 528523? Email: aweeks at hidglobal.com HID Global, 3 Cae Gwrydd, Green Meadow Springs, Cardiff, CF15 7AB , United Kingdom www.hidglobal.com -----Original Message----- From: users On Behalf Of James Holland Sent: 21 June 2018 21:23 To: users at lists.scilab.org Subject: Re: [Scilab-users] Sockets in scilab 6.0 This is my code: // Exemple avec Socket SOCKET_open(1,"192.168.1.72",3000); SOCKET_write(1,["*IDN?"]); SOCKET_read(1) SOCKET_close(1); I've modified the write routine from this: function SOCKET_write(id,commande) TCL_EvalStr([ "puts $tclsocket"+string(id)+" """+commande+ascii(10)+""""; "flush $tclsocket"+string(id)]); endfunction to this: function SOCKET_write(id,commande) TCL_EvalStr([ "puts $tclsocket"+string(id)+"" ""+commande+""; "flush $tclsocket"+string(id)]); endfunction That has already removed some spurious LF/CRs. Putty also works OK and doesn't add the CR/LF at the end. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From samuel.enibe at unn.edu.ng Fri Jun 22 16:24:35 2018 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Fri, 22 Jun 2018 14:24:35 +0000 Subject: [Scilab-users] SCILAB NOT WORKING IN UBUNTU 18.04 Message-ID: I have just installed SCILAB 6.01 in UBUNTU 18.04 using the SYNPATIC package manager. Unfortunately, it is note working, but gives the following error: /usr/bin/scilab-bin: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory How can I rectify the problem? In the alternative, how can I install SCILAB 6.01 or any previous version into UBUNTU manually? Thank you very much for assisting. Samuel Enibe University of Nigeria, Nsukka, Nigeria -------------- next part -------------- An HTML attachment was scrubbed... URL: From ekinakoglu at gmail.com Fri Jun 22 16:29:04 2018 From: ekinakoglu at gmail.com (Ekin Akoglu) Date: Fri, 22 Jun 2018 17:29:04 +0300 Subject: [Scilab-users] SCILAB NOT WORKING IN UBUNTU 18.04 In-Reply-To: References: Message-ID: <60f50c5a-2231-f864-3383-9268bb6b03de@gmail.com> Dear Samuel, Please see this: https://askubuntu.com/questions/1029163/how-to-get-scilab-6-0-1-working-on-ubuntu-18-04-lts There you can find the solution. Best regards, Ekin On 22/06/18 17:24, Samuel Enibe wrote: > I have just installed SCILAB 6.01 in UBUNTU 18.04 using the SYNPATIC > package manager. > > Unfortunately, it is note working, but gives the following error: > > /usr/bin/scilab-bin: error while loading shared libraries: libjava.so: > cannot open shared object file: No such file or directory > > > How can I rectify the problem? > > In the alternative, how can I install SCILAB 6.01 or any previous > version into UBUNTU manually? > > Thank you very much for assisting. > > Samuel? Enibe > University of Nigeria, Nsukka, Nigeria > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Fri Jun 22 23:56:40 2018 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Fri, 22 Jun 2018 21:56:40 +0000 Subject: [Scilab-users] SCILAB NOT WORKING IN UBUNTU 18.04 In-Reply-To: <60f50c5a-2231-f864-3383-9268bb6b03de@gmail.com> References: <60f50c5a-2231-f864-3383-9268bb6b03de@gmail.com> Message-ID: Dear Ekin, Thanks for the help. I downloaded the binary tar file from the SCILAB website, placed it in a directory, and applied the following commands: tar xzvf scilab-6.0.1.bin.linux-x86_64.tar.gz cd scilab-6.0.1 bin/scilab OR ./bin/scilab and it worked. However, I can only run it from the installation directory. HOW SHOULD I MAKE IT GLOBALLY VISIBLE SO THAT I CAN RUN IT FROM ANY DIRECTORY? Samuel Enibe On Fri, Jun 22, 2018 at 2:29 PM, Ekin Akoglu wrote: > Dear Samuel, > > Please see this: https://askubuntu.com/questions/1029163/how-to-get- > scilab-6-0-1-working-on-ubuntu-18-04-lts > > There you can find the solution. > > Best regards, > > Ekin > > On 22/06/18 17:24, Samuel Enibe wrote: > > I have just installed SCILAB 6.01 in UBUNTU 18.04 using the SYNPATIC > package manager. > > Unfortunately, it is note working, but gives the following error: > > /usr/bin/scilab-bin: error while loading shared libraries: libjava.so: > cannot open shared object file: No such file or directory > > > How can I rectify the problem? > > In the alternative, how can I install SCILAB 6.01 or any previous version > into UBUNTU manually? > > Thank you very much for assisting. > > Samuel Enibe > University of Nigeria, Nsukka, Nigeria > > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Sat Jun 23 09:06:11 2018 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sat, 23 Jun 2018 09:06:11 +0200 Subject: [Scilab-users] SCILAB NOT WORKING IN UBUNTU 18.04 In-Reply-To: References: <60f50c5a-2231-f864-3383-9268bb6b03de@gmail.com> Message-ID: <77B7A296-6C84-4B46-B5AB-52CDA8B1FC50@utc.fr> Hello In your .bashrc or .profile : export PATH=scilab_dir/bin/:$PATH S. > Le 22 juin 2018 ? 23:56, Samuel Enibe a ?crit : > > Dear Ekin, > > Thanks for the help. I downloaded the binary tar file from the SCILAB website, placed it in a directory, and applied the following commands: > > tar xzvf scilab-6.0.1.bin.linux-x86_64.tar.gz > cd scilab-6.0.1 > bin/scilab OR ./bin/scilab > > and it worked. However, I can only run it from the installation directory. > > HOW SHOULD I MAKE IT GLOBALLY VISIBLE SO THAT I CAN RUN IT FROM ANY DIRECTORY? > > > > > Samuel Enibe > > >> On Fri, Jun 22, 2018 at 2:29 PM, Ekin Akoglu wrote: >> Dear Samuel, >> >> Please see this: https://askubuntu.com/questions/1029163/how-to-get-scilab-6-0-1-working-on-ubuntu-18-04-lts >> >> There you can find the solution. >> >> Best regards, >> >> Ekin >> >>> On 22/06/18 17:24, Samuel Enibe wrote: >>> I have just installed SCILAB 6.01 in UBUNTU 18.04 using the SYNPATIC package manager. >>> >>> Unfortunately, it is note working, but gives the following error: >>> >>> /usr/bin/scilab-bin: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory >>> >>> >>> How can I rectify the problem? >>> >>> In the alternative, how can I install SCILAB 6.01 or any previous version into UBUNTU manually? >>> >>> Thank you very much for assisting. >>> >>> Samuel Enibe >>> University of Nigeria, Nsukka, Nigeria >>> >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Sat Jun 23 19:53:46 2018 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sat, 23 Jun 2018 19:53:46 +0200 Subject: [Scilab-users] Scilab Cloud App Message-ID: <5B2E892A.5020104@hslmg.de> Hallo, I happended to see the page Scilab Cloud App , and was attracted by the slogan "Don't waste your time in learning HTML/JS". I know web applets being availabe to the public via an URL and allowing some mathematical calculations after some inputs. * Given a functional Scilab script including a couple of functions, does the associated Scilab Cloud App allow public acces to this script, when I publish the appropriate URL on my webpage? * Is there a Scilab Cloud App (any content is welcome) which I coud run as an example? Trying this one on Firefox lead to nothing. Kind regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From witczenko at gmail.com Mon Jun 25 11:32:59 2018 From: witczenko at gmail.com (Witczenko) Date: Mon, 25 Jun 2018 02:32:59 -0700 (MST) Subject: [Scilab-users] Data acquisition with Scilab - 01 - Introduction Message-ID: <1529919179616-0.post@n3.nabble.com> Dear Scilabers, In these post, I want to show you how to use Scilab for data acquisition with free MicroDAQ toolbox. I hope it would be helpful for some of you. MicroDAQ Toolbox lets you make a variety of measurements directly from Scilab without the need to convert the data or import from other software. The toolbox includes functions for controlling analog inputs, analog outputs, digital I/O (quadrature encoders, PWM). In this post, I want to focus on acquiring an analog signal. Let's start by installing latest toolbox version: atomsInstall("microdaq"); Once toolbox is installed we can check what MicroDAQ unit we've connected to our PC. mdaqHWInfo(); Now we can start the main part. By using two commands from toolbox we can configure data acquisition session and acquire samples. Here is the code: *mdaqAIScanInit(1, [-10 10], %F, 1000000, 0.1); data =mdaqAIScan(100000, %T); plot(data);* The first command sets analog channel 1 (AI1) with ?10V input range and 1Msps sampling rate for 0.1 second. The second command reads acquired analog samples. Link to https://atoms.scilab.org/toolboxes/microdaq Best Regards, Witczenko -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From kamienna.gora at gmail.com Tue Jun 26 09:54:48 2018 From: kamienna.gora at gmail.com (kamienna.gora) Date: Tue, 26 Jun 2018 00:54:48 -0700 (MST) Subject: [Scilab-users] SciLab 6.0.1 and Symbolic Toolbox Message-ID: <1529999688700-0.post@n3.nabble.com> Dear All, I have got a simple question - how to install Symbolic Toolbox for SciLab 6.0.1? According to tutorial: "https://scilab.in/scilab-symbolic-toolbox", point 5, I got: "liboverload.so: undefined symbol: pvApiCtx". Regards, Mariusz -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From j_holland at msn.com Tue Jun 26 20:20:02 2018 From: j_holland at msn.com (James Holland) Date: Tue, 26 Jun 2018 11:20:02 -0700 (MST) Subject: [Scilab-users] Sockets in scilab 6.0 In-Reply-To: References: <1527169243922-0.post@n3.nabble.com> <1529611007140-0.post@n3.nabble.com> <1529612596040-0.post@n3.nabble.com> Message-ID: <1530037202590-0.post@n3.nabble.com> For testing I've stripped out all the code and put it into one script so I don't need to keep rebuilding and reloading. What I have now is: id =1; commande = "*IDN?"; address = "192.168.1.72" port = 3000; // SOCKET_open TCL_EvalStr(["set tclsocket"+string(id)+" [socket "+address+" "+string(port)+"]";"fconfigure $tclsocket"+string(id)+" -blocking 0 -translation binary"]); //send data TCL_EvalStr([ "puts $tclsocket"+string(id)+" """+commande+""""; "flush $tclsocket"+string(id)]); sleep(10); //100ms wait for data to be returned //get Data mat=[]; mat=[]; cmd=["set tclsocketlong 0;"; "while {$tclsocketlong >= 0} {"; "set tclsocketlong [gets $tclsocket"+string(id)+" tclsocketligne];"; "if {$tclsocketlong >= 0} {"; // "flush $tclsocket"+string(id)+";"; // bug en cas de "" "ScilabEval ""mat=\[\""[string map {\"" \""\"" \'' \''\''} $tclsocketligne]\"";mat\];"""; // "ScilabEval ""mat=\[TCL_GetVar(''tclsocketligne'');mat\];"""; "}"; "}"]; res = TCL_EvalStr(strcat(cmd," ")); The scope does send back a response even though I have one linefeed appended. However if I set the translation mode to binary I still get the linefeed. The response from the scope (terminated with a LF) is not being fed back, cmd is an empty matrix. What I really want to do is set outmode to binary and inmode to LF but '-translation lf binary' gives me the following error: TCL_EvalStr, at line 2 wrong # args: should be "fconfigure channelId ?optionName? ?value? ?optionName value?..." while executing "fconfigure $tclsocket1 -blocking 0 -translation lf binary" I haven't yet found an example showing inmode outmode -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From heinznabielek at icloud.com Tue Jun 26 20:42:28 2018 From: heinznabielek at icloud.com (Heinz Nabielek) Date: Tue, 26 Jun 2018 20:42:28 +0200 Subject: [Scilab-users] Voronoi tessellation/ Delaunay triangulation in 3d in Scilab? In-Reply-To: <1529919179616-0.post@n3.nabble.com> References: <1529919179616-0.post@n3.nabble.com> Message-ID: <1DD39EB3-AF60-401A-9A8D-D6C5453D4C93@icloud.com> Dear Scilab friends, I have 15,000 points in 3d space with known xyz Carthesian coordinates and the basic question is, if their arrangement is random or not. I had been suggest to do Voronoi tessellation/ Delaunay triangulation. The famous problem of the location of the nearest public phone, but this is only 2d. Would you be aware of a code fragment that helps in 3d? In either Scilab, C, C++ or FORTRAN? Greetings Heinz From jrafaelbguerra at hotmail.com Tue Jun 26 22:30:29 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 26 Jun 2018 20:30:29 +0000 Subject: [Scilab-users] Voronoi tessellation/ Delaunay triangulation in 3d in Scilab? Message-ID: Hi Heinz, For C, you may want to check this: https://www.codeproject.com/Articles/587629/A-Delaunay-triangulation-function-in-C Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Heinz Nabielek Sent: Tuesday, June 26, 2018 8:42 PM To: Users mailing list for Scilab Subject: [Scilab-users] Voronoi tessellation/ Delaunay triangulation in 3d in Scilab? Dear Scilab friends, I have 15,000 points in 3d space with known xyz Carthesian coordinates and the basic question is, if their arrangement is random or not. I had been suggest to do Voronoi tessellation/ Delaunay triangulation. The famous problem of the location of the nearest public phone, but this is only 2d. Would you be aware of a code fragment that helps in 3d? In either Scilab, C, C++ or FORTRAN? Greetings Heinz _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Wed Jun 27 01:27:05 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 27 Jun 2018 01:27:05 +0200 Subject: [Scilab-users] Voronoi tessellation/ Delaunay triangulation in 3d in Scilab? In-Reply-To: <1DD39EB3-AF60-401A-9A8D-D6C5453D4C93@icloud.com> References: <1529919179616-0.post@n3.nabble.com> <1DD39EB3-AF60-401A-9A8D-D6C5453D4C93@icloud.com> Message-ID: <9371f779-3bc6-b60e-e4e3-3f0685f73c5f@free.fr> Hello, Le 26/06/2018 ? 20:42, Heinz Nabielek a ?crit : > Dear Scilab friends, > > I have 15,000 points in 3d space with known xyz Carthesian coordinates and the basic question is, if their arrangement is random or not. > > I had been suggest to do Voronoi tessellation/ Delaunay triangulation. The famous problem of the location of the nearest public phone, but this is only 2d. The CGAL module has a 3D Delaunay function available for Scilab 6: https://atoms.scilab.org/toolboxes/cglab/2.3.1 atomsInstall("cglab") HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Wed Jun 27 01:45:23 2018 From: heinznabielek at me.com (Heinz Nabielek) Date: Wed, 27 Jun 2018 01:45:23 +0200 Subject: [Scilab-users] Voronoi tessellation/ Delaunay triangulation in 3d in Scilab? In-Reply-To: <9371f779-3bc6-b60e-e4e3-3f0685f73c5f@free.fr> References: <1529919179616-0.post@n3.nabble.com> <1DD39EB3-AF60-401A-9A8D-D6C5453D4C93@icloud.com> <9371f779-3bc6-b60e-e4e3-3f0685f73c5f@free.fr> Message-ID: On 27.06.2018, at 01:27, Samuel Gougeon wrote: > > Hello, > > Le 26/06/2018 ? 20:42, Heinz Nabielek a ?crit : >> Dear Scilab friends, >> >> I have 15,000 points in 3d space with known xyz Carthesian coordinates and the basic question is, if their arrangement is random or not. >> >> I had been suggest to do Voronoi tessellation/ Delaunay triangulation. The famous problem of the location of the nearest public phone, but this is only 2d. >> > > The CGAL module has a 3D Delaunay function available for Scilab 6: > https://atoms.scilab.org/toolboxes/cglab/2.3.1 > atomsInstall("cglab") Thanks for the pointer, but does not work. --> atomsInstall("cglab") atomsInstallList: The package "cglab" is not registered. Please check on the ATOMS repository that it is available for Scilab 6.0 on Darwin. HOWEVER: REPOSITORY SAYS FOR "Toolboxes available on MACOSX": CGLAB (10971 downloads, updated February 22, 2017) Scilab interface to CGAL library 29 comments - --> atomsInstall("cglab") Where do I go from here? Heinz From heinznabielek at me.com Wed Jun 27 00:18:42 2018 From: heinznabielek at me.com (Heinz Nabielek) Date: Wed, 27 Jun 2018 00:18:42 +0200 Subject: [Scilab-users] Voronoi tessellation/ Delaunay triangulation in 3d in Scilab? In-Reply-To: References: Message-ID: <1302EDBE-BE05-4350-B05D-10996C607895@me.com> Thanks a lot. Looking at the computational effort, C is probably the only option anyway... Heinz > On 26.06.2018, at 22:30, Rafael Guerra wrote: > > Hi Heinz, > > For C, you may want to check this: > https://www.codeproject.com/Articles/587629/A-Delaunay-triangulation-function-in-C > > Regards, > Rafael > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Heinz Nabielek > Sent: Tuesday, June 26, 2018 8:42 PM > To: Users mailing list for Scilab > Subject: [Scilab-users] Voronoi tessellation/ Delaunay triangulation in 3d in Scilab? > > Dear Scilab friends, > > I have 15,000 points in 3d space with known xyz Carthesian coordinates and the basic question is, if their arrangement is random or not. > > I had been suggest to do Voronoi tessellation/ Delaunay triangulation. The famous problem of the location of the nearest public phone, but this is only 2d. > > Would you be aware of a code fragment that helps in 3d? In either Scilab, C, C++ or FORTRAN? > Greetings > Heinz > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From aweeks at hidglobal.com Wed Jun 27 09:18:16 2018 From: aweeks at hidglobal.com (Adrian Weeks) Date: Wed, 27 Jun 2018 07:18:16 +0000 Subject: [Scilab-users] Sockets in scilab 6.0 In-Reply-To: <1530037202590-0.post@n3.nabble.com> References: <1527169243922-0.post@n3.nabble.com> <1529611007140-0.post@n3.nabble.com> <1529612596040-0.post@n3.nabble.com> <1530037202590-0.post@n3.nabble.com> Message-ID: <41d87fdeeaa44ce99f6b3174542e96fd@hidglobal.com> Hi James, If I remember correctly, you can have different translation on the input and output channels and I think you need to enclose the parameters in braces: "fconfigure $tclsocket1 -blocking 0 -translation {lf binary}" I also notice that you're using command 'flush'. You could try experimenting with: "fconfigure $tclsocket1 -buffering line" which, I think, causes transmission of the string immediately it gets the LF. If you haven't seen it already, here's the documentation: http://docs.activestate.com/activetcl/8.5/tcl/tcl/TclCmd/fconfigure.html When I was setting up the TCL functions in Scilab I found it very helpful to install and run TCL itself on my PC. It gives you a small window into which you can type commands directly, to see what happens. I connected an oscilloscope to the serial port to see what came out. Adrian Weeks. Engineer, Hardware Engineering EMEA. Office: +44 (0) 2920 528500?| Direct: +44 (0) 2920 528523? Email: aweeks at hidglobal.com HID Global, 3 Cae Gwrydd, Green Meadow Springs, Cardiff, CF15 7AB , United Kingdom www.hidglobal.com -----Original Message----- From: users On Behalf Of James Holland Sent: 26 June 2018 19:20 To: users at lists.scilab.org Subject: Re: [Scilab-users] Sockets in scilab 6.0 For testing I've stripped out all the code and put it into one script so I don't need to keep rebuilding and reloading. What I have now is: id =1; commande = "*IDN?"; address = "192.168.1.72" port = 3000; // SOCKET_open TCL_EvalStr(["set tclsocket"+string(id)+" [socket "+address+" "+string(port)+"]";"fconfigure $tclsocket"+string(id)+" -blocking 0 -translation binary"]); //send data TCL_EvalStr([ "puts $tclsocket"+string(id)+" """+commande+""""; "flush $tclsocket"+string(id)]); sleep(10); //100ms wait for data to be returned //get Data mat=[]; mat=[]; cmd=["set tclsocketlong 0;"; "while {$tclsocketlong >= 0} {"; "set tclsocketlong [gets $tclsocket"+string(id)+" tclsocketligne];"; "if {$tclsocketlong >= 0} {"; // "flush $tclsocket"+string(id)+";"; // bug en cas de "" "ScilabEval ""mat=\[\""[string map {\"" \""\"" \'' \''\''} $tclsocketligne]\"";mat\];"""; // "ScilabEval ""mat=\[TCL_GetVar(''tclsocketligne'');mat\];"""; "}"; "}"]; res = TCL_EvalStr(strcat(cmd," ")); The scope does send back a response even though I have one linefeed appended. However if I set the translation mode to binary I still get the linefeed. The response from the scope (terminated with a LF) is not being fed back, cmd is an empty matrix. What I really want to do is set outmode to binary and inmode to LF but '-translation lf binary' gives me the following error: TCL_EvalStr, at line 2 wrong # args: should be "fconfigure channelId ?optionName? ?value? ?optionName value?..." while executing "fconfigure $tclsocket1 -blocking 0 -translation lf binary" I haven't yet found an example showing inmode outmode -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From j_holland at msn.com Wed Jun 27 09:35:24 2018 From: j_holland at msn.com (James Holland) Date: Wed, 27 Jun 2018 00:35:24 -0700 (MST) Subject: [Scilab-users] Sockets in scilab 6.0 In-Reply-To: <41d87fdeeaa44ce99f6b3174542e96fd@hidglobal.com> References: <1527169243922-0.post@n3.nabble.com> <1529611007140-0.post@n3.nabble.com> <1529612596040-0.post@n3.nabble.com> <1530037202590-0.post@n3.nabble.com> <41d87fdeeaa44ce99f6b3174542e96fd@hidglobal.com> Message-ID: <1530084924830-0.post@n3.nabble.com> Hello Adrian I have inmode outmode working now, I didn't initially realise that the curly brackets are supposed to be included, I suspect there is a bug there because binary and lf behave the same, the LF is always appended. The flush I need because I'm not (or shouldn't be) sending a LF. I was wondering if the problem is that the scilab script and the TCL are executing simultaneously and I need to somehow wait for the TCL to finish. I've downloaded TCL now, I will try running the same code directly. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed Jun 27 11:35:26 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 27 Jun 2018 11:35:26 +0200 Subject: [Scilab-users] Voronoi tessellation/ Delaunay triangulation in 3d in Scilab? In-Reply-To: References: <1529919179616-0.post@n3.nabble.com> <1DD39EB3-AF60-401A-9A8D-D6C5453D4C93@icloud.com> <9371f779-3bc6-b60e-e4e3-3f0685f73c5f@free.fr> Message-ID: <08dea9cc-cbf5-a9c6-7900-0081f684725b@free.fr> Le 27/06/2018 ? 01:45, Heinz Nabielek a ?crit : > On 27.06.2018, at 01:27, Samuel Gougeon wrote: >> Hello, >> >> Le 26/06/2018 ? 20:42, Heinz Nabielek a ?crit : >>> Dear Scilab friends, >>> >>> I have 15,000 points in 3d space with known xyz Carthesian coordinates and the basic question is, if their arrangement is random or not. >>> >>> I had been suggest to do Voronoi tessellation/ Delaunay triangulation. The famous problem of the location of the nearest public phone, but this is only 2d. >>> >> The CGAL module has a 3D Delaunay function available for Scilab 6: >> https://atoms.scilab.org/toolboxes/cglab/2.3.1 >> atomsInstall("cglab") > Thanks for the pointer, but does not work. > > --> atomsInstall("cglab") > atomsInstallList: The package "cglab" is not registered. > Please check on the ATOMS repository that it is available for Scilab 6.0 on Darwin. > > HOWEVER: REPOSITORY SAYS FOR "Toolboxes available on MACOSX": Right: For MacOS, up to Scilab 5.2, but no longer for more recent Scilab versions. From aweeks at hidglobal.com Wed Jun 27 13:04:30 2018 From: aweeks at hidglobal.com (Adrian Weeks) Date: Wed, 27 Jun 2018 11:04:30 +0000 Subject: [Scilab-users] Sockets in scilab 6.0 In-Reply-To: <1530084924830-0.post@n3.nabble.com> References: <1527169243922-0.post@n3.nabble.com> <1529611007140-0.post@n3.nabble.com> <1529612596040-0.post@n3.nabble.com> <1530037202590-0.post@n3.nabble.com> <41d87fdeeaa44ce99f6b3174542e96fd@hidglobal.com> <1530084924830-0.post@n3.nabble.com> Message-ID: <14bef2a3dd464941923813ade32239d9@hidglobal.com> Hi James, I'm glad you've managed to get more working. It's been some time since I worked on this so I can't remember most of the details. My oscilloscope (HP) is quite old and has a RS232 connection. I do remember that I spent quite a lot of time getting it to work correctly, like you, fighting CR LF problems. I'm glad that I did because now I have my own software to control the oscilloscope and I use it for everything. Using TCL directly, with an oscilloscope monitoring the port, was the best way to see what was being transmitted and then to try experimenting with fconfigure. You're using a TCP socket so you won't be able to do that but there is a small utility from NirSoft called SmartSniff https://www.nirsoft.net/utils/smsniff.html which you may be able to use to monitor the communications. It's quite possible that the functions 'puts', 'gets' etc. behave slightly differently when they act on a TCP socket rather than a serial port. Good luck. Adrian Weeks. Engineer, Hardware Engineering EMEA. Office: +44 (0) 2920 528500?| Direct: +44 (0) 2920 528523? Email: aweeks at hidglobal.com HID Global, 3 Cae Gwrydd, Green Meadow Springs, Cardiff, CF15 7AB , United Kingdom www.hidglobal.com -----Original Message----- From: users On Behalf Of James Holland Sent: 27 June 2018 08:35 To: users at lists.scilab.org Subject: Re: [Scilab-users] Sockets in scilab 6.0 Hello Adrian I have inmode outmode working now, I didn't initially realise that the curly brackets are supposed to be included, I suspect there is a bug there because binary and lf behave the same, the LF is always appended. The flush I need because I'm not (or shouldn't be) sending a LF. I was wondering if the problem is that the scilab script and the TCL are executing simultaneously and I need to somehow wait for the TCL to finish. I've downloaded TCL now, I will try running the same code directly. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From rouxph.22 at gmail.com Wed Jun 27 16:35:27 2018 From: rouxph.22 at gmail.com (philippe) Date: Wed, 27 Jun 2018 16:35:27 +0200 Subject: [Scilab-users] Coding for a 3D Klein Bottle In-Reply-To: References: <8d7ed26d-162a-a583-17b2-5ad792f915f6@free.fr> Message-ID: you can find other example of the Klein "Bottle" made with scilab : http://rouxph.blogspot.com/2016/06/la-bouteille-de-klein.html Philippe Le 10/06/2018 ? 17:18, Lester Anderson a ?crit?: > Thanks Samual! This is all good learning practice. Cheers, Lester > > > On 12:19, Sun, 10 Jun 2018 Samuel Gougeon, > > wrote: > > Hello Lester, > > The code was just missing many dots (* => .*, ^ = .^), to make > operators working in an elementwise way (see attachement). > Fixing that makes the expected picture: > > This could make a nice demo, in the /Graphics => More surfaces/? > section. > > Regards > Samuel > > > Le 10/06/2018 ? 12:51, Lester Anderson a ?crit?: >> Hello all, >> >> I have been testing the latest version of Scilab (6.0.1) and have >> been looking at data visualisation of non-orientatable surfaces >> (e.g. Moebius, Klein Bottle etc.). >> >> The Moebius strip was not hard to figure out, but I am having >> issues with the Klein Bottle.I have attched the code as is so far, >> uses the parametric equations from >> https://en.wikipedia.org/wiki/Klein_bottle, for the 3D immersion >> of the bottle. >> >> As a test, I used the old software Derive 6 to run the equations >> and it plots the bottle as correct. If anyone has pointers on this >> code that would be helpful. >> >> Still learning Scilab! >> >> Thanks >> Lester >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From rouxph.22 at gmail.com Wed Jun 27 16:41:23 2018 From: rouxph.22 at gmail.com (philippe) Date: Wed, 27 Jun 2018 16:41:23 +0200 Subject: [Scilab-users] SciLab 6.0.1 and Symbolic Toolbox In-Reply-To: <1529999688700-0.post@n3.nabble.com> References: <1529999688700-0.post@n3.nabble.com> Message-ID: Hi, Le 26/06/2018 ? 09:54, kamienna.gora a ?crit?: > Dear All, > > I have got a simple question - how to install Symbolic Toolbox for SciLab > 6.0.1? > According to tutorial: "https://scilab.in/scilab-symbolic-toolbox", point 5, > I got: "liboverload.so: undefined symbol: pvApiCtx". let's check some requirement before 1/this toolbox is ONLY for linux, if you are using windows/macOs it will not work 2/ you have to install the overload toolbox before http://forge.scilab.org/index.php/p/overload/ have you done this before ? 3/ I've used a lot this toolbox to communicate with maxima but I failed to reinstall it 2 years ago and I don't know why ... philippe From kamienna.gora at gmail.com Thu Jun 28 10:15:38 2018 From: kamienna.gora at gmail.com (kamienna gora) Date: Thu, 28 Jun 2018 10:15:38 +0200 Subject: [Scilab-users] SciLab 6.0.1 and Symbolic Toolbox In-Reply-To: References: <1529999688700-0.post@n3.nabble.com> Message-ID: Hi Philippe, I use linux (kubuntu, for now 18.04) and got problems at the beginning - during installing the overload toolbox: "liboverload.so: undefined symbol: pvApiCtx" Regards, Mariusz 2018-06-27 16:41 GMT+02:00 philippe : > Hi, > > Le 26/06/2018 ? 09:54, kamienna.gora a ?crit : > > Dear All, > > > > I have got a simple question - how to install Symbolic Toolbox for SciLab > > 6.0.1? > > According to tutorial: "https://scilab.in/scilab-symbolic-toolbox", > point 5, > > I got: "liboverload.so: undefined symbol: pvApiCtx". > > let's check some requirement before > > 1/this toolbox is ONLY for linux, if you are using windows/macOs it will > not work > 2/ you have to install the overload toolbox before > http://forge.scilab.org/index.php/p/overload/ > have you done this before ? > 3/ I've used a lot this toolbox to communicate with maxima but I failed > to reinstall it 2 years ago and I don't know why ... > > philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Jun 28 17:41:01 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 28 Jun 2018 17:41:01 +0200 Subject: [Scilab-users] Fix of bug #4953 (behavior of clean() with %inf) Message-ID: <097f1d1d-0047-ab98-11cb-307672848fad@utc.fr> Hello all, A fix proposal is under review @ https://codereview.scilab.org/#/c/20204/2, in order to consider the actual behavior of clean() when the argument has some infinite values: In Scilab 6.0.1: --> clean([%inf 1]) ?ans? = ?? 0.?? 0. By a argument of continuity, since --> clean([1.79e308 1]) ?ans? = ?? 1.79D+308?? 0. the fixed behavior would be --> clean([%inf 1]) ?ans? = ?? Inf?? 0. Please give your opinion if you feel concerned. S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From sgougeon at free.fr Fri Jun 29 01:12:48 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 29 Jun 2018 01:12:48 +0200 Subject: [Scilab-users] What can be done with a signed zero -0 ? Message-ID: Dear co-users, I am somewhat rediscovering that Scilab allows to defined a signed zero: --> zm = -0 zm = 0. --> 1/zm ans = -Inf It looks not documented. I am wondering where is the best place to document it (i mean, which existing page?), and even if it is worthwhile to document it. Indeed, what can be done with it? Beside inverting it into -%inf, other operations are rather disappointing: --> zm==0 ans = T --> zm<0 ans = F --> sign(zm) ans = 0. Any idea about applications? Cheers Samuel From jrafaelbguerra at hotmail.com Fri Jun 29 01:25:48 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 28 Jun 2018 23:25:48 +0000 Subject: [Scilab-users] What can be done with a signed zero -0 ? In-Reply-To: References: Message-ID: Samuel, Regarding signed zero applications, check this page out: https://www.advanpix.com/2016/04/28/branch-cuts-and-signed-zeros-in-matlab/ Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Friday, June 29, 2018 1:13 AM To: International users mailing list for Scilab. Subject: [Scilab-users] What can be done with a signed zero -0 ? Dear co-users, I am somewhat rediscovering that Scilab allows to defined a signed zero: --> zm = -0 zm = 0. --> 1/zm ans = -Inf It looks not documented. I am wondering where is the best place to document it (i mean, which existing page?), and even if it is worthwhile to document it. Indeed, what can be done with it? Beside inverting it into -%inf, other operations are rather disappointing: --> zm==0 ans = T --> zm<0 ans = F --> sign(zm) ans = 0. Any idea about applications? Cheers Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Fri Jun 29 01:39:22 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 29 Jun 2018 01:39:22 +0200 Subject: [Scilab-users] What can be done with a signed zero -0 ? In-Reply-To: References: Message-ID: <81df907e-be54-93fd-4a47-01e5eee47d7b@free.fr> Le 29/06/2018 ? 01:25, Rafael Guerra a ?crit : > Samuel, > > Regarding signed zero applications, check this page out: > https://www.advanpix.com/2016/04/28/branch-cuts-and-signed-zeros-in-matlab/ Thanks. And this one: https://en.wikipedia.org/wiki/Signed_zero It would be possible to document it in the ieee() or number_properties pages, or the zeros() one, or the %inf one, or in a dedicated page, to report Scilab behaviors wrt it for some particular functions... Reports about Scilab functions that make a difference between -0 and 0 are welcome. From sgougeon at free.fr Fri Jun 29 01:53:05 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 29 Jun 2018 01:53:05 +0200 Subject: [Scilab-users] What can be done with a signed zero -0 ? In-Reply-To: <81df907e-be54-93fd-4a47-01e5eee47d7b@free.fr> References: <81df907e-be54-93fd-4a47-01e5eee47d7b@free.fr> Message-ID: <19da028a-c704-32a1-334d-9839a9649639@free.fr> Le 29/06/2018 ? 01:39, Samuel Gougeon a ?crit : > Le 29/06/2018 ? 01:25, Rafael Guerra a ?crit : >> Samuel, >> >> Regarding signed zero applications, check this page out: >> https://www.advanpix.com/2016/04/28/branch-cuts-and-signed-zeros-in-matlab/ >> > > Thanks. > And this one: https://en.wikipedia.org/wiki/Signed_zero > > It would be possible to document it in the ieee() or number_properties > pages, or the zeros() one, > or the %inf one, or in a dedicated page, to report Scilab behaviors > wrt it for some particular functions... > > Reports about Scilab functions that make a difference between -0 and 0 > are welcome. We have at least atan(): -->atan(0,0) ans = 0. -->atan(0,-0) ans = 3.1415927 Could be documented as example in the atan() page. From bruno.pincon at univ-lorraine.fr Fri Jun 29 08:50:49 2018 From: bruno.pincon at univ-lorraine.fr (=?UTF-8?Q?Pin=c3=a7on_Bruno?=) Date: Fri, 29 Jun 2018 08:50:49 +0200 Subject: [Scilab-users] What can be done with a signed zero -0 ? In-Reply-To: References: Message-ID: <1ede471c-4831-cf5f-35e6-b58820a23a0b@univ-lorraine.fr> Le 29/06/2018 ? 01:12, Samuel Gougeon a ?crit?: > Dear co-users, > > I am somewhat rediscovering that Scilab allows to defined a signed zero: > > --> zm = -0 > ?zm? = > ?? 0. > > --> 1/zm > ?ans? = > ? -Inf > > It looks not documented. I am wondering where is the best place to > document it (i mean, which existing page?), and even if it is > worthwhile to document it. > > Indeed, what can be done with it? Beside inverting it into -%inf, > other operations are rather disappointing: > > --> zm==0 > ?ans? = > ? T > > --> zm<0 > ?ans? = > ? F > > --> sign(zm) > ?ans? = > ?? 0. > > Any idea about applications? ??? Hi, there is no surprise here, it is (or should be) the same for ?? any language using floating-point arithmetic as all these behaviors ?? follow the floating-point standard. But yes the signed zero (so ?? 2 zeros in floating-point arithmetic) is surprising. Maybe a ?? dedicated help page could be a good idea... ? Bruno From Clement.David at esi-group.com Fri Jun 29 14:03:02 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Fri, 29 Jun 2018 12:03:02 +0000 Subject: [Scilab-users] Scilab Cloud App In-Reply-To: <5B2E892A.5020104@hslmg.de> References: <5B2E892A.5020104@hslmg.de> Message-ID: <140fde28fdeb056eec34c6598b9e0c0b516115cf.camel@esi-group.com> Hallo Jens, Well, first the Scilab Cloud App service is not free, if you wish to test it please contact team at scilab.io ! A demonstation video is available as https://youtu.be/MaPKnUIEwoY ; as you might notice, the user interaction is limited to uicontrol and plot management. There is no way to get the code out of the web service if the application/toolbox/script does not allow that. Technically speaking, this is not a web applet technology (Scilab running within the browser) but rather a web service technology (Scilab running within the cloud/servers). Thanks, -- Cl?ment Le samedi 23 juin 2018 ? 19:53 +0200, Jens Simon Strom a ?crit : > Hallo, > I happended to see the page Scilab Cloud App, and was attracted by the slogan "Don?t waste your > time in learning HTML/JS". > > I know web applets being availabe to the public via an URL and allowing some mathematical > calculations after some inputs. > > Given a functional Scilab script including a couple of functions, does the associated Scilab Cloud > App allow public acces to this script, when I publish the appropriate URL on my webpage? > Is there a Scilab Cloud App (any content is welcome) which I coud run as an example? > > Trying this one on Firefox lead to nothing. > > > Kind regards > Jens > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sandeep.nagar at gmail.com Fri Jun 29 14:18:12 2018 From: sandeep.nagar at gmail.com (Sandeep Nagar) Date: Fri, 29 Jun 2018 17:48:12 +0530 Subject: [Scilab-users] Scilab Cloud App In-Reply-To: <140fde28fdeb056eec34c6598b9e0c0b516115cf.camel@esi-group.com> References: <5B2E892A.5020104@hslmg.de> <140fde28fdeb056eec34c6598b9e0c0b516115cf.camel@esi-group.com> Message-ID: Hi, Here is an option from Indian Institute of Technology, Bombay (link ) Regards --------- My books My Amazon Author Profile Training profile: http://sandeepnagar4.wix.com/compuski Research profile: Google Scholar , Linkedin , Researchgate --------- *Dr. Sandeep Nagar* On Fri, Jun 29, 2018 at 5:33 PM Cl?ment David wrote: > Hallo Jens, > > Well, first the Scilab Cloud App service is not free, if you wish to test > it please contact > team at scilab.io ! > > A demonstation video is available as https://youtu.be/MaPKnUIEwoY ; as > you might notice, the user > interaction is limited to uicontrol and plot management. There is no way > to get the code out of the > web service if the application/toolbox/script does not allow that. > > Technically speaking, this is not a web applet technology (Scilab running > within the browser) but rather a > web service technology (Scilab running within the cloud/servers). > > Thanks, > > -- > Cl?ment > > Le samedi 23 juin 2018 ? 19:53 +0200, Jens Simon Strom a ?crit : > > Hallo, > > I happended to see the page Scilab Cloud App, and was attracted by the > slogan "Don?t waste your > > time in learning HTML/JS". > > > > I know web applets being availabe to the public via an URL and allowing > some mathematical > > calculations after some inputs. > > > > Given a functional Scilab script including a couple of functions, does > the associated Scilab Cloud > > App allow public acces to this script, when I publish the appropriate > URL on my webpage? > > Is there a Scilab Cloud App (any content is welcome) which I coud run as > an example? > > > > Trying this one on Firefox lead to nothing. > > > > > > Kind regards > > Jens > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandeep.nagar at gmail.com Fri Jun 29 14:19:56 2018 From: sandeep.nagar at gmail.com (Sandeep Nagar) Date: Fri, 29 Jun 2018 17:49:56 +0530 Subject: [Scilab-users] Scilab Cloud App In-Reply-To: References: <5B2E892A.5020104@hslmg.de> <140fde28fdeb056eec34c6598b9e0c0b516115cf.camel@esi-group.com> Message-ID: Sorry the link given in previous mail is for main project. The link to cloud app is here . Regards --------- My books My Amazon Author Profile Training profile: http://sandeepnagar4.wix.com/compuski Research profile: Google Scholar , Linkedin , Researchgate --------- *Dr. Sandeep Nagar* On Fri, Jun 29, 2018 at 5:48 PM Sandeep Nagar wrote: > Hi, > > Here is an option from Indian Institute of Technology, Bombay (link > ) > > Regards > --------- > My books > My Amazon Author Profile > > Training profile: http://sandeepnagar4.wix.com/compuski > Research profile: Google Scholar > , > Linkedin , Researchgate > > --------- > *Dr. Sandeep Nagar* > > > > > On Fri, Jun 29, 2018 at 5:33 PM Cl?ment David > wrote: > >> Hallo Jens, >> >> Well, first the Scilab Cloud App service is not free, if you wish to test >> it please contact >> team at scilab.io ! >> >> A demonstation video is available as https://youtu.be/MaPKnUIEwoY ; as >> you might notice, the user >> interaction is limited to uicontrol and plot management. There is no way >> to get the code out of the >> web service if the application/toolbox/script does not allow that. >> >> Technically speaking, this is not a web applet technology (Scilab running >> within the browser) but rather a >> web service technology (Scilab running within the cloud/servers). >> >> Thanks, >> >> -- >> Cl?ment >> >> Le samedi 23 juin 2018 ? 19:53 +0200, Jens Simon Strom a ?crit : >> > Hallo, >> > I happended to see the page Scilab Cloud App, and was attracted by the >> slogan "Don?t waste your >> > time in learning HTML/JS". >> > >> > I know web applets being availabe to the public via an URL and allowing >> some mathematical >> > calculations after some inputs. >> > >> > Given a functional Scilab script including a couple of functions, does >> the associated Scilab Cloud >> > App allow public acces to this script, when I publish the appropriate >> URL on my webpage? >> > Is there a Scilab Cloud App (any content is welcome) which I coud run >> as an example? >> > >> > Trying this one on Firefox lead to nothing. >> > >> > >> > Kind regards >> > Jens >> > _______________________________________________ >> > users mailing list >> > users at lists.scilab.org >> > http://lists.scilab.org/mailman/listinfo/users >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: