From dunnephilp at aol.com Sun Sep 1 21:09:57 2013 From: dunnephilp at aol.com (PeterD) Date: Sun, 1 Sep 2013 12:09:57 -0700 (PDT) Subject: [Scilab-users] Reading AVIs and Webcam with avireadframe Message-ID: <1378062597059-4027320.post@n3.nabble.com> Hello, I am an experienced Matlab user but I am new to Scilab. I am interested in processing video sequences so I have installed SIVP and IDP via atoms. I opened an avi using aviopen, but when I used avireadframe it returned: Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "sivp" function. Save your data and restart Scilab. I am using Scilab 541 in Windows 7 (64bit). I have OpenCV installed with ffmpeg and OpenCV opens the webcam without problems. I have searched for any clues to what might be going wrong, and I haven't managed to solve the problem. I would be grateful if anybody has any suggestion that might help. Thank you PeterD -- View this message in context: http://mailinglists.scilab.org/Reading-AVIs-and-Webcam-with-avireadframe-tp4027320.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at esterline.com Mon Sep 2 15:32:59 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 2 Sep 2013 15:32:59 +0200 Subject: [Scilab-users] use of fsolve Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF63@exchsrv.auxitrol.ad> Dear All A basic question : what is the correct synthax is order to call the constants cst and R_ in the foo function ? do I need to use "global" variable ? Thanks Paul function [f, ind]=foo(x, cst, R_, ind) f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; endfunction function [f, ind]=foo2(x, ind) cst = [106 ; 30 ; 54 ; 15] R_ = [9 ; 9] f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; endfunction // constants cst = [106 ; 30 ; 54 ; 15] R_ = [9 ; 9] x0 = cst x1 = zeros(4,1) // calculationusing fsolve T1 = fsolve(x0,foo) T2 = fsolve(x1,foo2) -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.becu at maya-technologies.com Mon Sep 2 17:25:15 2013 From: stephane.becu at maya-technologies.com (Stephane BECU) Date: Mon, 2 Sep 2013 15:25:15 +0000 Subject: [Scilab-users] SCETOEXE module issues under windows x64 Message-ID: <09781476dcf04cd9a9b3cf25ae704768@EXCHSRV.maya-technologies.local> Dear ell, After some investigations, I found that the DLLS issue came from a bug of the scetoexe module when used with Windows x64 scilab versions. I noticed the issue with both scilab 5.3.3 and scilab 5.4.1. Is there any update opf the module to make it run safely under windows x64? Thanks for reply, ________________________________ De : Stephane BECU Envoy? : jeudi 29 ao?t 2013 15:41 ? : International users mailing list for Scilab. Objet : RE: [Scilab-users] Convert scilab sce files into executable files Thanks Samuel for reply, I've tried using scetoexe but it did seem that straightforward. Some error messages appeared in the windows console when running the generated .exe file"CAN NOT LOAD DLLS". When copying from the SCI/bin directory to my application directory the following dll libraries the same error mesages appeared: * call_scilab.dll * api_scilab.dll * output_stream.dll * libscilab.dll * fileio.dll * MALLOC.dll ________________________________ De : users-bounces at lists.scilab.org de la part de Samuel Gougeon Envoy? : mercredi 28 ao?t 2013 15:13 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Convert scilab sce files into executable files Hello, Le 28/08/2013 13:17, Stephane BECU a ?crit : I'd like to compile .sce scilab files into .exe files in order to create a program which does not need the scilab software to be installed (standalone program). I've read many different ways to do that based on implementation of a c++ code using call_scilab or api_scilab libraries or simply using the 'scetoexe' ATOMS module. executables made through scetoexe need Scilab to be installed. Equalis is proposing a product fullfilling your requirements: http://www.equalis.com/?page=CoderAndCompiler As far as i know, it is the only possibility to do that. Regards Samuel Gougeon [Maya Technologies] Stephane BECU Tel: 0438495901 Mobile: www.maya-technologies.com Maya Technologies La Petite Halle ZAC Bouchayer Viallet 31, rue Gustave Eiffel 38 000 Grenoble -------------- next part -------------- An HTML attachment was scrubbed... URL: From omorr at uns.ac.rs Mon Sep 2 17:32:14 2013 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Mon, 02 Sep 2013 17:32:14 +0200 Subject: [Scilab-users] use of fsolve In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF63@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF63@exchsrv.auxitrol.ad> Message-ID: <5224AF7E.4070502@uns.ac.rs> Hello, If you have some additional parameters in your function like this f(x,a,b..)=0 searching x, then use list() in fsolve() calling with the function name as the first argument and parameters as subsequent arguments - like this f.e. clc, clear function f=foo(x,cst,R_) f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; endfunction // constants a = [106 ; 30 ; 54 ; 15] //a would be cst b = [9 ; 9] //b would be R_ //Initial guess x1 = zeros(4,1) // calculation using fsolve // ind - termination indicator // x - solution // f - function values at the solution [x,f,ind] = fsolve(x1,list(foo,a,b)) Regards, Radovan On 9/2/2013 3:32 PM, Carrico, Paul wrote: > Dear All > A basic question : what is the correct synthax is order to call the constants cst and R_ in the foo function ? do I need to use "global" variable ? > Thanks > Paul > function [f,ind]=foo(x,cst,R_,ind) > f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; > f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; > f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; > f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; > endfunction > > function [f,ind]=foo2(x,ind) > cst = [106 ; 30 ; 54 ; 15] > R_ = [9 ; 9] > f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; > f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; > f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; > f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; > endfunction > > // constants > cst = [106 ; 30 ; 54 ; 15] > R_ = [9 ; 9] > > x0 = cst > x1 = zeros(4,1) > > //calculationusingfsolve > T1 = fsolve(x0,foo) > T2 = fsolve(x1,foo2) > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > > _______________________________________________ > 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 Mon Sep 2 18:16:31 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 2 Sep 2013 18:16:31 +0200 Subject: [Scilab-users] =?iso-8859-1?q?RE=A0=3A__use_of_fsolve?= References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF63@exchsrv.auxitrol.ad> <5224AF7E.4070502@uns.ac.rs> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BF9A96C@exchsrv.auxitrol.ad> thanks all -------- Message d'origine-------- De: users-bounces at lists.scilab.org de la part de Radovan Omorjan Date: lun. 02/09/2013 17:32 ?: International users mailing list for Scilab. Objet : Re: [Scilab-users] use of fsolve Hello, If you have some additional parameters in your function like this f(x,a,b..)=0 searching x, then use list() in fsolve() calling with the function name as the first argument and parameters as subsequent arguments - like this f.e. clc, clear function f=foo(x,cst,R_) f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; endfunction // constants a = [106 ; 30 ; 54 ; 15] //a would be cst b = [9 ; 9] //b would be R_ //Initial guess x1 = zeros(4,1) // calculation using fsolve // ind - termination indicator // x - solution // f - function values at the solution [x,f,ind] = fsolve(x1,list(foo,a,b)) Regards, Radovan On 9/2/2013 3:32 PM, Carrico, Paul wrote: > Dear All > A basic question : what is the correct synthax is order to call the constants cst and R_ in the foo function ? do I need to use "global" variable ? > Thanks > Paul > function [f,ind]=foo(x,cst,R_,ind) > f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; > f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; > f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; > f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; > endfunction > > function [f,ind]=foo2(x,ind) > cst = [106 ; 30 ; 54 ; 15] > R_ = [9 ; 9] > f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; > f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; > f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; > f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; > endfunction > > // constants > cst = [106 ; 30 ; 54 ; 15] > R_ = [9 ; 9] > > x0 = cst > x1 = zeros(4,1) > > //calculationusingfsolve > T1 = fsolve(x0,foo) > T2 = fsolve(x1,foo2) > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3986 bytes Desc: not available URL: From paul.carrico at free.fr Tue Sep 3 08:19:28 2013 From: paul.carrico at free.fr (Paul Carrico) Date: Tue, 3 Sep 2013 08:19:28 +0200 Subject: [Scilab-users] use of fsolve In-Reply-To: <5224AF7E.4070502@uns.ac.rs> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF63@exchsrv.auxitrol.ad> <5224AF7E.4070502@uns.ac.rs> Message-ID: <000f01cea86d$8c397340$a4ac59c0$@carrico@free.fr> Dear All Additional ? silly ? question : in the system herebellow, the solver finds 4 values (1 per variable), but we know there?s 4 couples of results due to the 2nd order ; of course the values depend on the starting point I feel there?s a strategy in order to find all the solution but I don?t know (or I don?t remember) how to proceed : any advice or reading in order to solve such kind of system ? Thanks Paul De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Radovan Omorjan Envoy? : lundi 2 septembre 2013 17:32 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] use of fsolve Hello, If you have some additional parameters in your function like this f(x,a,b..)=0 searching x, then use list() in fsolve() calling with the function name as the first argument and parameters as subsequent arguments - like this f.e. clc, clear function f=foo(x, cst, R_) f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; endfunction // constants a = [106 ; 30 ; 54 ; 15] //a would be cst b = [9 ; 9] //b would be R_ //Initial guess x1 = zeros(4,1) // calculation using fsolve // ind - termination indicator // x - solution // f - function values at the solution [x,f,ind] = fsolve(x1,list(foo,a,b)) Regards, Radovan On 9/2/2013 3:32 PM, Carrico, Paul wrote: Dear All A basic question : what is the correct synthax is order to call the constants cst and R_ in the foo function ? do I need to use "global" variable ? Thanks Paul function [f, ind]=foo(x, cst, R_, ind) f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; endfunction function [f, ind]=foo2(x, ind) cst = [106 ; 30 ; 54 ; 15] R_ = [9 ; 9] f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; endfunction // constants cst = [106 ; 30 ; 54 ; 15] R_ = [9 ; 9] x0 = cst x1 = zeros(4,1) // calculationusing fsolve T1 = fsolve(x0,foo) T2 = fsolve(x1,foo2) ---------------------------------------------------------------------------- ---- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ 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.becu at maya-technologies.com Tue Sep 3 08:42:36 2013 From: stephane.becu at maya-technologies.com (Stephane BECU) Date: Tue, 3 Sep 2013 06:42:36 +0000 Subject: [Scilab-users] SCETOEXE module issues under windows x64 In-Reply-To: <09781476dcf04cd9a9b3cf25ae704768@EXCHSRV.maya-technologies.local> References: <09781476dcf04cd9a9b3cf25ae704768@EXCHSRV.maya-technologies.local> Message-ID: <28b564763d5c455197de98f41ccc8b04@EXCHSRV.maya-technologies.local> Dear all, After some investigations, I found that the DLLS issue came from a bug of the scetoexe module when used with Windows x64 scilab versions. I noticed the issue with both scilab 5.3.3 and scilab 5.4.1. Is there any update opf the module to make it run safely under windows x64? Thanks for reply, ________________________________ De : Stephane BECU Envoy? : jeudi 29 ao?t 2013 15:41 ? : International users mailing list for Scilab. Objet : RE: [Scilab-users] Convert scilab sce files into executable files Thanks Samuel for reply, I've tried using scetoexe but it did seem that straightforward. Some error messages appeared in the windows console when running the generated .exe file"CAN NOT LOAD DLLS". When copying from the SCI/bin directory to my application directory the following dll libraries the same error mesages appeared: * call_scilab.dll * api_scilab.dll * output_stream.dll * libscilab.dll * fileio.dll * MALLOC.dll ________________________________ De : users-bounces at lists.scilab.org de la part de Samuel Gougeon Envoy? : mercredi 28 ao?t 2013 15:13 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Convert scilab sce files into executable files Hello, Le 28/08/2013 13:17, Stephane BECU a ?crit : I'd like to compile .sce scilab files into .exe files in order to create a program which does not need the scilab software to be installed (standalone program). I've read many different ways to do that based on implementation of a c++ code using call_scilab or api_scilab libraries or simply using the 'scetoexe' ATOMS module. executables made through scetoexe need Scilab to be installed. Equalis is proposing a product fullfilling your requirements: http://www.equalis.com/?page=CoderAndCompiler As far as i know, it is the only possibility to do that. Regards Samuel Gougeon [Maya Technologies] Stephane BECU Tel: 0438495901 Mobile: www.maya-technologies.com Maya Technologies La Petite Halle ZAC Bouchayer Viallet 31, rue Gustave Eiffel 38 000 Grenoble -------------- next part -------------- An HTML attachment was scrubbed... URL: From hi_life4 at yahoo.in Tue Sep 3 06:45:13 2013 From: hi_life4 at yahoo.in (hilife5) Date: Mon, 2 Sep 2013 21:45:13 -0700 (PDT) Subject: [Scilab-users] functions in scilab which can provide the information of scilab script file Message-ID: <1378183513795-4027327.post@n3.nabble.com> I want to know, is there exist any functions in scilab which can provide the information of scilab script file. function1.sci is a script file and content of this script file is given below function y = function1 ( x ) y = 1 * function1_support ( x ) endfunction function y = function1_support ( x ) y = 3 * x endfunction After loading the file using .net application then i want to know, is there any scilab function exist for getting the information like function name, input parameter name and output parameter name. .net code for executing the script file is as follows obj1.SendScilabJob("exec('scriptpath')") -- View this message in context: http://mailinglists.scilab.org/functions-in-scilab-which-can-provide-the-information-of-scilab-script-file-tp4027327.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From omorr at uns.ac.rs Tue Sep 3 09:33:45 2013 From: omorr at uns.ac.rs (omorr at uns.ac.rs) Date: Tue, 3 Sep 2013 09:33:45 +0200 (CEST) Subject: [Scilab-users] use of fsolve In-Reply-To: <000f01cea86d$8c397340$a4ac59c0$@carrico@free.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF63@exchsrv.auxitrol.ad> <5224AF7E.4070502@uns.ac.rs> <000f01cea86d$8c397340$a4ac59c0$@carrico@free.fr> Message-ID: <44615.2001:4170:2000:1:21a:64ff:feca:d930.1378193625.squirrel@portal.uns.ac.rs> Hello, If I understood you well, you are asking to solve a polynomial in more than one variable and to get all of the possible multiple solutions at once. As far as I know, there is no easy way to get all of this numerically. I do not believe there is a simple way to do that in Scilab as well (I would like that I was wrong about it). Maybe to try finding the solution using some symbolical engine (Maxima, Maple, Mathematica...) Regards, Radovan > Dear All > > > > Additional ? silly ? question : in the system herebellow, the solver finds > 4 > values (1 per variable), but we know there?s 4 couples of results due to > the 2nd order ; of course the values depend on the starting point > > > > I feel there?s a strategy in order to find all the solution but I don?t > know > (or I don?t remember) how to proceed : any advice or reading in order to > solve such kind of system ? > > > > Thanks > > > > Paul > > > > De : users-bounces at lists.scilab.org > [mailto:users-bounces at lists.scilab.org] > De la part de Radovan Omorjan > Envoy? : lundi 2 septembre 2013 17:32 > ? : International users mailing list for Scilab. > Objet : Re: [Scilab-users] use of fsolve > > > > Hello, > > If you have some additional parameters in your function like this > > f(x,a,b..)=0 > > searching x, then use list() in fsolve() calling with the function name as > the first argument and parameters as subsequent arguments - like this f.e. > > clc, clear > function f=foo(x, cst, R_) > f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; > f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; > f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; > f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; > endfunction > > // constants > a = [106 ; 30 ; 54 ; 15] //a would be cst > b = [9 ; 9] //b would be R_ > > //Initial guess > x1 = zeros(4,1) > > // calculation using fsolve > // ind - termination indicator > // x - solution > // f - function values at the solution > [x,f,ind] = fsolve(x1,list(foo,a,b)) > > Regards, > Radovan > > On 9/2/2013 3:32 PM, Carrico, Paul wrote: > > Dear All > A basic question : what is the correct synthax is order to call the > constants cst and R_ in the foo function ? do I need to use "global" > variable ? > Thanks > Paul > function [f, ind]=foo(x, cst, R_, ind) > f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; > f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; > f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; > f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; > endfunction > > function [f, ind]=foo2(x, ind) > cst = [106 ; 30 ; 54 ; 15] > R_ = [9 ; 9] > f(1) = (x(3) - cst(3))*(x(3) - x(1)) + (x(4) - cst(4))*(x(4) - x(2)) ; > f(2) = (x(1) - cst(1))*(x(3) - x(1)) + (x(2) - cst(2))*(x(4) - x(2)) ; > f(3) = (x(1) - cst(1))^2 + (x(2) - cst(2))^2 - R_(1)^2 ; > f(4) = (x(3) - cst(3))^2 + (x(4) - cst(4))^2 - R_(2)^2 ; > endfunction > > // constants > cst = [106 ; 30 ; 54 ; 15] > R_ = [9 ; 9] > > x0 = cst > x1 = zeros(4,1) > > // calculationusing fsolve > T1 = fsolve(x0,foo) > T2 = fsolve(x1,foo2) > > > > ---------------------------------------------------------------------------- > ---- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la > personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail > par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le > message de votre syst?me. Toute divulgation, copie ou distribution de cet > e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error, please contact the sender and > delete the email from your system. If you are not the named addressee you > should not disseminate, distribute or copy this email. > > > > > _______________________________________________ > 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 Christophe.Dang at sidel.com Tue Sep 3 10:02:10 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 3 Sep 2013 10:02:10 +0200 Subject: [Scilab-users] use of fsolve In-Reply-To: <000f01cea86d$8c397340$a4ac59c0$@carrico@free.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF63@exchsrv.auxitrol.ad> <5224AF7E.4070502@uns.ac.rs> <000f01cea86d$8c397340$a4ac59c0$@carrico@free.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31EE89B48@301EX00100.sidel.com> Hello, > De la part de Paul Carrico > Envoy? : mardi 3 septembre 2013 08:19 > > I feel there's a strategy in order to find all the solution but I > don't know (or I don't remember) how to proceed You've got the same kind of problems for optimisation, where you look for an absolute minimum and not a local one. A popular solution is to make a Monte Carlo method on the starting points, e.g. with the Metropolis-Hastings algorithm https://en.wikipedia.org/wiki/Metropolis%E2%80%93Hastings_algorithm https://fr.wikipedia.org/wiki/Algorithme_de_Metropolis-Hastings So maybe you can try this to find all the possible solutions? Hope this helps -- 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 kent.slaughter at uqconnect.edu.au Tue Sep 3 09:49:19 2013 From: kent.slaughter at uqconnect.edu.au (Kent Slaughter) Date: Tue, 3 Sep 2013 07:49:19 +0000 Subject: [Scilab-users] Xcos error Message-ID: <6D367799ACB8BE4E92986DCDF7DF952C4B657D8D@BN1PRD0112MB600.prod.exchangelabs.com> If I try to drag any block into Xcos, I get "Unable to load block from..." as soon as the mouse moves after I drag. Any idea why? Thanks Kent -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Tue Sep 3 10:20:23 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 3 Sep 2013 10:20:23 +0200 Subject: [Scilab-users] functions in scilab which can provide the information of scilab script file In-Reply-To: <1378183513795-4027327.post@n3.nabble.com> References: <1378183513795-4027327.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31EE89BBB@301EX00100.sidel.com> Hello, > De la part de hilife5 > Envoy? : mardi 3 septembre 2013 06:45 > > i want to know, is there any scilab function exist for getting the > information like function name, input parameter name and output > parameter name. If you know the function name, you can get informations with fun2string() macrovar() macr2tree() macr2lst() (see the related help). Best 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 paul.bignier at scilab-enterprises.com Tue Sep 3 10:24:51 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Tue, 03 Sep 2013 10:24:51 +0200 Subject: [Scilab-users] Xcos error In-Reply-To: <6D367799ACB8BE4E92986DCDF7DF952C4B657D8D@BN1PRD0112MB600.prod.exchangelabs.com> References: <6D367799ACB8BE4E92986DCDF7DF952C4B657D8D@BN1PRD0112MB600.prod.exchangelabs.com> Message-ID: <52259CD3.4010603@scilab-enterprises.com> Hello, This error sometimes occur when you try to move too fast, or when you add blocks successively too rapidly. Try to slow down or empty your diagram before dragging the first block, and let us know how it works. Regards, Paul. On 09/03/2013 09:49 AM, Kent Slaughter wrote: > If I try to drag any block into Xcos, I get "Unable to load block > from..." as soon as the mouse moves after I drag. Any idea why? > Thanks > Kent > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hi_life4 at yahoo.in Tue Sep 3 11:07:45 2013 From: hi_life4 at yahoo.in (hilife5) Date: Tue, 3 Sep 2013 02:07:45 -0700 (PDT) Subject: [Scilab-users] functions in scilab which can provide the information of scilab script file In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F31EE89BBB@301EX00100.sidel.com> References: <1378183513795-4027327.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F31EE89BBB@301EX00100.sidel.com> Message-ID: <1378199265454-4027335.post@n3.nabble.com> I didn't know the function name. when i am using listfunctions() call after executing the scilab script. then i am getting all the function that has been executed in scilab. Is there any way to get function names from the scilab script. -- View this message in context: http://mailinglists.scilab.org/functions-in-scilab-which-can-provide-the-information-of-scilab-script-file-tp4027327p4027335.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From hi_life4 at yahoo.in Tue Sep 3 12:20:06 2013 From: hi_life4 at yahoo.in (hilife5) Date: Tue, 3 Sep 2013 03:20:06 -0700 (PDT) Subject: [Scilab-users] how to get list of object that are present in scilab script file Message-ID: <1378203606358-4027336.post@n3.nabble.com> I want to know is there exist any way to get the list of objects like variable names, matrices, plots that are present in scilab script file. Thanks -- View this message in context: http://mailinglists.scilab.org/how-to-get-list-of-object-that-are-present-in-scilab-script-file-tp4027336.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue Sep 3 13:01:05 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 3 Sep 2013 13:01:05 +0200 Subject: [Scilab-users] how to get list of object that are present in scilab script file In-Reply-To: <1378203606358-4027336.post@n3.nabble.com> References: <1378203606358-4027336.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31EE89F68@301EX00100.sidel.com> Hello, > De la part de hilife5 > Envoy? : mardi 3 septembre 2013 12:20 > > I want to know is there exist any way to get the list of objects like > variable names, matrices, plots that are present in scilab script > file. Does help_from_sci() fulfill your need? 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 paul.bignier at scilab-enterprises.com Tue Sep 3 15:51:49 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Tue, 03 Sep 2013 15:51:49 +0200 Subject: [Scilab-users] Xcos error In-Reply-To: <6D367799ACB8BE4E92986DCDF7DF952C4B657D8D@BN1PRD0112MB600.prod.exchangelabs.com> References: <6D367799ACB8BE4E92986DCDF7DF952C4B657D8D@BN1PRD0112MB600.prod.exchangelabs.com> Message-ID: <5225E975.3040504@scilab-enterprises.com> A bug has been opened to deal with this issue: http://bugzilla.scilab.org/show_bug.cgi?id=12894 On 09/03/2013 09:49 AM, Kent Slaughter wrote: > If I try to drag any block into Xcos, I get "Unable to load block > from..." as soon as the mouse moves after I drag. Any idea why? > Thanks > Kent > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Tue Sep 3 17:27:44 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 03 Sep 2013 17:27:44 +0200 Subject: [Scilab-users] how to get list of object that are present in scilab script file In-Reply-To: <1378203606358-4027336.post@n3.nabble.com> References: <1378203606358-4027336.post@n3.nabble.com> Message-ID: <5225FFF0.6020503@inria.fr> Le 03/09/2013 12:20, hilife5 a ?crit : > I want to know is there exist any way to get the list of objects like > variable names, matrices, plots that are present in scilab script file. for script file, no but it is possible for functions using the macrovar function Serge Steer > > Thanks > > > > -- > View this message in context: http://mailinglists.scilab.org/how-to-get-list-of-object-that-are-present-in-scilab-script-file-tp4027336.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From stephane.mottelet at utc.fr Tue Sep 3 18:00:58 2013 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Tue, 03 Sep 2013 18:00:58 +0200 Subject: [Scilab-users] how to get list of object that are present in scilab script file In-Reply-To: <5225FFF0.6020503@inria.fr> References: <1378203606358-4027336.post@n3.nabble.com> <5225FFF0.6020503@inria.fr> Message-ID: <522607BA.4030802@utc.fr> Le 03/09/13 17:27, Serge Steer a ?crit : > Le 03/09/2013 12:20, hilife5 a ?crit : >> I want to know is there exist any way to get the list of objects like >> variable names, matrices, plots that are present in scilab script file. > for script file, no but it is possible for functions using the > macrovar function > Serge Steer >> >> Thanks >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/how-to-get-list-of-object-that-are-present-in-scilab-script-file-tp4027336.html >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. >> _______________________________________________ >> 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 All the variables created by foo.sce at the workspace level can be obtained like this : clear names=who('local'); exec('foo.sce',-1); names=setdiff(names,who('local')); This trick is a basis for a more clever method (e.g. by using typeof a posteriori). S. From stephane.mottelet at utc.fr Tue Sep 3 18:18:49 2013 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Tue, 03 Sep 2013 18:18:49 +0200 Subject: [Scilab-users] how to get list of object that are present in scilab script file In-Reply-To: <5225FFF0.6020503@inria.fr> References: <1378203606358-4027336.post@n3.nabble.com> <5225FFF0.6020503@inria.fr> Message-ID: <52260BE9.1080409@utc.fr> Le 03/09/13 17:27, Serge Steer a ?crit : > Le 03/09/2013 12:20, hilife5 a ?crit : >> I want to know is there exist any way to get the list of objects like >> variable names, matrices, plots that are present in scilab script file. > for script file, no but it is possible for functions using the > macrovar function > Serge Steer >> >> Thanks >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/how-to-get-list-of-object-that-are-present-in-scilab-script-file-tp4027336.html >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. >> _______________________________________________ >> 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 Maybe a brute force method could work : all the variables created by a script 'foo.sce' at the workspace level can be obtained like this : clear names=who('local'); exec('foo.sce',-1); names=setdiff(who('local'),'names'); This trick is a basis for a more clever method (e.g. by using typeof a posteriori). You could also on the fly encapsulate the script in a function and use macrovar. S. From wknoelly at gmail.com Tue Sep 3 21:03:32 2013 From: wknoelly at gmail.com (knobs) Date: Tue, 3 Sep 2013 12:03:32 -0700 (PDT) Subject: [Scilab-users] scilab 6 - Does not start on Mac OS X 10.8.4 Message-ID: <1378235012629-4027342.post@n3.nabble.com> Hello, I have been running Scilab 5.4.1 on my Macbook Pro under ML 10.8.4 without any major issues. Today I tried Scilab 6 and I receive the errors listed below. The error states that a library is missing in the folder /sw/... I do not have any /sw/ directory on root? Does anyone know a simple fix? ...could not find much by googling, either. Any hints & help is highly appreciated. I have the OS X Java 2013-04 and the Oracle JRE 1.7. 25 installed... Thank you for your help. Wil. *========== Icon in Applications =========== Consol output... * *============================================ ========== From the terminal ============== * ============================================ ============================================ -- View this message in context: http://mailinglists.scilab.org/scilab-6-Does-not-start-on-Mac-OS-X-10-8-4-tp4027342.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adershowitz at exponent.com Tue Sep 3 21:21:43 2013 From: adershowitz at exponent.com (Adam Dershowitz) Date: Tue, 3 Sep 2013 19:21:43 +0000 Subject: [Scilab-users] scilab 6 - Does not start on Mac OS X 10.8.4 In-Reply-To: <1378235012629-4027342.post@n3.nabble.com> Message-ID: <011BB2FD7D33AB49936FD297F594AEB8201FE945@SFMB02.exponent.com> The /sw folder is where fink, the package manager, keeps all of its stuff. What the message below means is that the build that you are using includes the libcurl library. But, that library was built to search for libcares.2.dylib in /sw which you obviously don't have. I don't know an easy fix. But, a few options: 1) Report the bug for this development version, as it is unlikely that anyone can run that binary, unless they have separately installed the correct library. 2) Build that library for yourself from here: http://c-ares.haxx.se/ and then copy, or link it, to the correct location. 3) Build that library yourself using a package manager, such as fink (which seems like what was done for the provided binary) or using macports (which is a similar package manager). -- Adam From: knobs > Reply-To: "International users mailing list for Scilab." > Date: Tuesday, September 3, 2013 3:03 PM To: "users at lists.scilab.org" > Subject: [Scilab-users] scilab 6 - Does not start on Mac OS X 10.8.4 Hello, I have been running Scilab 5.4.1 on my Macbook Pro under ML 10.8.4 without any major issues. Today I tried Scilab 6 and I receive the errors listed below. The error states that a library is missing in the folder /sw/... I do not have any /sw/ directory on root? Does anyone know a simple fix? ...could not find much by googling, either. Any hints & help is highly appreciated. I have the OS X Java 2013-04 and the Oracle JRE 1.7. 25 installed... Thank you for your help. Wil. ========== Icon in Applications =========== Consol output... Process: scilab-bin [33224] Path: /Applications/scilab-branch-YaSp-1378141995.app/Contents/MacOS/bin/scilab-bin Identifier: scilab-bin Version: ??? Code Type: X86-64 (Native) Parent Process: sh [33180] User ID: 501 Date/Time: 2013-09-03 20:43:39.158 +0200 OS Version: Mac OS X 10.8.4 (12E55) Report Version: 10 Crashed Thread: 0 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Application Specific Information: dyld: launch, loading dependent libraries Dyld Error Message: Library not loaded: /sw/*/libcares.2.dylib Referenced from: /Applications/scilab-branch-YaSp-1378141995.app/Contents/MacOS/lib/thirdparty/libcurl.4.dylib Reason: image not found ============================================ ========== From the terminal ============== *myname*$ ./bin/scilab /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home dyld: Library not loaded: /sw/lib/libcares.2.dylib Referenced from: /Applications/scilab-branch-YaSp-1378141995.app/Contents/MacOS/lib/thirdparty/libcurl.4.dylib Reason: image not found ./bin/scilab: line 897: 32671 Trace/BPT trap: 5 "$SCILABBIN" "$@" *myname*$ ./bin/scilab /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home dyld: Library not loaded: /sw/lib/libcares.2.dylib Referenced from: /Applications/scilab-branch-YaSp-1378141995.app/Contents/MacOS/lib/thirdparty/libcurl.4.dylib Reason: image not found ./bin/scilab: line 897: 32718 Trace/BPT trap: 5 "$SCILABBIN" "$@" *myname*$ ./bin/scilab-adv-cli dyld: Library not loaded: /sw/lib/libcares.2.dylib Referenced from: /Applications/scilab-branch-YaSp-1378141995.app/Contents/MacOS/lib/thirdparty/libcurl.4.dylib Reason: image not found ./bin/scilab-adv-cli: line 897: 32766 Trace/BPT trap: 5 "$SCILABBIN" "$@" *myname*$ ./bin/scilab-cli dyld: Library not loaded: /sw/lib/libcares.2.dylib Referenced from: /Applications/scilab-branch-YaSp-1378141995.app/Contents/MacOS/lib/thirdparty/libcurl.4.dylib Reason: image not found ./bin/scilab-cli: line 897: 32813 Trace/BPT trap: 5 "$SCILABBIN" "$@" ============================================ ============================================ ________________________________ View this message in context: scilab 6 - Does not start on Mac OS X 10.8.4 Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wknoelly at gmail.com Tue Sep 3 22:57:51 2013 From: wknoelly at gmail.com (knobs) Date: Tue, 3 Sep 2013 13:57:51 -0700 (PDT) Subject: [Scilab-users] scilab 6 - Does not start on Mac OS X 10.8.4 In-Reply-To: <011BB2FD7D33AB49936FD297F594AEB8201FE945@SFMB02.exponent.com> References: <1378235012629-4027342.post@n3.nabble.com> <011BB2FD7D33AB49936FD297F594AEB8201FE945@SFMB02.exponent.com> Message-ID: <1378241871804-4027345.post@n3.nabble.com> Hi Adam Thank you for the quick reply! Well, I like to scilab 6 without installing anything else. I might address that to the developers. There are - unfortunately - no binaries of Fink for Mac OSX 10.8.4. I would need to install it from the source files. That seems to be straight, though, according to the homepage. As for c-ares... I got an error already when running ./configure: ar not in PATH... that does not tell me much either. I think it comes with linux compilers ... Macports might be an option... but then again, I would like to ask the Scilab developers to have a self-contained installation for version 6, just like for 5.4.1. Thank you again. Wil. -- View this message in context: http://mailinglists.scilab.org/scilab-6-Does-not-start-on-Mac-OS-X-10-8-4-tp4027342p4027345.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed Sep 4 22:39:38 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 04 Sep 2013 22:39:38 +0200 Subject: [Scilab-users] multiples captures with regexp Message-ID: <52279A8A.6080208@free.fr> Hello, I would like to slice the following string with regexp: texte = "voir http://help.scilab.org/docs/5.4.1/fr_FR/regexp.html"; [iD, iF, matchs, captures] = regexp(texte,"|[^\s]+\:\/\/([^\/]+\/)+([^\/]*$)|i"); captures returning !fr_FR/ regexp.html ! while i would expect help.scilab.org/ docs/ 5.4.1/ fr_FR/ regexp.html since the capturing parentheses are iterated /at leas/t once by the ending + (as {1,} would do) in ([^\/]+\/)+ This slicing it likely possible with strtok() or strindex(), but i do not understand why with regexp the iteration is not performed. Nor with ([^\/]+?\/)+ Any hint would be appreciated Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezequielsoule at gmail.com Thu Sep 5 21:53:06 2013 From: ezequielsoule at gmail.com (Ezequiel Soule) Date: Thu, 05 Sep 2013 16:53:06 -0300 Subject: [Scilab-users] problem with splin3D In-Reply-To: <52260BE9.1080409@utc.fr> References: <1378203606358-4027336.post@n3.nabble.com> <5225FFF0.6020503@inria.fr> <52260BE9.1080409@utc.fr> Message-ID: <5228E122.2020206@gmail.com> Hello: I have a problem using the function splin3D(x,y,z,V) (for spline interpolation in 3D): whenever the vectors x,y,z have a diferent size, I get an error message: problem with flag "n", where n is the number of elements of one of the vectors (not always the same). The dimensions are correct, this is V is an nx x ny x nz hypermatrix as should be, when this is not the case the error message is different. thank you, Ezequiel From quantparis at numericable.fr Fri Sep 6 14:28:00 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Fri, 6 Sep 2013 14:28:00 +0200 (CEST) Subject: [Scilab-users] call_scilab link error (libscicore missing? in the bin folder) Message-ID: An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Fri Sep 6 14:37:38 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 06 Sep 2013 14:37:38 +0200 Subject: [Scilab-users] call_scilab link error (libscicore missing? in the bin folder) In-Reply-To: References: Message-ID: <5229CC92.10600@scilab-enterprises.com> On 06/09/2013 14:28, quantparis at numericable.fr wrote: > Hello > > I start to use scilab and want to use call_scilab., but I get the > following linking problem: > > I downloaded and extract the following file > scilab-5.4.1.bin.linux-x86_64.tar.gz > execute: > ~/scilab-5.4.1/bin/scilab > > then for call_scilab: > > according to the documentation: > In the binary version of Scilab, CFLAGS must be set to > /path/to/scilab/include/scilab/core/ and > /path/to/scilab/include/scilab/call_scilab > > but in the downloaded file the core subdirectory is not present > > and according to another source: > http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/Makefile.call_scilab.am;h=b3a3b8baaa1563dc1f73cc262b97987a74605af8;hb=HEAD > > it seems that there are 3 lib to link: > libscilab.so,libscicall_scilab.so et libscicore.so (this one is absent) > > > so in the C++ IDE I specified the following things: > for include: > scilab-5.4.1/include/scilab > for lib: > scilab-5.4.1/lib.scilab/libscilab.so > scilab-5.4.1/lib.scilab/libscicall_scilab.so What is your Linux distribution ? Try to give this option to the linker: --no-as-needed (or -Wl,--no-as-needed) Sylvestre From quantparis at numericable.fr Fri Sep 6 15:24:27 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Fri, 6 Sep 2013 15:24:27 +0200 (CEST) Subject: [Scilab-users] call_scilab link error (libscicore missing? in the bin folder) In-Reply-To: <5229CC92.10600@scilab-enterprises.com> Message-ID: An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Fri Sep 6 17:51:13 2013 From: paul.carrico at free.fr (Paul Carrico) Date: Fri, 6 Sep 2013 17:51:13 +0200 Subject: [Scilab-users] dakota & scilab Message-ID: <000001ceab18$eb12dd90$c13898b0$@carrico@free.fr> Dear All I'm trying to write a script in Scilab in order to launch several studies one after the other this WE ; I tested different syntax and methodology, and the one herebellow is the latest one : path_dakota = "C:\outils\Dakota\dakota-5.3.1.CYGWIN.i686\bin"; command_line = path_dakota + "\dakota -v" unix_g(command_line) I always have the following error : is it due to Scilab or Dakota ? Have a good WE Paul ########################################################################### C:\outils\Dakota\dakota-5.3.1.CYGWIN.i686\bin\dakota -v terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid 1 [sig] dakota 900 open_stackdumpfile: Dumping stack trace to dakota.exe.stackdump ans = -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Fri Sep 6 20:00:00 2013 From: paul.carrico at free.fr (Paul Carrico) Date: Fri, 6 Sep 2013 20:00:00 +0200 Subject: [Scilab-users] dakota & scilab Message-ID: <000401ceab2a$e8dc4950$ba94dbf0$@carrico@free.fr> I think I?ve understood the problem sorry for disturbing Paul De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Paul Carrico Envoy? : vendredi 6 septembre 2013 17:51 ? : 'International users mailing list for Scilab.' Objet : [Scilab-users] dakota & scilab Dear All I?m trying to write a script in Scilab in order to launch several studies one after the other this WE ; I tested different syntax and methodology, and the one herebellow is the latest one : path_dakota = "C:\outils\Dakota\dakota-5.3.1.CYGWIN.i686\bin"; command_line = path_dakota + "\dakota -v" unix_g(command_line) I always have the following error : is it due to Scilab or Dakota ? Have a good WE Paul ########################################################################### C:\outils\Dakota\dakota-5.3.1.CYGWIN.i686\bin\dakota -v terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid 1 [sig] dakota 900 open_stackdumpfile: Dumping stack trace to dakota.exe.stackdump ans = -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ATT00012.txt URL: From martibp at gmail.com Fri Sep 6 19:08:07 2013 From: martibp at gmail.com (=?UTF-8?Q?Mart=C3=AD?=) Date: Fri, 6 Sep 2013 10:08:07 -0700 (PDT) Subject: [Scilab-users] drag and rotate in Plots and 3Dplots not working. Help? Message-ID: <1378487287761-4027369.post@n3.nabble.com> Hello I'm finding a malfunction someone might be able to help me with. I found it in an application I'm developing, but I experiment the same behavior in the following extremelly simple example: I execute -->plot A new figure opens with standard SciLab demo plot. I check I can zoom plots using the mouse wheel, drag plot using left mouse button, and rotate using right mouse button. I click one of the menus above (File, Tools and Edit). I change my mind and I want to close the menu, so I left click outside the menu (at one of the plots, for example) so that the menu closes. I try to drag or rotate the plots but this functionality happens not to work anymore. The zoom function (mouse wheel) still works fine. The only way I find to be able to rotate and drag the plot data again is to close the figure and replot. What did it happen? Anyone else experienced this behavior? (I could not find any previos post on this topic) Does anybody knows any solution or work-around for it? Note: To be noticed that, when quitting the menu, if user clicks on the menu title (file, tools, edit) to quit the menu, this "bug" does not happen. This behavior has been detected in version 5.4.0 and 5.4.1 using plot and plot3D. Thank you in advance for any eventual help or comments, Kind regards, Mart? keywords: rotate, drag, plot, plot2D, plot3D, menu, uimenu -- View this message in context: http://mailinglists.scilab.org/drag-and-rotate-in-Plots-and-3Dplots-not-working-Help-tp4027369.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From krotersv at gmail.com Sat Sep 7 04:07:09 2013 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Sat, 07 Sep 2013 08:07:09 +0600 Subject: [Scilab-users] drag and rotate in Plots and 3Dplots not working. Help? In-Reply-To: <1378487287761-4027369.post@n3.nabble.com> References: <1378487287761-4027369.post@n3.nabble.com> Message-ID: <522A8A4D.405@gmail.com> 06.09.2013 23:08, Mart? ?????: > Hello > > I'm finding a malfunction someone might be able to help me with. > I found it in an application I'm developing, but I experiment the same > behavior in the following extremelly simple example: > > I execute > -->plot > > A new figure opens with standard SciLab demo plot. > I check I can zoom plots using the mouse wheel, drag plot using left mouse > button, and rotate using right mouse button. > I click one of the menus above (File, Tools and Edit). > I change my mind and I want to close the menu, so I left click outside the > menu (at one of the plots, for example) so that the menu closes. > I try to drag or rotate the plots but this functionality happens not to work > anymore. The zoom function (mouse wheel) still works fine. The only way I > find to be able to rotate and drag the plot data again is to close the > figure and replot. > > What did it happen? > Anyone else experienced this behavior? (I could not find any previos post on > this topic) > Does anybody knows any solution or work-around for it? > > > Note: To be noticed that, when quitting the menu, if user clicks on the menu > title (file, tools, edit) to quit the menu, this "bug" does not happen. This > behavior has been detected in version 5.4.0 and 5.4.1 using plot and plot3D. > > Thank you in advance for any eventual help or comments, > > Kind regards, > Mart? > > > > keywords: rotate, drag, plot, plot2D, plot3D, menu, uimenu > > > > -- > View this message in context: http://mailinglists.scilab.org/drag-and-rotate-in-Plots-and-3Dplots-not-working-Help-tp4027369.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi. I use Scilab-5.4.1 on RFRemix 18. I have the same problem. Function 'rotate_axes' does not work. You may work around this problem using axis property 'rotation_angles'. For example: a=gca(); a.rotation_angles=[35,49]; May be the reason of this problem is the same as the reason of http://bugzilla.scilab.org/show_bug.cgi?id=11377 . Stanislav From g.statkute at gmail.com Sun Sep 8 15:08:39 2013 From: g.statkute at gmail.com (Gintare Statkute) Date: Sun, 8 Sep 2013 16:08:39 +0300 Subject: [Scilab-users] Fwd: How to install SciLab in D disk? In-Reply-To: References: Message-ID: Reply : despite what installer write on the second directory choice , continue installation - the SciLab will be installed in the first choice folder, i.e. disk D. gintare ---------- Forwarded message ---------- From: Gintare Statkute Date: 8 September 2013 14:45 Subject: How to install SciLab in D disk? To: users at lists.scilab.org I need to install 'Scilab 5.4.1 - Windows 64 bits' on Windows 7, on the disk D, During the installation, although in the beginning Scilab permits to choose folder on the disk D, later is automatically switches to the disk C. What can be done? Image 1, I am able to select disk D Image2, I am able to select disk D and create a folder for the SciLab Image 3, if i press browser, i can see according file names that i am in the disk C Image 4. I can not choose to install in the disk D -- gintare statkute Mob: +37060805595 Skype: gintare.statkute e-mail: g.statkute at gmail.com -- gintare statkute Mob: +37060805595 Skype: gintare.statkute e-mail: g.statkute at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.wuerflinger at students.fh-wels.at Mon Sep 9 09:19:06 2013 From: florian.wuerflinger at students.fh-wels.at (=?UTF-8?Q?Florian_W=C3=BCrflinger?=) Date: Mon, 9 Sep 2013 00:19:06 -0700 (PDT) Subject: [Scilab-users] No bidirectional forces in Coselica?? Message-ID: <1378711146896-4027376.post@n3.nabble.com> Hello, I have a problem with simulating a two mass oscillator (two carts witch are connected by a spring, one cart is forced) in coselica. I tried to force the first cart with a sine force to stimulate the second cart. It seems that all forces in the simulation are positv if the sine starts positiv, and negative if the sine starts negative. So I can't stimulate the second cart to oscillate. Both carts move in positive (if I start with positive force) or negative direction (if I start with negative force). The screenshot shows the simulation program. Did I use a wrong forceblock??? I would be greatful if someone can help me. -- View this message in context: http://mailinglists.scilab.org/No-bidirectional-forces-in-Coselica-tp4027376.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From krishna at iee.org Sat Sep 7 21:01:53 2013 From: krishna at iee.org (Rad) Date: Sat, 7 Sep 2013 12:01:53 -0700 (PDT) Subject: [Scilab-users] setting initial value for a signal Message-ID: <1378580513946-4027372.post@n3.nabble.com> Is there a way to set the initial value of a signal in xcos, as in ? I searched the 'help' as well as 'mailing list' but couldn't find one. If this does not exist in scilab, please could one develop it.. -- View this message in context: http://mailinglists.scilab.org/setting-initial-value-for-a-signal-tp4027372.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From g.statkute at gmail.com Sun Sep 8 13:45:17 2013 From: g.statkute at gmail.com (Gintare Statkute) Date: Sun, 8 Sep 2013 14:45:17 +0300 Subject: [Scilab-users] How to install SciLab in D disk? Message-ID: I need to install 'Scilab 5.4.1 - Windows 64 bits' on Windows 7, on the disk D, because for unclear reasons Windows do not see memory on C disk and shows only 50-500 MB free, and constantly complains about the lack of space. DUring the installation, although in the beginning Scilab permits to choose folder on the disk D, later is automatically switches to the disk C. What can be done? Image 1, I am able to select disk D Image2, I am able to select disk D and create a folder for the SciLab Image 3, if i press browser, i can see according file names that i am in the disk C Image 4. I can not intstall in the disk D -- gintare statkute Mob: +37060805595 Skype: gintare.statkute e-mail: g.statkute at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Mon Sep 9 10:31:42 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 09 Sep 2013 10:31:42 +0200 Subject: [Scilab-users] Problem with get_scicos_time() discrete time c block In-Reply-To: <1377421314334-4027276.post@n3.nabble.com> References: <1377421314334-4027276.post@n3.nabble.com> Message-ID: <1378715502.10381.3.camel@paros> Hello, get_scicos_time is used on some important block [1] and will always have a value for all blocks (this a simulator state). Did you try using the Xcos Debug/Trace to print out the current simulator time ? [1]: http://cgit.scilab.org/cgit.cgi/scilab/tree/scilab/modules/scicos_blocks/src/c/evtdly4.c Le dimanche 25 ao?t 2013 ? 02:01 -0700, cpt_nemo a ?crit : > I am trying to create a discrete time block in c that is used inside Xcos. > > When using the "get_scicos_time()" - function the result is always zero. Can > this function only be used in continuous time systems? Is there another > possibility to access the simulation time from a c source. > > My Scilab version is 5.4.1, 64 bit on Windows 7 > > > > -- > View this message in context: http://mailinglists.scilab.org/Problem-with-get-scicos-time-discrete-time-c-block-tp4027276.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Cl?ment DAVID Development Engineer / Account Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From clement.david at scilab-enterprises.com Mon Sep 9 10:58:00 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 09 Sep 2013 10:58:00 +0200 Subject: [Scilab-users] setting initial value for a signal In-Reply-To: <1378580513946-4027372.post@n3.nabble.com> References: <1378580513946-4027372.post@n3.nabble.com> Message-ID: <1378717080.10381.9.camel@paros> Hello Rad, You can use a combination of "Event at time 0", Relay and Const to implement a similar feature. See the attached diagram. Le samedi 07 septembre 2013 ? 12:01 -0700, Rad a ?crit : > Is there a way to set the initial value of a signal in xcos, as in > ? > I searched the 'help' as well as 'mailing list' but couldn't find one. If > this does not exist in scilab, please could one develop it.. > > > > -- > View this message in context: http://mailinglists.scilab.org/setting-initial-value-for-a-signal-tp4027372.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Cl?ment DAVID Development Engineer / Account Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com -------------- next part -------------- A non-text attachment was scrubbed... Name: initial_value.zcos Type: application/x-scilab-zcos Size: 2355 bytes Desc: not available URL: From saketkc at gmail.com Wed Sep 11 21:06:00 2013 From: saketkc at gmail.com (Saket Choudhary) Date: Thu, 12 Sep 2013 00:36:00 +0530 Subject: [Scilab-users] Scilab On Cloud Service and Textbook Companion Project for Scilab Users Message-ID: Extending the discussion from here : http://mailinglists.scilab.org/Scilab-users-Run-your-Scilab-Codes-Through-Browser-td4025180.html The service has been open to users for quite some time at: http://cloud.scilab.in/ The Textbook Companion Project aims to port solved examples from standard textbooks.We have Scilab Examples from more than 200 Textbooks. We would love to hear your feedback. Thanks Regards, Saket Choudhary Undergraduate Student IIT Bombay India From omorr at uns.ac.rs Wed Sep 11 22:11:27 2013 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Wed, 11 Sep 2013 22:11:27 +0200 Subject: [Scilab-users] Scilab On Cloud Service and Textbook Companion Project for Scilab Users In-Reply-To: References: Message-ID: <5230CE6F.6070905@uns.ac.rs> Hello, I was using your site Scilab on GARUDA Cloud in my classes for a while. All my respect for your efforts. I suppose there are still some problems because some books code are missing at this service. For instance, I know that Scilab code for solved problems in 5. Elements of Chemical Reaction Engineering (H.S. Fogler) (Chemical Engineering category) exists but not present in this service. I used it already from your previous site and, actually, we could use it now from this link http://www.scilab.in/textbook_run/800 Wish you all the best and keep up the good work, Regards, Radovan On 9/11/2013 9:06 PM, Saket Choudhary wrote: > Extending the discussion from here : > http://mailinglists.scilab.org/Scilab-users-Run-your-Scilab-Codes-Through-Browser-td4025180.html > > > The service has been open to users for quite some time at: > http://cloud.scilab.in/ > > The Textbook Companion Project aims to port solved examples from > standard textbooks.We have Scilab Examples from more than 200 > Textbooks. > > We would love to hear your feedback. > > Thanks > > Regards, > Saket Choudhary > Undergraduate Student > IIT Bombay > India > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From matt_bruensteiner at yahoo.com Thu Sep 12 00:19:33 2013 From: matt_bruensteiner at yahoo.com (matt bruensteiner) Date: Wed, 11 Sep 2013 15:19:33 -0700 (PDT) Subject: [Scilab-users] interpolating varargin into calls within my function Message-ID: <1378937973.87131.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hi, I'm sure this has been asked before, but I'm finding it very difficult to search out the answer. I created a function: function plotfirst64(x, y, varargin) ? ? plot(x(1:64), y(1:64), varargin ); endfunction My intention is that the varargin arguments to my function should become arguments to plot, allowing me to control the plot appearance when calling my function. Obviously, SciLab doesn't work that way and if I try to use the varargin, those arguments are ignored. For example, I do `ploteye(x, y, "thickness", 2)` or `ploteye(x, y, "r-")` and the plot still comes out with the default line style. Searching online I found that Matlab has a syntax that should do what I want like this: function plotfirst64(x, y, varargin) ? ? plot(x(1:64), y(1:64), varargin{:} ); But that doesn't seem to work in SciLab either. How can I pass varargin arguments through to a function called inside my function? Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From saketkc at gmail.com Thu Sep 12 07:24:07 2013 From: saketkc at gmail.com (Saket Choudhary) Date: Thu, 12 Sep 2013 10:54:07 +0530 Subject: [Scilab-users] Scilab On Cloud Service and Textbook Companion Project for Scilab Users In-Reply-To: <5230CE6F.6070905@uns.ac.rs> References: <5230CE6F.6070905@uns.ac.rs> Message-ID: Hi Radovan, The set of examples from this particular book have errors. We decided to block them until they are rectified. Thanks Saket On 12 September 2013 01:41, Radovan Omorjan wrote: > Hello, > > I was using your site Scilab on GARUDA Cloud in my classes for a while. All > my respect for your efforts. > I suppose there are still some problems because some books code are missing > at this service. For instance, I know that Scilab code for solved problems > in 5. Elements of Chemical Reaction Engineering (H.S. Fogler) (Chemical > Engineering category) exists but not present in this service. I used it > already from your previous site and, actually, we could use it now from this > link http://www.scilab.in/textbook_run/800 > > Wish you all the best and keep up the good work, > > Regards, > Radovan > > > On 9/11/2013 9:06 PM, Saket Choudhary wrote: >> >> Extending the discussion from here : >> >> http://mailinglists.scilab.org/Scilab-users-Run-your-Scilab-Codes-Through-Browser-td4025180.html >> >> >> The service has been open to users for quite some time at: >> http://cloud.scilab.in/ >> >> The Textbook Companion Project aims to port solved examples from >> standard textbooks.We have Scilab Examples from more than 200 >> Textbooks. >> >> We would love to hear your feedback. >> >> Thanks >> >> Regards, >> Saket Choudhary >> Undergraduate Student >> IIT Bombay >> India >> _______________________________________________ >> 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 grocer.toolbox at gmail.com Thu Sep 12 08:11:48 2013 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Thu, 12 Sep 2013 08:11:48 +0200 Subject: [Scilab-users] interpolating varargin into calls within my function In-Reply-To: <1378937973.87131.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1378937973.87131.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: Hello. plot(x(1:64),y(1:64),varargin(:)) should work. ?ric Le 12 sept. 2013 00:20, "matt bruensteiner" a ?crit : > Hi, > > I'm sure this has been asked before, but I'm finding it very difficult to > search out the answer. > > I created a function: > > function plotfirst64(x, y, varargin) > plot(x(1:64), y(1:64), varargin ); > endfunction > > My intention is that the varargin arguments to my function should become > arguments to plot, allowing me to control the plot appearance when calling > my function. Obviously, SciLab doesn't work that way and if I try to use > the varargin, those arguments are ignored. > > For example, I do `ploteye(x, y, "thickness", 2)` or `ploteye(x, y, "r-")` > and the plot still comes out with the default line style. > > Searching online I found that Matlab has a syntax that should do what I > want like this: > > function plotfirst64(x, y, varargin) > plot(x(1:64), y(1:64), varargin{:} ); > > But that doesn't seem to work in SciLab either. > > How can I pass varargin arguments through to a function called inside my > function? > > Thanks, > > Matt > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From omorr at uns.ac.rs Thu Sep 12 10:03:17 2013 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Thu, 12 Sep 2013 10:03:17 +0200 Subject: [Scilab-users] Scilab On Cloud Service and Textbook Companion Project for Scilab Users In-Reply-To: References: <5230CE6F.6070905@uns.ac.rs> Message-ID: <52317545.8020804@uns.ac.rs> Thank you :-) Radovan On 9/12/2013 7:24 AM, Saket Choudhary wrote: > Hi Radovan, > > The set of examples from this particular book have errors. We decided > to block them until they are rectified. > > > Thanks > > Saket > > On 12 September 2013 01:41, Radovan Omorjan wrote: >> Hello, >> >> I was using your site Scilab on GARUDA Cloud in my classes for a while. All >> my respect for your efforts. >> I suppose there are still some problems because some books code are missing >> at this service. For instance, I know that Scilab code for solved problems >> in 5. Elements of Chemical Reaction Engineering (H.S. Fogler) (Chemical >> Engineering category) exists but not present in this service. I used it >> already from your previous site and, actually, we could use it now from this >> link http://www.scilab.in/textbook_run/800 >> >> Wish you all the best and keep up the good work, >> >> Regards, >> Radovan >> >> >> On 9/11/2013 9:06 PM, Saket Choudhary wrote: >>> Extending the discussion from here : >>> >>> http://mailinglists.scilab.org/Scilab-users-Run-your-Scilab-Codes-Through-Browser-td4025180.html >>> >>> >>> The service has been open to users for quite some time at: >>> http://cloud.scilab.in/ >>> >>> The Textbook Companion Project aims to port solved examples from >>> standard textbooks.We have Scilab Examples from more than 200 >>> Textbooks. >>> >>> We would love to hear your feedback. >>> >>> Thanks >>> >>> Regards, >>> Saket Choudhary >>> Undergraduate Student >>> IIT Bombay >>> India >>> _______________________________________________ >>> 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 Zujiang_qiu at yahoo.com Fri Sep 13 02:38:38 2013 From: Zujiang_qiu at yahoo.com (Zujiang) Date: Thu, 12 Sep 2013 17:38:38 -0700 (PDT) Subject: [Scilab-users] problem with loadwave and savewave Message-ID: <1379032718769-4027396.post@n3.nabble.com> Hi, I am using Scilab 5.4.1. I have a problem with loadwave and savewave functions. Here is my code: z=[0.2404861 -0.2386475 0.0726242]; savewave('t1.wav',z); z1=loadwave('t1.wav'); z1 z1 = 0.2404785 - 0.2386475 0.0726013 here you can see the data is not same. I am not sure it is a bug or there is some limits on wave file. Any help will be appreciated. Thanks, Zujiang -- View this message in context: http://mailinglists.scilab.org/problem-with-loadwave-and-savewave-tp4027396.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From krotersv at gmail.com Fri Sep 13 13:16:37 2013 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Fri, 13 Sep 2013 17:16:37 +0600 Subject: [Scilab-users] problem with loadwave and savewave In-Reply-To: <1379032718769-4027396.post@n3.nabble.com> References: <1379032718769-4027396.post@n3.nabble.com> Message-ID: <5232F415.20704@gmail.com> 13.09.2013 06:38, Zujiang ?????: > Hi, > I am using Scilab 5.4.1. I have a problem with loadwave and savewave > functions. Here is my code: > > z=[0.2404861 -0.2386475 0.0726242]; > savewave('t1.wav',z); > Hi. If you provide 'rate' and 'nbits' for 'savewave' the result will be better. For example: savewave('t1.wav',z,22050,32); z1=loadwave('t1.wav'); -->z-z1 ans = 10^(-9) * 0.1496136 0.0530481 0.4419506 Stanislav From Zujiang_qiu at yahoo.com Fri Sep 13 16:59:06 2013 From: Zujiang_qiu at yahoo.com (Zujiang) Date: Fri, 13 Sep 2013 07:59:06 -0700 (PDT) Subject: [Scilab-users] problem with loadwave and savewave In-Reply-To: <5232F415.20704@gmail.com> References: <1379032718769-4027396.post@n3.nabble.com> <5232F415.20704@gmail.com> Message-ID: <1379084346939-4027398.post@n3.nabble.com> Hi Stanislav, Thanks for your reply. Now I see it's the conversion accuracy between wave file and scilab program. Thanks again. Zujiang -- View this message in context: http://mailinglists.scilab.org/problem-with-loadwave-and-savewave-tp4027396p4027398.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Peter.Fabo at dynamag.com Sat Sep 14 09:48:37 2013 From: Peter.Fabo at dynamag.com (pf) Date: Sat, 14 Sep 2013 09:48:37 +0200 Subject: [Scilab-users] Small set of serial I/O blocks for Xcos Message-ID: <1379144917.2817.5.camel@pf-X58-USB3> Hi all, small set of experimental (LINUX) serial I/O blocks for Scilab/Xcos is here http://wiki.tntech.eu/index.php?title=Serial_I/O Source code on request, e-mail address is in description. With regards Peter From paul.carrico at free.fr Sat Sep 14 12:48:09 2013 From: paul.carrico at free.fr (Paul Carrico) Date: Sat, 14 Sep 2013 12:48:09 +0200 Subject: [Scilab-users] advices from the Scilab community in mechanical (vibration) engineering field Message-ID: <000301ceb137$e8bf93b0$ba3ebb10$@carrico@free.fr> Deal All I take the liberty in asking to Scilab community some advices, especially to mechanical specialists. In an optimization process, I would like to model with Scilab the natural frequencies of a beam following 2 configurations (see sketch hereafter) using either Euler-Bernoulli or Timoshenko theory. We can found in the literature (Blevins book and Timoshenko one among others) some particular cases, I've not found any solution for that configuration: does somebody hear something about it ? NB: - An analytical solution will be great ; indeed solving by hand the 4th order derivative seems to be quite difficult - If not, the numerical approach using Scilab will be the only one solution - Ultimately, I can use Finite Elements method (or even code it directly in Scilab), but it's not the goal . and it's much less elegant - I'm currently working on test cases based on "basic" boundary conditions as described in the literature to validate the methodology - I'm sure such method could be extended to industrial (simplified but accurate) studies a) /| P /| ||||||||||||||| /|--------------------------------------------------- where P is a linear force or pressure (not along all the beam) /| /| Or b) /| sliding /|---------------------===------------------------- bean can slide following its axis /| Have a good WE Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From manjusha.joshi at gmail.com Sun Sep 15 14:44:16 2013 From: manjusha.joshi at gmail.com (Manjusha Joshi) Date: Sun, 15 Sep 2013 18:14:16 +0530 Subject: [Scilab-users] scilab 5.4.1 simple calculations need rounding Message-ID: -->x=poly(0,'x') x = x Hello, I am defining polynomial in one variable -->f=(x-1)^2 f = 2 1 - 2x + x I want to find factors and roots, which I can see easily as (x-1) (x-1) and roots are 1 1 How ever when I tried the command -->factors(f) ans = ans(1) - 0.99999999999999989 + x ans(2) - 0.99999999999999989 + x -->roots(f) ans = 0.99999999999999989 0.99999999999999989 -->round(roots(f)) ans = 1. 1. After rounding roots I am getting the correct answer. In earlier scilab version it was working with our rounding. Is it a bug? Looking forward for response. Regards, -- Manjusha S. Joshi Pune, India blog:http://manjushajoshi.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Sun Sep 15 18:57:11 2013 From: arctica1963 at gmail.com (Lester Anderson) Date: Sun, 15 Sep 2013 17:57:11 +0100 Subject: [Scilab-users] scilab 5.4.1 simple calculations need rounding In-Reply-To: References: Message-ID: Hello, I have Scilab 5.4.1 and tried the code as you typed it and I get no rounding errors: -->x=poly(0,'x') x = x -->f=(x-1)^2 f = 2 1 - 2x + x -->factors(f) ans = ans(1) - 1 + x ans(2) - 1 + x -->roots(f) ans = 1. 1. Maybe some others can see what the issue is. Running on Windows 7 64 bit. Cheers Lester On 15 September 2013 13:44, Manjusha Joshi wrote: > > > -->x=poly(0,'x') > x = > > x > > Hello, > > I am defining polynomial in one variable > > -->f=(x-1)^2 > f = > > 2 > 1 - 2x + x > > I want to find factors and roots, which I can see easily as (x-1) (x-1) > and roots are 1 1 > > How ever when I tried the command > > > -->factors(f) > ans = > > > ans(1) > > - 0.99999999999999989 + x > > ans(2) > > - 0.99999999999999989 + x > > -->roots(f) > ans = > > 0.99999999999999989 > 0.99999999999999989 > > -->round(roots(f)) > ans = > > 1. > 1. > > > After rounding roots I am getting the correct answer. > > In earlier scilab version it was working with our rounding. > > Is it a bug? > > Looking forward for response. > > Regards, > > -- > Manjusha S. Joshi > Pune, India > blog:http://manjushajoshi.wordpress.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 sgougeon at free.fr Sun Sep 15 20:55:13 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 15 Sep 2013 20:55:13 +0200 Subject: [Scilab-users] scilab 5.4.1 simple calculations need rounding In-Reply-To: References: Message-ID: <52360291.2050304@free.fr> The big number of digits asked for leads to that. You may see what does the following: clc %eps format(16) x = poly(0,'x'); f = (x-1)^2, factors(f) format(19) x = poly(0,'x'); f = (x-1)^2, factors(f) Regards Samuel From arvid at softube.com Mon Sep 16 10:06:19 2013 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Mon, 16 Sep 2013 10:06:19 +0200 Subject: [Scilab-users] scilab 5.4.1 simple calculations need rounding In-Reply-To: <52360291.2050304@free.fr> References: <52360291.2050304@free.fr> Message-ID: <42CBCD83-B130-4BD6-9EAC-F2B049F7DC19@softube.com> Also, when comparing to scilab 4, you should keep in mind that the older versions (4 and earlier, I think) used the extend floating point feature of the FPU, giving 80 bits of precision in some cases. This might yield slightly different results in some calculations. Cheers, Arvid 15 sep 2013 kl. 20:55 skrev Samuel Gougeon : > The big number of digits asked for leads to that. You may see what does the following: > > clc > %eps > format(16) > x = poly(0,'x'); f = (x-1)^2, factors(f) > format(19) > x = poly(0,'x'); f = (x-1)^2, factors(f) > > Regards > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Arvid Ros?n Softube AB S:t Larsgatan 10c SE-582 24 Link?ping Sweden Mobile: (+46) 73 25 123 47 Office: (+46) 13 21 16 23 Fax: (+46) 13 10 00 23 Mail: arvid at softube.com URL: www.softube.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Mon Sep 16 14:05:50 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Mon, 16 Sep 2013 14:05:50 +0200 (CEST) Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <520070332.184373.1379327389760.JavaMail.root@univ-lorrai ne.fr> Message-ID: An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Mon Sep 16 15:18:25 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 16 Sep 2013 15:18:25 +0200 Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: References: Message-ID: <52370521.4080703@laas.fr> On 09/16/2013 02:05 PM, quantparis at numericable.fr wrote: > j'ai execut? > x=[0:0.1:2*%pi];plot(x,sin(x)); > sur 5.4.1 cela se graphe sans problem pour moi sur ubuntu 13.04 > install? avec scilab-5.4.1.bin.linux-x86-64.tar.gz > pascal > > > ---- Message d'origine ---- > De : "St?phane Paris" > ? : users-fr at lists.scilab.org > Objet : [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 > Date : 16/09/2013 12:29:49 CEST > > Bonjour, > J'ai install? ubuntu 13.04 et depuis les graphiques sont blancs ? Peut-on > rem?dier ? ce pb ? Hmm, comme souvent, il s'agit surement d'un soucis de pilote graphique. Est-ce que l'opengl marche correctement depuis le passage ? la 13.04? (pour v?rifier: glxgears) J'ai eu quelques surprises de ce c?t? l? en passant de 10.04 ? 12.04LTS. Antoine > Par avance merci de votre aide, > St?fane > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From martibp at gmail.com Mon Sep 16 16:14:40 2013 From: martibp at gmail.com (=?UTF-8?Q?Mart=C3=AD?=) Date: Mon, 16 Sep 2013 07:14:40 -0700 (PDT) Subject: [Scilab-users] drag and rotate in Plots and 3Dplots not working. Help? In-Reply-To: <1378487287761-4027369.post@n3.nabble.com> References: <1378487287761-4027369.post@n3.nabble.com> Message-ID: <1379340880569-4027423.post@n3.nabble.com> This behavior has been reported as a bug at http://bugzilla.scilab.org/ Bug number 12919 -- View this message in context: http://mailinglists.scilab.org/drag-and-rotate-in-Plots-and-3Dplots-not-working-Help-tp4027369p4027423.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From calixte.denizet at scilab-enterprises.com Mon Sep 16 17:57:39 2013 From: calixte.denizet at scilab-enterprises.com (Calixte) Date: Mon, 16 Sep 2013 17:57:39 +0200 Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <52370521.4080703@laas.fr> References: <52370521.4080703@laas.fr> Message-ID: <52372A73.3070904@scilab-enterprises.com> On 16/09/2013 15:18, Antoine Monmayrant wrote: > On 09/16/2013 02:05 PM, quantparis at numericable.fr wrote: >> j'ai execut? >> x=[0:0.1:2*%pi];plot(x,sin(x)); >> sur 5.4.1 cela se graphe sans problem pour moi sur ubuntu 13.04 >> install? avec scilab-5.4.1.bin.linux-x86-64.tar.gz >> pascal >> >> >> ---- Message d'origine ---- >> De : "St?phane Paris" >> ? :users-fr at lists.scilab.org >> Objet : [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 >> Date : 16/09/2013 12:29:49 CEST >> >> Bonjour, >> J'ai install? ubuntu 13.04 et depuis les graphiques sont blancs ? Peut-on >> rem?dier ? ce pb ? > Hmm, comme souvent, il s'agit surement d'un soucis de pilote graphique. > Est-ce que l'opengl marche correctement depuis le passage ? la 13.04? > (pour v?rifier: glxgears) > J'ai eu quelques surprises de ce c?t? l? en passant de 10.04 ? 12.04LTS. Bonjour, Pr information, quand la carte graphique est une nvidia il vaut mieux utiliser le driver proprietaire plutot que le driver nouveau... Calixte > Antoine >> Par avance merci de votre aide, >> St?fane >> >> >> _______________________________________________ >> 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 antoine.monmayrant at laas.fr Mon Sep 16 20:50:01 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 16 Sep 2013 20:50:01 +0200 Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <52372A73.3070904@scilab-enterprises.com> References: <52370521.4080703@laas.fr> <52372A73.3070904@scilab-enterprises.com> Message-ID: <523752D9.2020704@laas.fr> Le 16/09/13 17:57, Calixte a ?crit : > On 16/09/2013 15:18, Antoine Monmayrant wrote: >> On 09/16/2013 02:05 PM, quantparis at numericable.fr wrote: >>> j'ai execut? >>> x=[0:0.1:2*%pi];plot(x,sin(x)); >>> sur 5.4.1 cela se graphe sans problem pour moi sur ubuntu 13.04 >>> install? avec scilab-5.4.1.bin.linux-x86-64.tar.gz >>> pascal >>> >>> >>> ---- Message d'origine ---- >>> De : "St?phane Paris" >>> ? :users-fr at lists.scilab.org >>> Objet : [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 >>> Date : 16/09/2013 12:29:49 CEST >>> >>> Bonjour, >>> J'ai install? ubuntu 13.04 et depuis les graphiques sont blancs ? >>> Peut-on >>> rem?dier ? ce pb ? >> Hmm, comme souvent, il s'agit surement d'un soucis de pilote graphique. >> Est-ce que l'opengl marche correctement depuis le passage ? la 13.04? >> (pour v?rifier: glxgears) >> J'ai eu quelques surprises de ce c?t? l? en passant de 10.04 ? 12.04LTS. > Bonjour, > > Pr information, quand la carte graphique est une nvidia il vaut mieux > utiliser le driver proprietaire plutot que le driver nouveau... Oui, et quand la carte est une ati, il vaut mieux aller l'enterrer dans le jardin ou bien trouver un gentil ordi sous Windows avec une carte Nvidia pour faire un ?change standard... Antoine > > Calixte > >> Antoine >>> Par avance merci de votre aide, >>> St?fane >>> >>> >>> _______________________________________________ >>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From emmanuel.leger at u-psud.fr Mon Sep 16 21:09:56 2013 From: emmanuel.leger at u-psud.fr (el) Date: Mon, 16 Sep 2013 12:09:56 -0700 (PDT) Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: References: Message-ID: <1379358596291-4027426.post@n3.nabble.com> M?me probl?me, Sous Ubuntu 13.04, avec shipset: Intel? Sandybridge Mobile. j'obtiens le message suivant: Info: Nativewindow X11 Error: 3 - BadWindow (invalid Window parameter), dpy 0xf701f0, id 3e00259, # 8992: 20:0 X_GetProperty Que ce soit install? avec le gestionnaire de paquet, o? avec le tar. -- View this message in context: http://mailinglists.scilab.org/Re-Users-fr-plot-avec-scilab-5-4-1-ss-ubuntu-13-04-tp4027421p4027426.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab-enterprises.com Mon Sep 16 21:24:25 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Mon, 16 Sep 2013 21:24:25 +0200 Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <1379358596291-4027426.post@n3.nabble.com> References: <1379358596291-4027426.post@n3.nabble.com> Message-ID: <52375AE9.2010701@scilab-enterprises.com> On 16/09/2013 21:09, el wrote: > M?me probl?me, > Sous Ubuntu 13.04, avec shipset: Intel? Sandybridge Mobile. > j'obtiens le message suivant: > Info: Nativewindow X11 Error: 3 - BadWindow (invalid Window parameter), dpy > 0xf701f0, id 3e00259, # 8992: 20:0 X_GetProperty > > > Que ce soit install? avec le gestionnaire de paquet, o? avec le tar. > Est ce que vous avez essay? avec: LIBGL_ALWAYS_SOFTWARE=1 scilab ? Sylvestre From antoine.monmayrant at laas.fr Mon Sep 16 21:44:03 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 16 Sep 2013 21:44:03 +0200 Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <52375AE9.2010701@scilab-enterprises.com> References: <1379358596291-4027426.post@n3.nabble.com> <52375AE9.2010701@scilab-enterprises.com> Message-ID: <52375F83.9050603@laas.fr> Le 16/09/13 21:24, Sylvestre Ledru a ?crit : > On 16/09/2013 21:09, el wrote: >> M?me probl?me, >> Sous Ubuntu 13.04, avec shipset: Intel? Sandybridge Mobile. >> j'obtiens le message suivant: >> Info: Nativewindow X11 Error: 3 - BadWindow (invalid Window parameter), dpy >> 0xf701f0, id 3e00259, # 8992: 20:0 X_GetProperty >> >> >> Que ce soit install? avec le gestionnaire de paquet, o? avec le tar. >> > Est ce que vous avez essay? avec: > > LIBGL_ALWAYS_SOFTWARE=1 scilab > ? > Sylvestre Heu, c'est moi ou ?a veut dire qu'ils vont utiliser la version soft d'opengl? plot() // pause caf? // pause croissant // pause pipi // re-pause caf? // pause repas tiens un truc appara?t ? l'?cran ... ;-) > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From stephane.mottelet at gmail.com Mon Sep 16 22:12:06 2013 From: stephane.mottelet at gmail.com (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Mon, 16 Sep 2013 22:12:06 +0200 Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <523752D9.2020704@laas.fr> References: <52370521.4080703@laas.fr> <52372A73.3070904@scilab-enterprises.com> <523752D9.2020704@laas.fr> Message-ID: Le 16 sept. 2013 ? 20:50, Antoine Monmayrant a ?crit : > Le 16/09/13 17:57, Calixte a ?crit : >> On 16/09/2013 15:18, Antoine Monmayrant wrote: >>> On 09/16/2013 02:05 PM, quantparis at numericable.fr wrote: >>>> j'ai execut? >>>> x=[0:0.1:2*%pi];plot(x,sin(x)); >>>> sur 5.4.1 cela se graphe sans problem pour moi sur ubuntu 13.04 >>>> install? avec scilab-5.4.1.bin.linux-x86-64.tar.gz >>>> pascal >>>> >>>> >>>> ---- Message d'origine ---- >>>> De : "St?phane Paris" >>>> ? :users-fr at lists.scilab.org >>>> Objet : [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 >>>> Date : 16/09/2013 12:29:49 CEST >>>> >>>> Bonjour, >>>> J'ai install? ubuntu 13.04 et depuis les graphiques sont blancs ? Peut-on >>>> rem?dier ? ce pb ? >>> Hmm, comme souvent, il s'agit surement d'un soucis de pilote graphique. >>> Est-ce que l'opengl marche correctement depuis le passage ? la 13.04? >>> (pour v?rifier: glxgears) >>> J'ai eu quelques surprises de ce c?t? l? en passant de 10.04 ? 12.04LTS. >> Bonjour, >> >> Pr information, quand la carte graphique est une nvidia il vaut mieux utiliser le driver proprietaire plutot que le driver nouveau... > Oui, et quand la carte est une ati, il vaut mieux aller l'enterrer dans le jardin ou bien trouver un gentil ordi sous Windows avec une carte Nvidia pour faire un ?change standard... Tout a fait, c'est ce que j'ai fait sur mon MacPro ! S. > SAntoine >> >> Calixte >> >>> Antoine >>>> Par avance merci de votre aide, >>>> St?fane >>>> >>>> >>>> _______________________________________________ >>>> 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 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Wed Sep 18 11:31:24 2013 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 18 Sep 2013 02:31:24 -0700 (PDT) Subject: [Scilab-users] Levenberg-Marquardt algorithm Message-ID: <1379496684238-4027433.post@n3.nabble.com> Hi, I have been using the Levenberg-Marquardt solver (lsqrsolve), but would like to look at ways to adjust it to better suit my particular problem. Does anyone know if the souce code for this is available anywhere and if it is in fact open source? Thanks, Mike. -- View this message in context: http://mailinglists.scilab.org/Levenberg-Marquardt-algorithm-tp4027433.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.bignier at scilab-enterprises.com Wed Sep 18 14:31:23 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Wed, 18 Sep 2013 14:31:23 +0200 Subject: [Scilab-users] Levenberg-Marquardt algorithm In-Reply-To: <1379496684238-4027433.post@n3.nabble.com> References: <1379496684238-4027433.post@n3.nabble.com> Message-ID: <52399D1B.20002@scilab-enterprises.com> Hello, lsqrsolve calls the lmder and lmdif routines from the minpack package, available at www.netlib.org/minpack On 09/18/2013 11:31 AM, Mike Page wrote: > Hi, > > I have been using the Levenberg-Marquardt solver (lsqrsolve), but would like > to look at ways to adjust it to better suit my particular problem. Does > anyone know if the souce code for this is available anywhere and if it is in > fact open source? > > Thanks, > Mike. > > > > > -- > View this message in context: http://mailinglists.scilab.org/Levenberg-Marquardt-algorithm-tp4027433.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com From emmanuel.leger at u-psud.fr Wed Sep 18 18:40:42 2013 From: emmanuel.leger at u-psud.fr (el) Date: Wed, 18 Sep 2013 09:40:42 -0700 (PDT) Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <52375AE9.2010701@scilab-enterprises.com> References: <1379358596291-4027426.post@n3.nabble.com> <52375AE9.2010701@scilab-enterprises.com> Message-ID: <1379522442262-4027435.post@n3.nabble.com> Je suis repass? ? la version de scilab ant?rieure... Merci el -- View this message in context: http://mailinglists.scilab.org/Re-Users-fr-plot-avec-scilab-5-4-1-ss-ubuntu-13-04-tp4027421p4027435.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From emmanuel.leger at u-psud.fr Thu Sep 19 17:31:17 2013 From: emmanuel.leger at u-psud.fr (el) Date: Thu, 19 Sep 2013 08:31:17 -0700 (PDT) Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <52375AE9.2010701@scilab-enterprises.com> References: <1379358596291-4027426.post@n3.nabble.com> <52375AE9.2010701@scilab-enterprises.com> Message-ID: <1379604677322-4027436.post@n3.nabble.com> Toujours le m?me probl?me malgr? "LIBGL_ALWAYS_SOFTWARE=1 scilab" merci e. -- View this message in context: http://mailinglists.scilab.org/Re-Users-fr-plot-avec-scilab-5-4-1-ss-ubuntu-13-04-tp4027421p4027436.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From quantparis at numericable.fr Fri Sep 20 09:26:21 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Fri, 20 Sep 2013 09:26:21 +0200 (CEST) Subject: [Scilab-users] [Users-fr] plot avec scilab 5.4.1 ss ubuntu 13.04 In-Reply-To: <1379604677322-4027436.post@n3.nabble.com> Message-ID: An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Sep 20 13:58:30 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 20 Sep 2013 13:58:30 +0200 Subject: [Scilab-users] Image correlation Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B006@exchsrv.auxitrol.ad> Dear all, A personal reflexion: does somebody have ever used Scilab and tools for image correlation (2D) ? typically for mechanical topics ... Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Fri Sep 20 14:11:12 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 20 Sep 2013 14:11:12 +0200 Subject: [Scilab-users] [PUB] Image correlation In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B006@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B006@exchsrv.auxitrol.ad> Message-ID: <523C3B60.6070205@laas.fr> Le 20/09/13 13:58, Carrico, Paul a ?crit : > Dear all, > > A personal reflexion: does somebody have ever used Scilab and tools for > image correlation (2D) ? typically for mechanical topics ... I did it to illustrate some lessons on Fourier Transform and convolution filtering. It's quite efficient. I think some of the image processing toolboxes offer convolution filters dedicated to image filtering (for my lesson, I imported my images as double matrices). Antoine > > Paul > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > _______________________________________________ > 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 Sep 20 14:17:05 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 20 Sep 2013 14:17:05 +0200 Subject: [Scilab-users] [PUB] Image correlation In-Reply-To: <523C3B60.6070205@laas.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B006@exchsrv.auxitrol.ad> <523C3B60.6070205@laas.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B007@exchsrv.auxitrol.ad> I'm a complete newby on that topic, and have no idea about the complexity of the issue ; ideally I would like to compare a photograph BEFORE and AFTER a test in order to measure the differences (accurate enough ?) through some documents I found on the net, it seems to be a hard topic ... Paul ________________________________ De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant Envoy? : vendredi 20 septembre 2013 14:11 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] [PUB] Image correlation Le 20/09/13 13:58, Carrico, Paul a ?crit : Dear all, A personal reflexion: does somebody have ever used Scilab and tools for image correlation (2D) ? typically for mechanical topics ... I did it to illustrate some lessons on Fourier Transform and convolution filtering. It's quite efficient. I think some of the image processing toolboxes offer convolution filters dedicated to image filtering (for my lesson, I imported my images as double matrices). Antoine Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Sep 20 14:27:14 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 20 Sep 2013 14:27:14 +0200 Subject: [Scilab-users] [PUB] Image correlation In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B007@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B006@exchsrv.auxitrol.ad> <523C3B60.6070205@laas.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B007@exchsrv.auxitrol.ad> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31F1F09A6@301EX00100.sidel.com> Hello, > De la part de Carrico, Paul > Envoy? : vendredi 20 septembre 2013 14:17 > > does somebody have ever used Scilab and tools for > image correlation (2D) ? typically for mechanical topics ... > [...] > ideally I would like to compare a photograph BEFORE and AFTER a test > in order to measure the differences (accurate enough ?) Do you mean something like evaluating the plastic deformation? -- 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 paul.carrico at esterline.com Fri Sep 20 14:34:56 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 20 Sep 2013 14:34:56 +0200 Subject: [Scilab-users] [PUB] Image correlation In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F31F1F09A6@301EX00100.sidel.com> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B006@exchsrv.auxitrol.ad><523C3B60.6070205@laas.fr><55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B007@exchsrv.auxitrol.ad> <3B5FFC67498DFF49AE7271A584867D16F31F1F09A6@301EX00100.sidel.com> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B009@exchsrv.auxitrol.ad> More or less ... Basically on a plate -----Message d'origine----- De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Dang, Christophe Envoy? : vendredi 20 septembre 2013 14:27 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] [PUB] Image correlation Hello, > De la part de Carrico, Paul > Envoy? : vendredi 20 septembre 2013 14:17 > > does somebody have ever used Scilab and tools for > image correlation (2D) ? typically for mechanical topics ... > [...] > ideally I would like to compare a photograph BEFORE and AFTER a test > in order to measure the differences (accurate enough ?) Do you mean something like evaluating the plastic deformation? -- 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 http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From quantparis at numericable.fr Tue Sep 24 10:35:00 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Tue, 24 Sep 2013 10:35:00 +0200 (CEST) Subject: [Scilab-users] in which library is callFunctionFromGateway? Message-ID: An HTML attachment was scrubbed... URL: From jasper at amsterchem.com Tue Sep 24 10:47:14 2013 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 24 Sep 2013 10:47:14 +0200 Subject: [Scilab-users] in which library is callFunctionFromGateway? In-Reply-To: References: Message-ID: <52415192.3030806@amsterchem.com> callFunctionFromGateway appears to be implemented in core.dll createNamedMatrixOfString appears to be implemented in api_scilab.dll Best wishes, Jasper. On 9/24/2013 10:35, quantparis at numericable.fr wrote: > Hello, > > I am trying to use scilab from c++, > > the documentation doesn't seem to be related to the 5.4.1 version as > it refers to a core subdirectory which doesn't exists in the 5.4.1 > version, I try to find in which library is located the implementation > of the following functions: > > callFunctionFromGateway or createNamedMatrixOfString > > > > thanks in advance > pascal > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Tue Sep 24 12:00:28 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Tue, 24 Sep 2013 12:00:28 +0200 (CEST) Subject: [Scilab-users] in which library is callFunctionFromGateway? In-Reply-To: <52415ABF.6050003@amsterchem.com> Message-ID: An HTML attachment was scrubbed... URL: From jasper at amsterchem.com Tue Sep 24 12:19:18 2013 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 24 Sep 2013 12:19:18 +0200 Subject: [Scilab-users] in which library is callFunctionFromGateway? In-Reply-To: References: Message-ID: <52416726.9000204@amsterchem.com> On Windows quite a few of these are defined in the two libraries I mentioned earlier. Can you not find the exports with tools like this one? http://sourceforge.net/projects/binscan/ If you have one library that references a missing export, you should be able to tell from that library which library implements the export. Best wishes, Jasper. On 9/24/2013 12:00, quantparis at numericable.fr wrote: > Jasper, yes here is the full list of the undefined reference > > I link with libscilab.so and libsci_callscilab.so but I think that > others are missing and the documentation > is not up to date (it mentioned a "core" directory which doesn't exist > anymore in the 5.4.1) > > thanks in advance if you have a solution, (I am new on scilab) > pascal > > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? com_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? callFunctionFromGateway ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? createNamedMatrixOfString ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? getNamedVarType ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? clearInternalLastError ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? checklhs_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? freeArrayOfString ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? intersci_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? setScilabMode ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? inisci_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? checkrhs_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? readNamedMatrixOfDouble ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? scirun_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? sciHasFigures ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? putlhsvar_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? getNamedVarDimension ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? setSCIpath ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? getScilabMode ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? pvApiCtx ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? getInternalLastErrorMessage ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? getInternalLastErrorValue ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? createvarfromptr_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? ExitScilab ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? settmpdir_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? InitializeLaunchScilabSignal ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? ReleaseLaunchScilabSignal ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? isdir ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? TerminateCorePart2 ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence > ind?finie vers ? printError ? > ---- Message d'origine ---- > De : "jasper van baten" > ? : quantparis at numericable.fr; > users-request at lists.scilab.org > Objet : Re: [Scilab-users] in which library is callFunctionFromGateway? > Date : 24/09/2013 11:26:23 CEST > > Can you see which reference is undefined? > > Best wishes, > > Jasper. > > On 9/24/2013 11:23, quantparis at numericable.fr wrote: >> Hello Jasper >> >> thank you very much, unfortunately I am on linux ubuntu and I don't >> find "libcore.so" or "libapi_scilab.so" in the scilab directory >> (binary installation) >> >> I link with libscilab.so and libsci_callscilab.so but there are some >> undefined reference in the linking process which seems to lead that >> one/several libraries are missing, but up to now I haven't gotten >> this information >> >> if you know someone on linux, let me know >> >> thanks again for the indication >> Best Wisches >> pascal >> >> >> >> >> ---- Message d'origine ---- >> De : "jasper van baten" >> ? : users at lists.scilab.org >> Objet : Re: [Scilab-users] in which library is callFunctionFromGateway? >> Date : 24/09/2013 10:47:14 CEST >> >> callFunctionFromGateway appears to be implemented in core.dll >> >> createNamedMatrixOfString appears to be implemented in api_scilab.dll >> >> Best wishes, >> >> Jasper. >> >> On 9/24/2013 10:35, quantparis at numericable.fr wrote: >>> Hello, >>> >>> I am trying to use scilab from c++, >>> >>> the documentation doesn't seem to be related to the 5.4.1 version as >>> it refers to a core subdirectory which doesn't exists in the 5.4.1 >>> version, I try to find in which library is located the >>> implementation of the following functions: >>> >>> callFunctionFromGateway or createNamedMatrixOfString >>> >>> >>> >>> thanks in advance >>> pascal >>> >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Tue Sep 24 12:37:28 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Tue, 24 Sep 2013 12:37:28 +0200 (CEST) Subject: [Scilab-users] in which library is callFunctionFromGateway? In-Reply-To: <52416726.9000204@amsterchem.com> Message-ID: An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Tue Sep 24 13:59:45 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Tue, 24 Sep 2013 13:59:45 +0200 (CEST) Subject: [Scilab-users] call_scilab (from 5.4.1) on linux Message-ID: An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Sep 24 14:18:10 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 24 Sep 2013 14:18:10 +0200 Subject: [Scilab-users] call_scilab (from 5.4.1) on linux In-Reply-To: References: Message-ID: <52418302.2080605@laas.fr> On 09/24/2013 01:59 PM, quantparis at numericable.fr wrote: > Hello > > Is there someone uses call_scilab (version 5.4.1) on linux? because I am always > not able to link a simple example using call_scilab on linux(debian/ubuntu). Hi Pascal, Can you provide us with a minimal example (*.c, and command line link and compile) you tried so we can give it a try on our system? (scilab 5.4.1 and nightly builds on ubuntu 12.04 LTS 64bits). Antoine > > I got some undefined reference for scilab functions (*) > > today, Jasper on the scilab list told me that in windows these functions are > located in > core.dll and api_scilab.dll, > > on my side I link with > ../../scilab-5.4.1/lib/scilab/libscilab.so, > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so, > > so I suppose that there is one or several missing libraries but I don't know > which ones > > for example, I don't find libscicore.so function as it is specified in > (http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/Makefile.call_scilab.am;h=b3a3b8baaa1563dc1f73cc262b97987a74605af8;hb=HEAD) > > > thanks in advance > > pascal > > > > (*)full list of the undefined references > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > com_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > callFunctionFromGateway ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > createNamedMatrixOfString ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > getNamedVarType ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > clearInternalLastError ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > checklhs_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > freeArrayOfString ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > intersci_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > setScilabMode ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > inisci_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > checkrhs_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > readNamedMatrixOfDouble ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > scirun_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > sciHasFigures ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > putlhsvar_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > getNamedVarDimension ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > setSCIpath ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > getScilabMode ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > pvApiCtx ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > getInternalLastErrorMessage ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > getInternalLastErrorValue ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > createvarfromptr_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > ExitScilab ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > settmpdir_ ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > InitializeLaunchScilabSignal ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > ReleaseLaunchScilabSignal ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > isdir ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > TerminateCorePart2 ? > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > printError ? > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Tue Sep 24 15:01:01 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Tue, 24 Sep 2013 15:01:01 +0200 (CEST) Subject: [Scilab-users] call_scilab (from 5.4.1) on linux In-Reply-To: <52418302.2080605@laas.fr> Message-ID: An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Tue Sep 24 17:58:10 2013 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Tue, 24 Sep 2013 08:58:10 -0700 (PDT) Subject: [Scilab-users] call_scilab from another dll Message-ID: <1380038290073-4027456.post@n3.nabble.com> Hi, i'm trying to call Scilab using call_scilab features from a .dll component : in the system simulation environment (TRNSYS), components are available for the simulation core as dll files (under windows). I'm writing this component with microsoft visual c++ 2010 express and it runs well in the simulation environment as soon as I don't include in my code real calls to call_scilab functions (StartScilab()). Building process is ok since it finds the headers and librairies for call_scilab and api_scilab. When I include call to StartScilab for example, then the build process is still ok but when I try to run my simulation simple test case (1 component), the simulation core issues a message that it found the dll file but it didn't find any component referenced in the test case diagram, then it failed to run the simulation. I guess that when I really call scilab functions from my components, it changes something in the shape of the file that make it uncompatible with the existing kernel dlls. Did you already succeeded in running similar simulation task under windows OS (WIN7 32 Bits) involving dll files that call Scilab ? Any ideas to investigate further? Thanks for your feedback, David -- View this message in context: http://mailinglists.scilab.org/call-scilab-from-another-dll-tp4027456.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From david.cheze at cea.fr Wed Sep 25 14:19:39 2013 From: david.cheze at cea.fr (CHEZE David 227480) Date: Wed, 25 Sep 2013 12:19:39 +0000 Subject: [Scilab-users] call_scilab from another dll In-Reply-To: References: <1380038290073-4027456.post@n3.nabble.com> Message-ID: Hi Pascal, I?ve nearly the same configuration as you but my OS is WIN7 32bits, not 64bits which introduces sometimes extra pbs. I?m using MVSC++ 2010 express. I needed to run MVSC++ with a local admin account in order to open and convert automatically the example project provided in C:\Program Files\scilab-5.4.1\modules\call_scilab\examples\call_scilab\c\visual_studio . Then I got an error message at build time complaining about incompatible COFF format that I ?solved? by removing the default configuration option to embed the manifest (Manifest tool/input and output/embed=NO ). Then it rebuilds and the exe generated in SCI\bin runs well, in console mode. Nb: While working on my dlls troubles, I?ve added a new user?s environment variable SCI= C:\Program Files\scilab-5.4.1\bin and added it to the user?s Path environment variable Path=?.; C:\Program Files\scilab-5.4.1\bin. This allow to run Scilab from every local directory without stating the full path and let the system know that there is there a lot of dlls that might be called. Not sure that it should be necessary but that?s the case on my machine. By the way I?m still puzzling with this strange behavior that as soon as my component (dll) references dependency with call_scilab.dll, my simulation environment fails to see that the expected component is actually inside and the simulation stop even before trying to call Scilab... Arrgh! Regards, David De : quantparis at numericable.fr [mailto:quantparis at numericable.fr] Envoy? : mercredi 25 septembre 2013 11:41 ? : CHEZE David 227480 Objet : Re: [Scilab-users] call_scilab from another dll Hello David, I read your post concerning call_scilab, I have been trying to use it on linux with no success up to now as on one of my disk I have windows 7, yesterday evening I installed studio 2010 and scilab 5.4.1 bin but unfortunalty I wasn't able to go up to your problem (call_scilab from another dll) because I failed the simple use of call_scilab if you have any suggestions it would be helpfull FIRST ATTEMPT ---------------------------------------------------------------------------------------------------------- I try to run http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html in visual studio 2010 pro Project Properties C/C++ Additional include librarie c:\Program Files\scilab5.4.1\modules\call_scilab\includes c:\Program Files\scilab5.4.1\modules\core\includes Project Properties Linker general : Additional library Directories c:\Program Files\scilab5.4.1\bin input : api_scilab.lib call_scilab.lib core.lib RESULT: unresolved external TerminateScilab etc... note that I get the same linking error when I execute the make file supplied for linux implementation SECOND ATTEMPT ------------------------------------------------------------------------------------------------------------------------ try to run the callSciVC project supplied in the scilab installation scilab5.4.1\modules\call_scilab\examples\c\visual-studio\callsciVC solution similar results unresolved external thanks in advance if you have any suggestions pascal ---- Message d'origine ---- >De : "David Ch?ze" > >? : users at lists.scilab.org >Objet : [Scilab-users] call_scilab from another dll >Date : 24/09/2013 17:58:10 CEST > >Hi, > > i'm trying to call Scilab using call_scilab features from a .dll component > : in the system simulation environment (TRNSYS), components are available > for the simulation core as dll files (under windows). I'm writing this > component with microsoft visual c++ 2010 express and it runs well in the > simulation environment as soon as I don't include in my code real calls to > call_scilab functions (StartScilab()). Building process is ok since it > finds the headers and librairies for call_scilab and api_scilab. When I > include call to StartScilab for example, then the build process is still ok > but when I try to run my simulation simple test case (1 component), the > simulation core issues a message that it found the dll file but it didn't > find any component referenced in the test case diagram, then it failed to > run the simulation. I guess that when I really call scilab functions from > my > components, it changes something in the shape of the file that make it > uncompatible with the existing kernel dlls. > > Did you already succeeded in running similar simulation task under windows > OS (WIN7 32 Bits) involving dll files that call Scilab ? > Any ideas to investigate further? > > Thanks for your feedback, > > David > > > > -- > View this message in context: http://mailinglists.scilab.org/call-scilab-from > -another-dll-tp4027456.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at > Nabble.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 saketkc at gmail.com Wed Sep 25 14:25:58 2013 From: saketkc at gmail.com (Saket Choudhary) Date: Wed, 25 Sep 2013 17:55:58 +0530 Subject: [Scilab-users] Scilab On Cloud Service and Textbook Companion Project for Scilab Users In-Reply-To: References: Message-ID: Based on the suggestions we received we have updated the UI a bit. http://cloud.scilab.in/ Thanks a lot to everyone who suggested feedbacks. Incase you encounter a bug or have a suggestion please use the form given on the above link. The button is titled : "Report Bug/Give Feedback". We are working on improving the accessibility of http://cloud.scilab.in/ and your feedback is very important to us. Regards, Saket Choudhary Undergraduate Student IIT Bombay India On 12 September 2013 00:36, Saket Choudhary wrote: > Extending the discussion from here : > http://mailinglists.scilab.org/Scilab-users-Run-your-Scilab-Codes-Through-Browser-td4025180.html > > > The service has been open to users for quite some time at: > http://cloud.scilab.in/ > > The Textbook Companion Project aims to port solved examples from > standard textbooks.We have Scilab Examples from more than 200 > Textbooks. > > We would love to hear your feedback. > > Thanks > > Regards, > Saket Choudhary > Undergraduate Student > IIT Bombay > India From quantparis at numericable.fr Wed Sep 25 16:44:55 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Wed, 25 Sep 2013 16:44:55 +0200 (CEST) Subject: [Scilab-users] call_scilab link error (libscicore missing? in the bin folder) In-Reply-To: <5229CC92.10600@scilab-enterprises.com> Message-ID: An HTML attachment was scrubbed... URL: From rakhiwarriar at gmail.com Wed Sep 25 22:21:02 2013 From: rakhiwarriar at gmail.com (Rakhi Warriar) Date: Thu, 26 Sep 2013 01:51:02 +0530 Subject: [Scilab-users] Error using PID block in Xcos Message-ID: Hello! I am trying to see the effects of increase in P, I, D parameters on the output of a simple first order system. However, on increasing the parameters to say 100 or so, I get this error *" test failures occured too many times during an internal step or occured with |h| = h_min". *What could be the issue? Thanks! Rakhi -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.guffens at gmail.com Wed Sep 25 22:31:19 2013 From: vincent.guffens at gmail.com (vincent guffens) Date: Wed, 25 Sep 2013 21:31:19 +0100 Subject: [Scilab-users] call_scilab (from 5.4.1) on linux In-Reply-To: References: Message-ID: On Tue, Sep 24, 2013 at 12:59 PM, wrote: > ** > Hello > > Is there someone uses call_scilab (version 5.4.1) on linux? because I am > always not able to link a simple example using call_scilab on > linux(debian/ubuntu). > > I got some undefined reference for scilab functions (*) > > today, Jasper on the scilab list told me that in windows these functions > are located in > core.dll and api_scilab.dll, > > on my side I link with > ../../scilab-5.4.1/lib/scilab/libscilab.so, > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so, > > so I suppose that there is one or several missing libraries but I don't > know which ones > > for example, I don't find libscicore.so function as it is specified in > ( > http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/Makefile.call_scilab.am;h=b3a3b8baaa1563dc1f73cc262b97987a74605af8;hb=HEAD > ) > > > thanks in advance > > pascal > > Hi Pascal, I am linking scilab with a some custom code in order to create a python module. It used to work with -lscilab but recently I had to change the linker arguments to explicitely include more dependencies: -Wl,--no-as-needed -lscilab -lsciapi_scilab -lscicall_scilab -lscioutput_stream -lscicore -lscilinear_algebra -lsciconsole -lscilocalization -lscipolynomials -lsciio -lscielementary_functions -lscisparse -lscihistory_manager -lscihistory_browser -lscigraphics -lscicompletion -lscifunctions -lsciboolean -lsciwindows_tools -lscitime -lscifftw -lsciintersci -lscidouble -lscicommons You could also try to recompile scilab with --enable-maintainer-mode and see if it makes a difference. Hope it helps, Regards, > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Thu Sep 26 09:13:55 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 26 Sep 2013 09:13:55 +0200 Subject: [Scilab-users] Error using PID block in Xcos In-Reply-To: References: Message-ID: <5243DEB3.4070400@inria.fr> Le 25/09/2013 22:21, Rakhi Warriar a ?crit : > Hello! > > I am trying to see the effects of increase in P, I, D parameters on > the output of a simple first order system. However, on increasing the > parameters to say 100 or so, I get this error *" test failures occured > too many times during an internal step or occured with |h| = h_min". > *What could be the issue? > You probably trying to simulated an instable system which is going to the infinity. Serge Steer > Thanks! > Rakhi > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Thu Sep 26 16:44:45 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Thu, 26 Sep 2013 16:44:45 +0200 (CEST) Subject: [Scilab-users] call_scilab from another dll In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Thu Sep 26 17:03:42 2013 From: david.cheze at cea.fr (CHEZE David 227480) Date: Thu, 26 Sep 2013 15:03:42 +0000 Subject: [Scilab-users] call_scilab from another dll In-Reply-To: References: Message-ID: Hi Pascal, I?ve done nothing around java path lib to make it work on WIN7-32bit Scilab5.4.1release : from the c example MVSC++ project I changed nothing but the point below about manifest to be able to build. What you report is ok anyway. Why did you include core.lib ? it?s not required at first sight. David De : quantparis at numericable.fr [mailto:quantparis at numericable.fr] Envoy? : jeudi 26 septembre 2013 16:45 ? : CHEZE David 227480; users at lists.scilab.org Objet : Re: RE: [Scilab-users] call_scilab from another dll Hi David, I have added in the environment variable user variable SCI c:\Program Files\scilab-5.4.1\bin system variable add to the path c:\Program Files\scilab-5.4.1\bin linker input: api_scilab.lib call_scilan.lib core.lib linker general additional library directory c:\Program Files\scilab-5.4.1\bin the compile and link are ok, but the execution gives "The native library scicommons does not exist or cannot be found no scicommons in java.library.path current java.library.path is: is there something to do in visual studio, concerning a java.library.path? thanks in advance pascal ---- Message d'origine ---- De : "CHEZE David 227480" ? : "quantparis at numericable.fr" ; "users at lists.scilab.org" Objet : RE: [Scilab-users] call_scilab from another dll Date : 25/09/2013 14:19:39 CEST Hi Pascal, I?ve nearly the same configuration as you but my OS is WIN7 32bits, not 64bits which introduces sometimes extra pbs. I?m using MVSC++ 2010 express. I needed to run MVSC++ with a local admin account in order to open and convert automatically the example project provided in C:\Program Files\scilab-5.4.1\modules\call_scilab\examples\call_scilab\c\visual_studio . Then I got an error message at build time complaining about incompatible COFF format that I ?solved? by removing the default configuration option to embed the manifest (Manifest tool/input and output/embed=NO ). Then it rebuilds and the exe generated in SCI\bin runs well, in console mode. Nb: While working on my dlls troubles, I?ve added a new user?s environment variable SCI= C:\Program Files\scilab-5.4.1\bin and added it to the user?s Path environment variable Path=?.; C:\Program Files\scilab-5.4.1\bin. This allow to run Scilab from every local directory without stating the full path and let the system know that there is there a lot of dlls that might be called. Not sure that it should be necessary but that?s the case on my machine. By the way I?m still puzzling with this strange behavior that as soon as my component (dll) references dependency with call_scilab.dll, my simulation environment fails to see that the expected component is actually inside and the simulation stop even before trying to call Scilab... Arrgh! Regards, David De : quantparis at numericable.fr [mailto:quantparis at numericable.fr] Envoy? : mercredi 25 septembre 2013 11:41 ? : CHEZE David 227480 Objet : Re: [Scilab-users] call_scilab from another dll Hello David, I read your post concerning call_scilab, I have been trying to use it on linux with no success up to now as on one of my disk I have windows 7, yesterday evening I installed studio 2010 and scilab 5.4.1 bin but unfortunalty I wasn't able to go up to your problem (call_scilab from another dll) because I failed the simple use of call_scilab if you have any suggestions it would be helpfull FIRST ATTEMPT ---------------------------------------------------------------------------------------------------------- I try to run http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html in visual studio 2010 pro Project Properties C/C++ Additional include librarie c:\Program Files\scilab5.4.1\modules\call_scilab\includes c:\Program Files\scilab5.4.1\modules\core\includes Project Properties Linker general : Additional library Directories c:\Program Files\scilab5.4.1\bin input : api_scilab.lib call_scilab.lib core.lib RESULT: unresolved external TerminateScilab etc... note that I get the same linking error when I execute the make file supplied for linux implementation SECOND ATTEMPT ------------------------------------------------------------------------------------------------------------------------ try to run the callSciVC project supplied in the scilab installation scilab5.4.1\modules\call_scilab\examples\c\visual-studio\callsciVC solution similar results unresolved external thanks in advance if you have any suggestions pascal ---- Message d'origine ---- >De : "David Ch?ze" > >? : users at lists.scilab.org >Objet : [Scilab-users] call_scilab from another dll >Date : 24/09/2013 17:58:10 CEST > >Hi, > > i'm trying to call Scilab using call_scilab features from a .dll component > : in the system simulation environment (TRNSYS), components are available > for the simulation core as dll files (under windows). I'm writing this > component with microsoft visual c++ 2010 express and it runs well in the > simulation environment as soon as I don't include in my code real calls to > call_scilab functions (StartScilab()). Building process is ok since it > finds the headers and librairies for call_scilab and api_scilab. When I > include call to StartScilab for example, then the build process is still ok > but when I try to run my simulation simple test case (1 component), the > simulation core issues a message that it found the dll file but it didn't > find any component referenced in the test case diagram, then it failed to > run the simulation. I guess that when I really call scilab functions from > my > components, it changes something in the shape of the file that make it > uncompatible with the existing kernel dlls. > > Did you already succeeded in running similar simulation task under windows > OS (WIN7 32 Bits) involving dll files that call Scilab ? > Any ideas to investigate further? > > Thanks for your feedback, > > David > > > > -- > View this message in context: http://mailinglists.scilab.org/call-scilab-from > -another-dll-tp4027456.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at > Nabble.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 david.cheze at cea.fr Thu Sep 26 17:18:58 2013 From: david.cheze at cea.fr (CHEZE David 227480) Date: Thu, 26 Sep 2013 15:18:58 +0000 Subject: [Scilab-users] call_scilab from another dll In-Reply-To: References: Message-ID: Hi, By use of profiling tool (dependencywalker) I?ve been able to see that the issue occurs during the loading phase (LoadLibrary()) of my component dll that references call_scilab.dll : see the attached copy of the logplantageTRNSYS-SCILAB.txt and log of CallSciVC.exe. It looks like there?s an unresolved dependency making it fail to load (hook) the dlls just after SLATEC_F.DLL, ie DIFFERENTIAL_EQUATIONS_F.DLL. Original environment software and component are coded in fortran. I?m not expert in dll work, what is the normal way to go in such a situation ? I can provide a restricted test case. Thanks for your feedback, David ---- Message d'origine ---- De : "CHEZE David 227480" ? : "quantparis at numericable.fr" ; "users at lists.scilab.org" Objet : RE: [Scilab-users] call_scilab from another dll Date : 25/09/2013 14:19:39 CEST Hi Pascal, I?ve nearly the same configuration as you but my OS is WIN7 32bits, not 64bits which introduces sometimes extra pbs. I?m using MVSC++ 2010 express. I needed to run MVSC++ with a local admin account in order to open and convert automatically the example project provided in C:\Program Files\scilab-5.4.1\modules\call_scilab\examples\call_scilab\c\visual_studio . Then I got an error message at build time complaining about incompatible COFF format that I ?solved? by removing the default configuration option to embed the manifest (Manifest tool/input and output/embed=NO ). Then it rebuilds and the exe generated in SCI\bin runs well, in console mode. Nb: While working on my dlls troubles, I?ve added a new user?s environment variable SCI= C:\Program Files\scilab-5.4.1\bin and added it to the user?s Path environment variable Path=?.; C:\Program Files\scilab-5.4.1\bin. This allow to run Scilab from every local directory without stating the full path and let the system know that there is there a lot of dlls that might be called. Not sure that it should be necessary but that?s the case on my machine. By the way I?m still puzzling with this strange behavior that as soon as my component (dll) references dependency with call_scilab.dll, my simulation environment fails to see that the expected component is actually inside and the simulation stop even before trying to call Scilab... Arrgh! Regards, David De : quantparis at numericable.fr [mailto:quantparis at numericable.fr] Envoy? : mercredi 25 septembre 2013 11:41 ? : CHEZE David 227480 Objet : Re: [Scilab-users] call_scilab from another dll Hello David, I read your post concerning call_scilab, I have been trying to use it on linux with no success up to now as on one of my disk I have windows 7, yesterday evening I installed studio 2010 and scilab 5.4.1 bin but unfortunalty I wasn't able to go up to your problem (call_scilab from another dll) because I failed the simple use of call_scilab if you have any suggestions it would be helpfull FIRST ATTEMPT ---------------------------------------------------------------------------------------------------------- I try to run http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html in visual studio 2010 pro Project Properties C/C++ Additional include librarie c:\Program Files\scilab5.4.1\modules\call_scilab\includes c:\Program Files\scilab5.4.1\modules\core\includes Project Properties Linker general : Additional library Directories c:\Program Files\scilab5.4.1\bin input : api_scilab.lib call_scilab.lib core.lib RESULT: unresolved external TerminateScilab etc... note that I get the same linking error when I execute the make file supplied for linux implementation SECOND ATTEMPT ------------------------------------------------------------------------------------------------------------------------ try to run the callSciVC project supplied in the scilab installation scilab5.4.1\modules\call_scilab\examples\c\visual-studio\callsciVC solution similar results unresolved external thanks in advance if you have any suggestions pascal ---- Message d'origine ---- >De : "David Ch?ze" > >? : users at lists.scilab.org >Objet : [Scilab-users] call_scilab from another dll >Date : 24/09/2013 17:58:10 CEST > >Hi, > > i'm trying to call Scilab using call_scilab features from a .dll component > : in the system simulation environment (TRNSYS), components are available > for the simulation core as dll files (under windows). I'm writing this > component with microsoft visual c++ 2010 express and it runs well in the > simulation environment as soon as I don't include in my code real calls to > call_scilab functions (StartScilab()). Building process is ok since it > finds the headers and librairies for call_scilab and api_scilab. When I > include call to StartScilab for example, then the build process is still ok > but when I try to run my simulation simple test case (1 component), the > simulation core issues a message that it found the dll file but it didn't > find any component referenced in the test case diagram, then it failed to > run the simulation. I guess that when I really call scilab functions from > my > components, it changes something in the shape of the file that make it > uncompatible with the existing kernel dlls. > > Did you already succeeded in running similar simulation task under windows > OS (WIN7 32 Bits) involving dll files that call Scilab ? > Any ideas to investigate further? > > Thanks for your feedback, > > David > > > > -- > View this message in context: http://mailinglists.scilab.org/call-scilab-from > -another-dll-tp4027456.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at > Nabble.com. > _______________________________________________ > 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 -------------- An embedded and charset-unspecified text was scrubbed... Name: logokCallSciVC.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: logplantageTRNSYS-SCILAB.txt URL: From Nora.Lecoeur at rhul.ac.uk Thu Sep 26 17:47:57 2013 From: Nora.Lecoeur at rhul.ac.uk (Lecoeur, Nora) Date: Thu, 26 Sep 2013 15:47:57 +0000 Subject: [Scilab-users] colorbar Message-ID: <4d10ed604d8d4cec87a4397382b665ce@DBXPR03MB189.eurprd03.prod.outlook.com> Hello, I would like to plot 3 graphs with Scilab (the 2nd graph below the 1st graph and the 3rd graph below the 2nd graph ) and to put a colorbar on the right of the 4 plot (instead of having 4 colorbars). How can I do it ? Thanks. Regards, Nora Lecoeur PHD DIC Postdoctoral Researcher Earth Sciences Dept Royal Holloway -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Sep 26 18:58:42 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 26 Sep 2013 18:58:42 +0200 Subject: [Scilab-users] colorbar In-Reply-To: <4d10ed604d8d4cec87a4397382b665ce@DBXPR03MB189.eurprd03.prod.outlook.com> References: <4d10ed604d8d4cec87a4397382b665ce@DBXPR03MB189.eurprd03.prod.outlook.com> Message-ID: <524467C2.1080702@free.fr> Hello, Le 26/09/2013 17:47, Lecoeur, Nora a ?crit : > > Hello, > > I would like to plot 3 graphs with Scilab (the 2nd graph below the 1st > graph and the 3rd graph below the 2nd graph ) > > and to put a colorbar on the right of the 4 plot (instead of having 4 > colorbars). > > How can I do it ? Thanks. > For instance, with something like: clf subplot(1,2,2) colorbar(1,3) subplot(3,1,1) plot2d() // plot #1 subplot(3,1,2) plot2d() // plot #2 subplot(3,1,3) plot2d() // plot #3 Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iccficdi.png Type: image/png Size: 17235 bytes Desc: not available URL: From boljeleel at yahoo.com Thu Sep 26 23:04:22 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Thu, 26 Sep 2013 14:04:22 -0700 (PDT) Subject: [Scilab-users] Double y-axis on a single plot! Message-ID: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> Hi everyone, Please how can I plot a graph with 2 y-axes i.e. Left & right with just one single x-axis. Regards. From rakhiwarriar at gmail.com Fri Sep 27 05:38:55 2013 From: rakhiwarriar at gmail.com (Rakhi Warriar) Date: Fri, 27 Sep 2013 09:08:55 +0530 Subject: [Scilab-users] Error using PID block in Xcos In-Reply-To: <5243DEB3.4070400@inria.fr> References: <5243DEB3.4070400@inria.fr> Message-ID: Hi Serge, Thanks for the reply. No it was not an unstable system. The transfer function of the system is G(s) = 1/(30s+1) Rakhi On Thu, Sep 26, 2013 at 12:43 PM, Serge Steer wrote: > Le 25/09/2013 22:21, Rakhi Warriar a ?crit : > > Hello! > > I am trying to see the effects of increase in P, I, D parameters on the > output of a simple first order system. However, on increasing the > parameters to say 100 or so, I get this error *" test failures occured > too many times during an internal step or occured with |h| = h_min". *What > could be the issue? > > You probably trying to simulated an instable system which is going to > the infinity. > Serge Steer > > Thanks! > Rakhi > > > _______________________________________________ > 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 grocer.toolbox at gmail.com Fri Sep 27 08:09:06 2013 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Fri, 27 Sep 2013 08:09:06 +0200 Subject: [Scilab-users] Double y-axis on a single plot! In-Reply-To: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> References: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> Message-ID: Hello. In my toolbox grocer, available on Atoms or my web site, dubois.ensae.net/grocee.html, you will find a function pltseries that provides this, among manu other things. ?ric Le 26 sept. 2013 23:05, "Debola Abduljeleel" a ?crit : > > Hi everyone, > Please how can I plot a graph with 2 y-axes i.e. Left & right with just > one single x-axis. > Regards. > _______________________________________________ > 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 Sep 27 08:32:52 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 27 Sep 2013 08:32:52 +0200 Subject: [Scilab-users] Double y-axis on a single plot! In-Reply-To: References: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B047@exchsrv.auxitrol.ad> The link doesn't work De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Eric Dubois Envoy? : vendredi 27 septembre 2013 08:09 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Double y-axis on a single plot! Hello. In my toolbox grocer, available on Atoms or my web site, dubois.ensae.net/grocee.html, you will find a function pltseries that provides this, among manu other things. ?ric Le 26 sept. 2013 23:05, "Debola Abduljeleel" a ?crit : Hi everyone, Please how can I plot a graph with 2 y-axes i.e. Left & right with just one single x-axis. Regards. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Fri Sep 27 08:53:19 2013 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Fri, 27 Sep 2013 08:53:19 +0200 Subject: [Scilab-users] Double y-axis on a single plot! In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B047@exchsrv.auxitrol.ad> References: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B047@exchsrv.auxitrol.ad> Message-ID: Sorry, there is a smartphone induced full. The link is dubois.ensae.net/grocer.html ?ric Le 27 sept. 2013 08:33, "Carrico, Paul" a ?crit : > The link doesn?t work**** > > ** ** > > *De :* users-bounces at lists.scilab.org [mailto: > users-bounces at lists.scilab.org] *De la part de* Eric Dubois > *Envoy? :* vendredi 27 septembre 2013 08:09 > *? :* International users mailing list for Scilab. > *Objet :* Re: [Scilab-users] Double y-axis on a single plot!**** > > ** ** > > Hello.**** > > In my toolbox grocer, available on Atoms or my web site, > dubois.ensae.net/grocee.html, you will find a function pltseries that > provides this, among manu other things.**** > > ?ric**** > > Le 26 sept. 2013 23:05, "Debola Abduljeleel" a > ?crit :**** > > > Hi everyone, > Please how can I plot a graph with 2 y-axes i.e. Left & right with just > one single x-axis. > Regards. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users**** > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > _______________________________________________ > 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 Fri Sep 27 08:58:04 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 27 Sep 2013 08:58:04 +0200 Subject: [Scilab-users] Double y-axis on a single plot! In-Reply-To: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> References: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31F31B392@301EX00100.sidel.com> Hello, > De la part de Debola Abduljeleel > Envoy? : jeudi 26 septembre 2013 23:04 > > Please how can I plot a graph with 2 y-axes You will find here an example of code: http://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg?uselang=en Hope this helps. -- 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 sgougeon at free.fr Fri Sep 27 10:34:45 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 27 Sep 2013 10:34:45 +0200 Subject: [Scilab-users] Double y-axis on a single plot! In-Reply-To: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> References: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> Message-ID: <52454325.9090702@free.fr> Hello, Le 26/09/2013 23:04, Debola Abduljeleel a ?crit : > Hi everyone, > Please how can I plot a graph with 2 y-axes i.e. Left & right with just one single x-axis. There is a demo for this: demo_gui // then choose Graphics => 2D and 3D plots => plotyy // then in the menu bar of the figure : => View code And another one for 3 Y plot: Graphics => 2D and 3D plots => plotyyy Regards From Peter.Fabo at dynamag.com Fri Sep 27 11:16:28 2013 From: Peter.Fabo at dynamag.com (pf) Date: Fri, 27 Sep 2013 11:16:28 +0200 Subject: [Scilab-users] Modnum & Xcos Message-ID: <1380273388.2918.2.camel@pf-X58-USB3> Hi all, here is http://wiki.tntech.eu/index.php?title=Xcos_Modnum a result from small experiment with conversion of nonlinear library from Modnum Toolbox to Xcos (5.4.1). http://www.scicos.org/ScicosModNum/modnum_web/web/eng/ With regards Peter From antoine.monmayrant at laas.fr Fri Sep 27 17:13:22 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 27 Sep 2013 17:13:22 +0200 Subject: [Scilab-users] call_scilab (from 5.4.1) on linux In-Reply-To: References: Message-ID: <5245A092.9060301@laas.fr> Hi Pascal, Can you get me a copy of your makefile? I copy-pasted what you had in your email and it fails. I think the formating got lost. Cheers, Antoine PS: here is what I got: $ make -f makefile1 makefile1:13: *** missing separator. Stop. On 09/24/2013 03:01 PM, quantparis at numericable.fr wrote: > Hi Antoine > > thanks for the help, > > the c source used ( simple_call_scilab.c) is the one given in > http://help.scilab.org/docs/5.4.0/fr_FR/call_scilab.html > > thanks in advance > pascal > > > -------------------------------------------------------------------------------------------------------------------------------------- > IDE use: > ------------------------------------------------------------------------------------------------------------------------------------- > When I use an IDE (netbeans or eclipse) I specified the include and lib directories > > include: > ../../scilab-5.4.1/include/scilab > > library: > additional library directory: ../../scilab-5.4.1/lib/scilab > libraries: > ../../scilab-5.4.1/lib/scilab/libscilab.so > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so > and I get the undefined reference I listed > > > ------------------------------------------------------------------------------------------------------------------------------------ > Make approach use (may be I made a mistake, I am not used to do this approach) > ---------------------------------------------------------------------------------------------------------------------------------- > following the documentation > (http://help.scilab.org/docs/5.4.0/fr_FR/compile_and_run_call_scilab.htm) > > make file: > PATH_SCILAB = mon chemin/scilab-5.4.1/ > > SCILAB_CFLAGS = -I$(PATH_SCILAB)/include/scilab/ > > SCILAB_LDFLAGS = -lscilab > > PATH_TO_LIB_SCILAB = $(PATH_SCILAB)/lib/scilab/ > > PATH_TO_LIB_CALL_SCILAB = $(PATH_SCILAB)/lib/scilab/ > > all: simple_call_scilab.c > export LD_LIBRARY_PATH=$(PATH_TO_LIB_SCILAB):$(PATH_TO_LIB_CALL_SCILAB) > gcc -o myExample $(SCILAB_LDFLAGS) -L$(PATH_TO_LIB_SCILAB) > -L$(PATH_TO_LIB_CALL_SCILAB) $(SCILAB_CFLAGS) simple_call_scilab.c > > > ------------------------------------------------------------------------------------------------------------ > then I get > > > $ make -f makefile1 > > > export > LD_LIBRARY_PATH=/home/taiyi3/scilab-5.4.1//lib/scilab/:/home/taiyi3/scilab-5.4.1//lib/scilab/ > gcc -o myExample -lscilab -L/home/taiyi3/scilab-5.4.1//lib/scilab/ > -L/home/taiyi3/scilab-5.4.1//lib/scilab/ > -I/home/taiyi3/scilab-5.4.1//include/scilab/ simple_call_scilab.c > simple_call_scilab.c: In function 'main': > simple_call_scilab.c:16:2: warning: passing argument 3 of 'StartScilab' makes > integer from pointer without a cast [enabled by default] > if ( StartScilab(getenv("SCI"),NULL,NULL) == FALSE ) > ^ > In file included from simple_call_scilab.c:6:0: > /home/taiyi3/scilab-5.4.1//include/scilab/call_scilab.h:43:10: note: expected > 'int' but argument is of type 'void *' > BOOL StartScilab(char *SCIpath, char *ScilabStartup, int Stacksize); > ^ > /tmp/ccTvXMuB.o: dans la fonction ? main ?: > simple_call_scilab.c:(.text+0x46): r?f?rence ind?finie vers ? StartScilab ? > simple_call_scilab.c:(.text+0x79): r?f?rence ind?finie vers ? SendScilabJob ? > simple_call_scilab.c:(.text+0x83): r?f?rence ind?finie vers ? SendScilabJob ? > simple_call_scilab.c:(.text+0x8d): r?f?rence ind?finie vers ? SendScilabJob ? > simple_call_scilab.c:(.text+0x97): r?f?rence ind?finie vers ? TerminateScilab ? > collect2: error: ld returned 1 exit status > make: *** [all] Erreur 1 > > > ---- Message d'origine ---- > De : "Antoine Monmayrant" > ? : "International users mailing list for Scilab." > Objet : Re: [Scilab-users] call_scilab (from 5.4.1) on linux > Date : 24/09/2013 14:18:10 CEST > > On 09/24/2013 01:59 PM, quantparis at numericable.fr wrote: > > Hello > > > > Is there someone uses call_scilab (version 5.4.1) on linux? because I am always > > not able to link a simple example using call_scilab on linux(debian/ubuntu). > Hi Pascal, > > Can you provide us with a minimal example (*.c, and command line link and > compile) you tried so we can give it a try on our system? > (scilab 5.4.1 and nightly builds on ubuntu 12.04 LTS 64bits). > > Antoine > > I got some undefined reference for scilab functions (*) > > > > today, Jasper on the scilab list told me that in windows these functions are > > located in > > core.dll and api_scilab.dll, > > > > on my side I link with > > ../../scilab-5.4.1/lib/scilab/libscilab.so, > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so, > > > > so I suppose that there is one or several missing libraries but I don't know > > which ones > > > > for example, I don't find libscicore.so function as it is specified in > > (http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/Makefile.call_scilab.am;h=b3a3b8baaa1563dc1f73cc262b97987a74605af8;hb=HEAD) > > > > > > thanks in advance > > > > pascal > > > > > > > > (*)full list of the undefined references > > > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > com_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > callFunctionFromGateway ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > createNamedMatrixOfString ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > getNamedVarType ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > clearInternalLastError ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > checklhs_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > freeArrayOfString ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > intersci_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > setScilabMode ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > inisci_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > checkrhs_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > readNamedMatrixOfDouble ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > scirun_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > sciHasFigures ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > putlhsvar_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > getNamedVarDimension ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > setSCIpath ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > getScilabMode ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > pvApiCtx ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > getInternalLastErrorMessage ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > getInternalLastErrorValue ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > createvarfromptr_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > ExitScilab ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > settmpdir_ ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > InitializeLaunchScilabSignal ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > ReleaseLaunchScilabSignal ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > isdir ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > TerminateCorePart2 ? > > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence ind?finie vers ? > > printError ? > > > > > > > > > > _______________________________________________ > > 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 antoine.monmayrant at laas.fr Fri Sep 27 17:17:49 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 27 Sep 2013 17:17:49 +0200 Subject: [Scilab-users] call_scilab (from 5.4.1) on linux In-Reply-To: <5245A092.9060301@laas.fr> References: <5245A092.9060301@laas.fr> Message-ID: <5245A19D.5000202@laas.fr> Hi Pascal, Here is what I got (I got rid of the makefile entirely): $ gcc -o myExample -lscilab -L/home/amonmayr/softs/scilab-5.4.1/lib/scilab/ -I/home/amonmayr/softs/scilab-5.4.1/include/scilab/ simple_call_scilab.c simple_call_scilab.c: In function 'main': simple_call_scilab.c:16:2: warning: passing argument 3 of 'StartScilab' makes integer from pointer without a cast [enabled by default] /home/amonmayr/softs/scilab-5.4.1/include/scilab/call_scilab.h:43:10: note: expected 'int' but argument is of type 'void *' /tmp/ccowDJKb.o: In function `main': simple_call_scilab.c:(.text+0x46): undefined reference to `StartScilab' simple_call_scilab.c:(.text+0x7f): undefined reference to `SendScilabJob' simple_call_scilab.c:(.text+0x89): undefined reference to `SendScilabJob' simple_call_scilab.c:(.text+0x93): undefined reference to `SendScilabJob' simple_call_scilab.c:(.text+0x9d): undefined reference to `TerminateScilab' collect2: ld returned 1 exit status On 09/27/2013 05:13 PM, Antoine Monmayrant wrote: > Hi Pascal, > > Can you get me a copy of your makefile? > I copy-pasted what you had in your email and it fails. > I think the formating got lost. > Cheers, > > Antoine > > PS: here is what I got: > $ make -f makefile1 > makefile1:13: *** missing separator. Stop. > > > On 09/24/2013 03:01 PM, quantparis at numericable.fr wrote: >> Hi Antoine >> >> thanks for the help, >> >> the c source used ( simple_call_scilab.c) is the one given in >> http://help.scilab.org/docs/5.4.0/fr_FR/call_scilab.html >> >> thanks in advance >> pascal >> >> >> -------------------------------------------------------------------------------------------------------------------------------------- >> >> IDE use: >> ------------------------------------------------------------------------------------------------------------------------------------- >> >> When I use an IDE (netbeans or eclipse) I specified the include and >> lib directories >> >> include: >> ../../scilab-5.4.1/include/scilab >> >> library: >> additional library directory: >> ../../scilab-5.4.1/lib/scilab >> libraries: >> ../../scilab-5.4.1/lib/scilab/libscilab.so >> ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so >> and I get the undefined reference I listed >> >> >> ------------------------------------------------------------------------------------------------------------------------------------ >> >> Make approach use (may be I made a mistake, I am not used to do this >> approach) >> ---------------------------------------------------------------------------------------------------------------------------------- >> >> following the documentation >> (http://help.scilab.org/docs/5.4.0/fr_FR/compile_and_run_call_scilab.htm) >> >> >> make file: >> PATH_SCILAB = mon chemin/scilab-5.4.1/ >> >> SCILAB_CFLAGS = -I$(PATH_SCILAB)/include/scilab/ >> >> SCILAB_LDFLAGS = -lscilab >> >> PATH_TO_LIB_SCILAB = $(PATH_SCILAB)/lib/scilab/ >> >> PATH_TO_LIB_CALL_SCILAB = $(PATH_SCILAB)/lib/scilab/ >> >> all: simple_call_scilab.c >> export >> LD_LIBRARY_PATH=$(PATH_TO_LIB_SCILAB):$(PATH_TO_LIB_CALL_SCILAB) >> gcc -o myExample $(SCILAB_LDFLAGS) -L$(PATH_TO_LIB_SCILAB) >> -L$(PATH_TO_LIB_CALL_SCILAB) $(SCILAB_CFLAGS) simple_call_scilab.c >> >> >> ------------------------------------------------------------------------------------------------------------ >> >> then I get >> >> >> $ make -f makefile1 >> >> >> export >> LD_LIBRARY_PATH=/home/taiyi3/scilab-5.4.1//lib/scilab/:/home/taiyi3/scilab-5.4.1//lib/scilab/ >> >> gcc -o myExample -lscilab -L/home/taiyi3/scilab-5.4.1//lib/scilab/ >> -L/home/taiyi3/scilab-5.4.1//lib/scilab/ >> -I/home/taiyi3/scilab-5.4.1//include/scilab/ simple_call_scilab.c >> simple_call_scilab.c: In function 'main': >> simple_call_scilab.c:16:2: warning: passing argument 3 of >> 'StartScilab' makes >> integer from pointer without a cast [enabled by default] >> if ( StartScilab(getenv("SCI"),NULL,NULL) == FALSE ) >> ^ >> In file included from simple_call_scilab.c:6:0: >> /home/taiyi3/scilab-5.4.1//include/scilab/call_scilab.h:43:10: note: >> expected >> 'int' but argument is of type 'void *' >> BOOL StartScilab(char *SCIpath, char *ScilabStartup, int >> Stacksize); >> ^ >> /tmp/ccTvXMuB.o: dans la fonction ? main ?: >> simple_call_scilab.c:(.text+0x46): r?f?rence ind?finie vers ? >> StartScilab ? >> simple_call_scilab.c:(.text+0x79): r?f?rence ind?finie vers ? >> SendScilabJob ? >> simple_call_scilab.c:(.text+0x83): r?f?rence ind?finie vers ? >> SendScilabJob ? >> simple_call_scilab.c:(.text+0x8d): r?f?rence ind?finie vers ? >> SendScilabJob ? >> simple_call_scilab.c:(.text+0x97): r?f?rence ind?finie vers ? >> TerminateScilab ? >> collect2: error: ld returned 1 exit status >> make: *** [all] Erreur 1 >> >> >> ---- Message d'origine ---- >> De : "Antoine Monmayrant" >> ? : "International users mailing list for Scilab." >> >> Objet : Re: [Scilab-users] call_scilab (from 5.4.1) on linux >> Date : 24/09/2013 14:18:10 CEST >> >> On 09/24/2013 01:59 PM, quantparis at numericable.fr wrote: >> > Hello >> > >> > Is there someone uses call_scilab (version 5.4.1) on linux? because >> I am always >> > not able to link a simple example using call_scilab on >> linux(debian/ubuntu). >> Hi Pascal, >> >> Can you provide us with a minimal example (*.c, and command line link >> and >> compile) you tried so we can give it a try on our system? >> (scilab 5.4.1 and nightly builds on ubuntu 12.04 LTS 64bits). >> >> Antoine >> > I got some undefined reference for scilab functions (*) >> > >> > today, Jasper on the scilab list told me that in windows these >> functions are >> > located in >> > core.dll and api_scilab.dll, >> > >> > on my side I link with >> > ../../scilab-5.4.1/lib/scilab/libscilab.so, >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so, >> > >> > so I suppose that there is one or several missing libraries but I >> don't know >> > which ones >> > >> > for example, I don't find libscicore.so function as it is specified in >> > >> (http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/Makefile.call_scilab.am;h=b3a3b8baaa1563dc1f73cc262b97987a74605af8;hb=HEAD) >> > >> > >> > thanks in advance >> > >> > pascal >> > >> > >> > >> > (*)full list of the undefined references >> > >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > com_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > callFunctionFromGateway ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > createNamedMatrixOfString ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > getNamedVarType ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > clearInternalLastError ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > checklhs_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > freeArrayOfString ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > intersci_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > setScilabMode ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > inisci_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > checkrhs_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > readNamedMatrixOfDouble ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > scirun_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > sciHasFigures ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > putlhsvar_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > getNamedVarDimension ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > setSCIpath ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > getScilabMode ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > pvApiCtx ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > getInternalLastErrorMessage ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > getInternalLastErrorValue ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > createvarfromptr_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > ExitScilab ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > settmpdir_ ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > InitializeLaunchScilabSignal ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > ReleaseLaunchScilabSignal ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > isdir ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > TerminateCorePart2 ? >> > ../../scilab-5.4.1/lib/scilab/libscicall_scilab.so: r?f?rence >> ind?finie vers ? >> > printError ? >> > >> > >> > >> > >> > _______________________________________________ >> > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Fri Sep 27 18:16:35 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Fri, 27 Sep 2013 18:16:35 +0200 (CEST) Subject: [Scilab-users] call_scilab (from 5.4.1) on linux In-Reply-To: <5245A19D.5000202@laas.fr> Message-ID: An HTML attachment was scrubbed... URL: From sdr at durietz.se Sun Sep 29 11:37:06 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Sun, 29 Sep 2013 11:37:06 +0200 Subject: [Scilab-users] Dot operator on a handle Message-ID: <5247F4C2.8010200@durietz.se> Error setting a property of a graphics entity with the dot operator on a handle from a calling function Save these two functions in a file testhandle.sci: function testhandle(nodot, h_arg) if ~exists('nodot') then nodot = %f; end if ~exists('h_arg') then h_arg = %f; end f = scf(); a = f.children; a.user_data = 1; if h_arg then testhandle2(nodot, a) else testhandle2(nodot) end endfunction function testhandle2(nodot, a) disp("type(a) = " + string(type(a))) //pause if nodot then set(a,"user_data",2); else a.user_data = 2; end disp("type(a) = " + string(type(a))) delete(f) endfunction Load it and and then run it: -->testhandle(%f) type(a) = 9 type(a) = 17 -->testhandle(%t) type(a) = 9 type(a) = 9 That is, if you use use the dot operator on a handle from a calling function to set a property of a graphics entity, like here (the first case) a.user_data = 2; the handle (type 9) is changed to an mlist (type 17) but if you change the property with the set routine (the second case) set(a,"user_data",2); the handle is kept. It also works with the dot operator if you send the handle as an argument to testhandle2 (see the code above): -->testhandle(%f, %t) or -->testhandle(h_arg=%t) type(a) = 9 type(a) = 9 Is this a known bug or shall I report a new one? Regards Stefan From sgougeon at free.fr Sun Sep 29 14:32:53 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 29 Sep 2013 14:32:53 +0200 Subject: [Scilab-users] Dot operator on a handle In-Reply-To: <5247F4C2.8010200@durietz.se> References: <5247F4C2.8010200@durietz.se> Message-ID: <52481DF5.1020601@free.fr> Hello, Le 29/09/2013 11:37, Stefan Du Rietz a ?crit : > Error setting a property of a graphics entity with the dot operator on > a handle from a calling function It may be related to variable reachability. When "a" is not passed to testhandle2(), this function must get it from the calling environnement. When in testhandle() a = f.children; is set, "a" is a local variable = pointer to the handle that is global. If one inserts the line a = a at the very beginning of testhandle2() (before the first disp), the difference of behavior disappears and type==9 is returned in both cases. Anyway, this difference is quite strange. In testhandle2(), the first disp calling type(a) should force the local definition of "a" if "a" is not passed among input arguments, and adding a=a should make no difference. The fact that in some cases a struct is returned could be a piece of work aiming to answer to http://bugzilla.scilab.org/show_bug.cgi?id=7407 Or it could be a side effect of the fix of http://bugzilla.scilab.org/show_bug.cgi?id=7110 Or.. ? Regards Samuel From sgougeon at free.fr Sun Sep 29 14:54:06 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 29 Sep 2013 14:54:06 +0200 Subject: [Scilab-users] Dot operator on a handle In-Reply-To: <5247F4C2.8010200@durietz.se> References: <5247F4C2.8010200@durietz.se> Message-ID: <524822EE.40907@free.fr> Le 29/09/2013 11:37, Stefan Du Rietz a ?crit : > Error setting a property of a graphics entity with the dot operator on > a handle from a calling function . with function testhandle2(set_a_is_a,a) if set_a_is_a a = a end disp("typeof(a) =" + string(typeof(a))) set(a,"user_data",2); disp("typeof(a) =" + string(typeof(a))) a.user_data = 3; disp("typeof(a) =" + string(typeof(a))) delete(f) endfunction we get -->testhandle(%t) typeof(a) = handle typeof(a) = handle typeof(a) = handle -->testhandle(%f) typeof(a) = handle typeof(a) = handle typeof(a) = st Indeed, it is a very weird behavior. -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Mon Sep 30 15:27:24 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Mon, 30 Sep 2013 15:27:24 +0200 (CEST) Subject: [Scilab-users] compiling scilab: path for flexdock, jRosetta, jlatexmath and scirenderer Message-ID: An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Mon Sep 30 20:27:30 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Mon, 30 Sep 2013 20:27:30 +0200 (CEST) Subject: [Scilab-users] pb flexdock from http://forge.scilab.org/index.php/p/flexdock/downloads/ Message-ID: An HTML attachment was scrubbed... URL: