From antoine.monmayrant at laas.fr Wed Mar 2 10:23:33 2016 From: antoine.monmayrant at laas.fr (antoine.monmayrant at laas.fr) Date: Wed, 2 Mar 2016 10:23:33 +0100 Subject: [Scilab-users] plot bug in scilab 6.0 beta1 Message-ID: <56D6B115.8050502@laas.fr> Hi all, I found a bug in scilab 6.0 beta1. Plot seems to fail for some curves when trying to specify a color different than the default one: //BUG PLOT: i=[-100:100]; i0=10; di=4.0.^((i/i0)^2); //OK, no error scf(); plot(i,di); // Error: Invalid index scf(); plot(i,di,'r'); in builtin getLineSpec ( /home/myhome/softs/scilab-6.0.0-beta-1/share/scilab/modules/graphics/macros/getLineSpec.sci line 11 ) at line 336 of function plot ( /home/myhome/softs/scilab-6.0.0-beta-1/share/scilab/modules/graphics/macros/plot.sci line 348 ) Invalid index. I don't know exactly how to phrase my bug report to state the problem clearly. Any idea what's wrong and how to say it properly? Antoine From amonmayr at laas.fr Wed Mar 2 10:45:07 2016 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Wed, 2 Mar 2016 10:45:07 +0100 Subject: [Scilab-users] plot bug in scilab 6.0 beta1 In-Reply-To: <56D6B115.8050502@laas.fr> References: <56D6B115.8050502@laas.fr> Message-ID: <56D6B623.8010109@laas.fr> Answering my own post: I just restarted scilab and can no longer reproduce this bug, weird... Antoine > Hi all, > > I found a bug in scilab 6.0 beta1. > Plot seems to fail for some curves when trying to specify a color > different than the default one: > > //BUG PLOT: > > i=[-100:100]; > i0=10; > di=4.0.^((i/i0)^2); > > //OK, no error > scf(); > plot(i,di); > > // Error: Invalid index > scf(); > plot(i,di,'r'); > > in builtin getLineSpec ( > /home/myhome/softs/scilab-6.0.0-beta-1/share/scilab/modules/graphics/macros/getLineSpec.sci > line 11 ) > at line 336 of function plot ( > /home/myhome/softs/scilab-6.0.0-beta-1/share/scilab/modules/graphics/macros/plot.sci > line 348 ) > > Invalid index. > > I don't know exactly how to phrase my bug report to state the problem > clearly. > Any idea what's wrong and how to say it properly? > > > > Antoine > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From j-lan at online.no Wed Mar 2 11:06:53 2016 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 2 Mar 2016 11:06:53 +0100 Subject: [Scilab-users] plot bug in scilab 6.0 beta1 In-Reply-To: <56D6B115.8050502@laas.fr> References: <56D6B115.8050502@laas.fr> Message-ID: <56D6BB3D.5040007@online.no> On 02.03.2016 10:23, antoine.monmayrant at laas.fr wrote: > Hi all, > > I found a bug in scilab 6.0 beta1. > Plot seems to fail for some curves when trying to specify a color > different than the default one: > It works OK for me with Windows 10 and 6.0 beta 1, I can plot any color. But I get a different problem, when repeating your scf();plot(); so I have 5-10 open graphical windows, Scilab crashes without warning. Jan ? Langeland From antoine.monmayrant at laas.fr Wed Mar 2 11:18:26 2016 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 2 Mar 2016 11:18:26 +0100 Subject: [Scilab-users] plot bug in scilab 6.0 beta1 In-Reply-To: <56D6BB3D.5040007@online.no> References: <56D6B115.8050502@laas.fr> <56D6BB3D.5040007@online.no> Message-ID: <56D6BDF2.2050804@laas.fr> Le 03/02/2016 11:06 AM, Jan ?ge Langeland a ?crit : > > > On 02.03.2016 10:23, antoine.monmayrant at laas.fr wrote: >> Hi all, >> >> I found a bug in scilab 6.0 beta1. >> Plot seems to fail for some curves when trying to specify a color >> different than the default one: >> > It works OK for me with Windows 10 and 6.0 beta 1, I can plot any > color. But I get a different problem, when repeating your > scf();plot(); so I have 5-10 open graphical windows, Scilab crashes > without warning. > > Jan ? Langeland > Well, I found the source of the bug: somewhere up in my script I had " color='r'; " which was overloading the definition of the function color ! Sorry for the noise, As for you problem, can you open scilab in cmd window to see whether you have any meaningful error message (java.???) ? Antoine From j-lan at online.no Wed Mar 2 12:11:42 2016 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 2 Mar 2016 12:11:42 +0100 Subject: [Scilab-users] plot bug in scilab 6.0 beta1 In-Reply-To: <56D6BDF2.2050804@laas.fr> References: <56D6B115.8050502@laas.fr> <56D6BB3D.5040007@online.no> <56D6BDF2.2050804@laas.fr> Message-ID: <56D6CA6E.4020504@online.no> As for you problem, can you open scilab in cmd window to see whether you have any meaningful error message (java.???) ? > > Antoine > As I launch wscilex in cmd window, the cmd window closes. Jan ? From david.cheze at cea.fr Wed Mar 2 12:24:09 2016 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Wed, 2 Mar 2016 04:24:09 -0700 (MST) Subject: [Scilab-users] global constant definition for module Message-ID: <1456917849551-4033598.post@n3.nabble.com> Hi all, I would like to define a variable in a user module in such a way that this constant would be available for all functions (also out of the module) as a "hidden(you don't need to see it inbrowsvar), protected (should not be possible to clear it, even with clearglobal )" global variable as soon the module is loaded: do you have suggestions how to do it within scilab? David -- View this message in context: http://mailinglists.scilab.org/global-constant-definition-for-module-tp4033598.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From devgohil102 at gmail.com Wed Mar 2 18:58:15 2016 From: devgohil102 at gmail.com (Devansh Gohil) Date: Wed, 2 Mar 2016 23:28:15 +0530 Subject: [Scilab-users] About project idea in GSoC Message-ID: Respected Sir, I am a B.Tech second year student of Information and Communication Technology engineering at DA-IICT ,India. After going through the project ideas I am very much interested in applying for projects of "Physical Modeling Blockset for Xcos" or "improvement of the CGLAB module" because I have good command on c and c++ and as an ICT student i can do better in "Physical Modeling Blockset for Xcos" and "improvement of the CGLAB module" projects. Thanks, Devansh Gohil B.Tech Student DA-IICT. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Wed Mar 2 19:06:19 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 02 Mar 2016 19:06:19 +0100 Subject: [Scilab-users] global constant definition for module In-Reply-To: <1456917849551-4033598.post@n3.nabble.com> References: <1456917849551-4033598.post@n3.nabble.com> Message-ID: <56D72B9B.7030003@inria.fr> In the past, it was possible to store variables in scilab libraries (lib) just saving them with the .bin extension and adding their names in the names file and so to do what you want. example dirpath=TMPDIR+"/test/"; mkdir(dirpath); A=rand(5,5); P=%s^2+1; save( dirpath+"A.bin","A"); save( dirpath+"P.bin","P"); mputl(["A","P"],dirpath+"names"); testlib=lib(dirpath) clear A P //Up to this point every thing goes well but with 5.5.2 A return the error :Overloaded load cannot occur in this context And I do not know if it is possible with Scilab6 because the bin files are no more "save" files. I think it should be useful to make it work again.... Serge Le 02/03/2016 12:24, David Ch?ze a ?crit : > Hi all, > > I would like to define a variable in a user module in such a way that this > constant would be available for all functions (also out of the module) as a > "hidden(you don't need to see it inbrowsvar), protected (should not be > possible to clear it, even with clearglobal )" global variable as soon the > module is loaded: do you have suggestions how to do it within scilab? > > David > > > > -- > View this message in context: http://mailinglists.scilab.org/global-constant-definition-for-module-tp4033598.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 clement.david at scilab-enterprises.com Wed Mar 2 19:23:55 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 02 Mar 2016 19:23:55 +0100 Subject: [Scilab-users] About project idea in GSoC In-Reply-To: References: Message-ID: <1456943035.3134.8.camel@scilab-enterprises.com> Hi devansh, We manage the GSoC-ers in a dedicated mailing-list 'gsoc at lists.scilab.org'. Please repost to this ML. Thanks, -- Cl?ment Le mercredi 02 mars 2016 ? 23:28 +0530, Devansh Gohil a ?crit?: > Respected Sir, > > ? ? ? ? ?I am a B.Tech second year student of Information and Communication Technology engineering > at DA-IICT ,India. After going through the project ideas I am very much interested in applying for > projects of "Physical Modeling Blockset for Xcos" or "improvement of the CGLAB module" because I > have good command on c and c++ and as an ICT student i can do better in?"Physical Modeling > Blockset for Xcos"?and?"improvement of the CGLAB module"?projects. > > Thanks, > Devansh Gohil > B.Tech Student > DA-IICT. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From david.cheze at cea.fr Thu Mar 3 10:03:44 2016 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Thu, 3 Mar 2016 02:03:44 -0700 (MST) Subject: [Scilab-users] global constant definition for module In-Reply-To: <56D72B9B.7030003@inria.fr> References: <1456917849551-4033598.post@n3.nabble.com> <56D72B9B.7030003@inria.fr> Message-ID: <1456995824084-4033606.post@n3.nabble.com> Hi Serge, thanks for this solution. I've just run your example on scilab 6 beta 1 and it fails complaining about undefined variable A. then I ran the example for lib function in scilab help and it fails equally : it looks like it is broken then I will report a bug on this unless already done. Thank you David -- View this message in context: http://mailinglists.scilab.org/global-constant-definition-for-module-tp4033598p4033606.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From david.cheze at cea.fr Thu Mar 3 10:19:23 2016 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Thu, 3 Mar 2016 02:19:23 -0700 (MST) Subject: [Scilab-users] global constant definition for module In-Reply-To: <1456995824084-4033606.post@n3.nabble.com> References: <1456917849551-4033598.post@n3.nabble.com> <56D72B9B.7030003@inria.fr> <1456995824084-4033606.post@n3.nabble.com> Message-ID: <1456996763032-4033607.post@n3.nabble.com> by the way, I found that genlib and lib are doing very similar things maybe the same things : is it necessary to keep both functions for another reason than backward compatibility ? David -- View this message in context: http://mailinglists.scilab.org/global-constant-definition-for-module-tp4033598p4033607.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Mar 3 11:56:15 2016 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 3 Mar 2016 11:56:15 +0100 (CET) Subject: [Scilab-users] global constant definition for module In-Reply-To: <1456996763032-4033607.post@n3.nabble.com> Message-ID: <818051422.187701764.1457002575748.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >De: "David Ch?ze" Jeudi 3 Mars 2016 10:19:23 >.../... by the way, I found that genlib and lib are doing very similar things maybe the same things Not really: AFAIK, genlib() builds a library of macros, whereas lib() only loads such a library. However, we could ask to merge lib() in load() and remove it. BTW, it would remove the ambiguity about the "official" name of a library: a name is provided when building the library with genlib() (say "myGoodieslib"); and another one is used as LHS parameter when loading the library with lib() (say "myGoogies_lib"). Removing this duplicate and ambiguity would be fine. Samuel Gougeon From sgougeon at free.fr Thu Mar 3 12:05:16 2016 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 3 Mar 2016 12:05:16 +0100 (CET) Subject: [Scilab-users] global constant definition for module In-Reply-To: <818051422.187701764.1457002575748.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <2095487714.187729852.1457003116375.JavaMail.root@zimbra75-e12.priv.proxad.net> >De: Samuel GOUGEON, Jeudi 3 Mars 2016 11:56:15 >However, we could ask to merge lib() in load() and remove it. I should have written: We could ask to merge lib() in load() and UNDOCUMENT lib() in order to make it an internal. (and obviously avoid any back-compatibility issue: lib() is heavily used, like load()) SG From adusumillipradeep201 at gmail.com Thu Mar 3 15:48:08 2016 From: adusumillipradeep201 at gmail.com (Pradeep Pradeep) Date: Thu, 3 Mar 2016 15:48:08 +0100 Subject: [Scilab-users] Confusion between Scilab and Scicoslab Message-ID: Dear Sir/Madam, My name Pradeep Adusumilli. I am a master student at University of stuttgart. I am looking for a open source control system design tool for my project. so i have come across this tool called Scilab/Xcos and Scicoslab. Initially i am very confused between these tools. After i downloaded i came to know both environments are different but both have same common features. So i want to clear my confusions with my questions 1) Is Scilab and Scicoslab are the same? 2) i have seen both can implement control designs. As far i checked with Xcos and Scicos i can see both can implement conventional PID controller and state space controllers like LQR, kalman filter etc.Can it implement other controller like Model predictive controller and Fuzzy controller? If so can you please provide me some references? 3) I know both can make an interface to C and Fortran coding. My question is it possible to interface with MATLAB/Simulink. 4) Is it possible to estimate calculation duration in this environment like in matlab it shows simulation took 0.983 sec of cpu time? because i would like to know the performance. Your help means a lot to me. Thanks for your support in advance. Awaiting your reply..... Regards, Pradeep Adusumilli -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Thu Mar 3 16:39:38 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 3 Mar 2016 16:39:38 +0100 Subject: [Scilab-users] Confusion between Scilab and Scicoslab In-Reply-To: References: Message-ID: <56D85ABA.3040004@gmail.com> Dear Pradeem I don't that much about it - so maybe others can correct my mistakes - but here's what I believe is true about your first question: Scicoslab is built on top of Scilab (v4). It is the predecessor to Xcos. AFAIK, Scilab v4 and Scicoslab is still maintained by people at INRIA. Xcos and Scicoslab are similar, but not compatible. Best regards, Claus On 03-03-2016 15:48, Pradeep Pradeep wrote: > Dear Sir/Madam, > > My name Pradeep Adusumilli. I am a master student at University of > stuttgart. I am looking for a open source control system design tool > for my project. so i have come across this tool called Scilab/Xcos and > Scicoslab. Initially i am very confused between these tools. After i > downloaded i came to know both environments are different but both > have same common features. So i want to clear my confusions with my > questions > > 1) Is Scilab and Scicoslab are the same? > > 2) i have seen both can implement control designs. As far i checked > with Xcos and Scicos i can see both can implement conventional PID > controller and state space controllers like LQR, kalman filter etc.Can > it implement other controller like Model predictive controller and > Fuzzy controller? If so can you please provide me some references? > > 3) I know both can make an interface to C and Fortran coding. My > question is it possible to interface with MATLAB/Simulink. > > 4) Is it possible to estimate calculation duration in this environment > like in matlab it shows simulation took 0.983 sec of cpu time? because > i would like to know the performance. > > > Your help means a lot to me. Thanks for your support in advance. > Awaiting your reply..... > > Regards, > Pradeep Adusumilli > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Thu Mar 3 18:51:25 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Thu, 03 Mar 2016 09:51:25 -0800 Subject: [Scilab-users] Confusion between Scilab and Scicoslab In-Reply-To: References: Message-ID: <1457027485.3760.59.camel@Servo> Answers embedded with questions. On Thu, 2016-03-03 at 15:48 +0100, Pradeep Pradeep wrote: > Dear Sir/Madam, > > > My name Pradeep Adusumilli. I am a master student at University of > stuttgart. I am looking for a open source control system design tool > for my project. so i have come across this tool called Scilab/Xcos and > Scicoslab. Initially i am very confused between these tools. After i > downloaded i came to know both environments are different but both > have same common features. So i want to clear my confusions with my > questions > > > 1) Is Scilab and Scicoslab are the same? > No. They are different applications, both based on Scilab 4. This part is subject to correction, but Scilab moved from using Tcl to using Java for it's graphics and GUI. The folks now doing Scicoslab felt that it would be better to stick with Tcl, and did. > > 2) i have seen both can implement control designs. As far i checked > with Xcos and Scicos i can see both can implement conventional PID > controller and state space controllers like LQR, kalman filter etc.Can > it implement other controller like Model predictive controller and > Fuzzy controller? If so can you please provide me some references? > Scilab is a general purpose computing platform and can do anything you want. I gather from your question that what you really mean is "are there toolboxes to do MPC and fuzzy controllers?" I don't know the answer to that. The reason is that I don't care. If I need a toolbox to do MPC or fuzzy control or whatever, then I don't know what the hell I'm doing, and I won't be able to move that controller to the real world without learning it. Using a toolbox gets in the way of learning that stuff, so why would I want one? The alternative way of thinking about this is "oh, I'll just use a toolbox full of stuff I don't understand and then I'll convert everything into C code with a converter". That's an excellent way to crash planes, disable factories, etc. I do use bits and bobs of the "toolboxes" that come with Scilab -- generally after I've assured myself that I understand how to do that job myself, and either looking at the code myself or doing extensive testing to make sure that I understand what the code is doing. > > 3) I know both can make an interface to C and Fortran coding. My > question is it possible to interface with MATLAB/Simulink. > Probably not without great difficulty. I don't think there would be a great impetus to do so at anything finer-grained than processing a data file generated by one with a pre-existing application in the other. Scilab is a different species of animal than Matlab, but they're in the same genus (in fact, they share a common ancestor). However, code for Scilab won't work in Matlab, and visa-versa. In theory you could probably pipe data from one program to another, but I can't imagine why you'd want to. > > 4) Is it possible to estimate calculation duration in this environment > like in matlab it shows simulation took 0.983 sec of cpu time? because > i would like to know the performance. > Yes. "tic()" sets a stopwatch timer to zero, "toc()" reads the current value. So you write: tic() t = toc(); mprintf("execution time = %f\n", t); and you find out how long things took. > > > > Your help means a lot to me. Thanks for your support in advance. > Awaiting your reply..... > > > Regards, > Pradeep Adusumilli > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From sgougeon at free.fr Thu Mar 3 19:25:23 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 3 Mar 2016 19:25:23 +0100 Subject: [Scilab-users] bench_run() upgraded <= Re: Scilab 6 bad performances In-Reply-To: <56C6F155.4030509@free.fr> References: <1455725441162-4033482.post@n3.nabble.com> <56C6E8D1.3030308@utc.fr> <56C6EBC6.6030007@free.fr> <56C6EF01.7000506@utc.fr> <56C6F155.4030509@free.fr> Message-ID: <56D88193.40301@free.fr> Le 19/02/2016 11:41, Samuel Gougeon a ?crit : > Le 19/02/2016 11:31, St?phane Mottelet a ?crit : >> Le 19/02/2016 11:17, Samuel Gougeon a ?crit : >>> .../... >>> bench_run() is designed for that: >>> https://help.scilab.org/docs/5.5.2/en_US/bench_run.html >>> On the same computer, you may run it on 5.5.2 for chosen modules, >>> run it as well on 6.0, and compare results. >>> >> This looks like finding a needle in a haystack... > . > Right. Since bench_run() does not return its results -- just displays > them --, they can't be post-processed to make a diff and filter it for > instance to get only the slower instructions. > However, bench_run.sci can be edited and modified to do so. In order to address these issues, S/E just upgraded and released a new version of bench_run() on 2016-03-01, that returns results in argout as well as in a XML file. It is available on the Night Built (at least for Windows and MacOS), or there: https://codereview.scilab.org/cat/17821%2C12%2Cscilab/modules/development_tools/macros/bench_run.sci Enjoy it, and diff and filter your results! Samuel From clement.david at scilab-enterprises.com Fri Mar 4 11:53:23 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 04 Mar 2016 11:53:23 +0100 Subject: [Scilab-users] plot bug in scilab 6.0 beta1 In-Reply-To: <56D6CA6E.4020504@online.no> References: <56D6B115.8050502@laas.fr> <56D6BB3D.5040007@online.no> <56D6BDF2.2050804@laas.fr> <56D6CA6E.4020504@online.no> Message-ID: <1457088803.2345.24.camel@scilab-enterprises.com> Hi Jan, Le mercredi 02 mars 2016 ? 12:11 +0100, Jan ?ge Langeland a ?crit?: > As for you problem, can you open scilab in cmd window to see whether you? > have any meaningful??error message (java.???) ? > > > > > > Antoine > > > As I launch wscilex in cmd window, the cmd window closes. > Yep that's a known limitation and the tip is : use F12 to re-open the startup command window (the one that blink at scilab GUI startup). > -- Cl?ment From anna.parravicini at cnao.it Fri Mar 4 14:45:10 2016 From: anna.parravicini at cnao.it (anna78) Date: Fri, 4 Mar 2016 06:45:10 -0700 (MST) Subject: [Scilab-users] Matrix: mix string and float Message-ID: <1457099110062-4033620.post@n3.nabble.com> dear all, I have 13 column vectors: M1, M2, .... M13. One is an integer /%d) vector, two are string (%s) vectors, the others are double (%f). I would like to build the matrix M=[M1 M2 M3... M13], but it looks like not working. Is it possible to build a matrix with different element types? thanks Anna -- View this message in context: http://mailinglists.scilab.org/Matrix-mix-string-and-float-tp4033620.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Fri Mar 4 15:45:03 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 4 Mar 2016 15:45:03 +0100 Subject: [Scilab-users] Matrix: mix string and float In-Reply-To: <1457099110062-4033620.post@n3.nabble.com> References: <1457099110062-4033620.post@n3.nabble.com> Message-ID: <56D99F6F.3020104@inria.fr> example M1=(1:15)';M2="foo"+string(M1);M3=sin(M1/10); M=tlist("cblock",M1,M2,M3) M(1:2,:) M(:,1) //the result is a standard array of numbers M(:,2) //the result is a standard array of strings This kind of data structure can be obtained directly reading a data file with mfscanf with the attached file u=mopen("foo1") M=mfscanf(-1,u,"%d %s %f\n") mclose(u) One can also use the cell array M=cell(1,3); M.entries(1)=M1; M.entries(2)=M2; M.entries(3)=M3; This solution will be more simple under Scilab 6 M1=(1:15)';M2="foo"+string(M1);M3=sin(M1/10); M={M1,M2,M3} M{:,1}//the result is a standard array of numbers Le 04/03/2016 14:45, anna78 a ?crit : > dear all, > > I have 13 column vectors: M1, M2, .... M13. > One is an integer /%d) vector, two are string (%s) vectors, the others are > double (%f). > > I would like to build the matrix M=[M1 M2 M3... M13], but it looks like not > working. > > Is it possible to build a matrix with different element types? > > thanks > Anna > > > > -- > View this message in context: http://mailinglists.scilab.org/Matrix-mix-string-and-float-tp4033620.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 -------------- 1 a 0.2 2 b -0.5 3 c 33 From sgougeon at free.fr Fri Mar 4 15:52:41 2016 From: sgougeon at free.fr (sgougeon at free.fr) Date: Fri, 4 Mar 2016 15:52:41 +0100 (CET) Subject: [Scilab-users] Matrix: mix string and float In-Reply-To: <1457099110062-4033620.post@n3.nabble.com> Message-ID: <1356755456.193020429.1457103161407.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >De: "anna78" 4 Mars 2016 14:45:10 >.../... >Is it possible to build a matrix with different element types? This is called a cell array. In your case, since each column is homogeneous, you may as well store the 13 matrices simply in a list: M = list(M1,M2,..,M13). The most appropriate container -- cell array or list -- depends on which kind of operations you wish to do afterwards with M's components. HTH Samuel Gougeon From cfuttrup at gmail.com Fri Mar 4 21:54:25 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Fri, 4 Mar 2016 21:54:25 +0100 Subject: [Scilab-users] Plot w. part of background in a different color Message-ID: <56D9F601.1060304@gmail.com> Hi there A friend of mine uses Python matplotlib for some graphs and I'd like to generate similar graphs in Scilab. I've attached an example of such a plot. What I'd like to replicate is part of the background shaded in green and red. I think the function in Python matplotlib is something like: axvspan (xmin,xmax,ymin=0,ymax=1,hold=None, **kwargs) The kwargs are named arguments, for example: facecolor='g',alpha=0.1 Examples here: http://matplotlib.org/examples/pylab_examples/axhspan_demo.html http://physicalmodelingwithpython.blogspot.no/2015/08/function-arguments-args-and-kwargs.html How would I do similar stuff in Scilab? (Searching for vspan and hspan didn't give any hits). Best regards, Claus -------------- next part -------------- A non-text attachment was scrubbed... Name: FD.c0.png Type: image/png Size: 43658 bytes Desc: not available URL: From sgougeon at free.fr Fri Mar 4 23:06:18 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 4 Mar 2016 23:06:18 +0100 Subject: [Scilab-users] Plot w. part of background in a different color In-Reply-To: <56D9F601.1060304@gmail.com> References: <56D9F601.1060304@gmail.com> Message-ID: <56DA06DA.9030602@free.fr> Hello Clauss, Here is an example that you may customize: x = linspace(0,10,100); clf drawlater plot(x,sin(x)) xgrid(color("grey70")) xfpolys([2 5 5 2 ; 7 8.5 8.5 7]',[-1 -1 1 1; -1 -1 1 1]',.. [color("scilabpink") color("bisque")]) r = gca(); r.grid_position = "foreground"; r = r.children(1).children; r.line_mode="off"; r(1).data(:,3)=-1; r(2).data(:,3)=-1; drawnow HTH Samuel Le 04/03/2016 21:54, Claus Futtrup a ?crit : > Hi there > > A friend of mine uses Python matplotlib for some graphs and I'd like > to generate similar graphs in Scilab. > > I've attached an example of such a plot. > > What I'd like to replicate is part of the background shaded in green > and red. > > I think the function in Python matplotlib is something like: > > axvspan (xmin,xmax,ymin=0,ymax=1,hold=None, **kwargs) > > The kwargs are named arguments, for example: facecolor='g',alpha=0.1 > > Examples here: > http://matplotlib.org/examples/pylab_examples/axhspan_demo.html > > http://physicalmodelingwithpython.blogspot.no/2015/08/function-arguments-args-and-kwargs.html > > > How would I do similar stuff in Scilab? (Searching for vspan and hspan > didn't give any hits). > > Best regards, > Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: partial_backgrounds.png Type: image/png Size: 8975 bytes Desc: not available URL: From sgougeon at free.fr Fri Mar 4 23:21:06 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 4 Mar 2016 23:21:06 +0100 Subject: [Scilab-users] global constant definition for module In-Reply-To: <1456995824084-4033606.post@n3.nabble.com> References: <1456917849551-4033598.post@n3.nabble.com> <56D72B9B.7030003@inria.fr> <1456995824084-4033606.post@n3.nabble.com> Message-ID: <56DA0A52.4070703@free.fr> Le 03/03/2016 10:03, David Ch?ze a ?crit : > Hi Serge, > > thanks for this solution. I've just run your example on scilab 6 beta 1 and > it fails complaining about undefined variable A. then I ran the example for > lib function in scilab help and it fails equally : it looks like it is > broken then I will report a bug on this unless already done. The example of the lib() help page is completely outdated. We could update and improve the page whether lib() keeps any interest wrt load(), or not. IMO, it would be preferable to upgrade load() -- mainly to make it able to return the list of names of loaded variables --, and undocument lib(), as written earlier in this thread. Regards Samuel From sgougeon at free.fr Fri Mar 4 23:33:46 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 4 Mar 2016 23:33:46 +0100 Subject: [Scilab-users] global constant definition for module In-Reply-To: <1456917849551-4033598.post@n3.nabble.com> References: <1456917849551-4033598.post@n3.nabble.com> Message-ID: <56DA0D4A.8090703@free.fr> Le 02/03/2016 12:24, David Ch?ze a ?crit : > Hi all, > > I would like to define a variable in a user module in such a way that this > constant would be available for all functions (also out of the module) as a > "hidden(you don't need to see it inbrowsvar), protected (should not be > possible to clear it, even with clearglobal )" global variable as soon the > module is loaded: do you have suggestions how to do it within scilab? There is still no actual solution to protect variables against clear. But you may do the following: // Save that in set_constantes.sci and build a library with it, thanks to genlib(), say constantes_lib function set_constantes() L0 = ""; L0 = who("local") c0 = 299792458 avog = 6.022045e23 planck = 6.626176e-34 qproton = 1.6022e-19 L0 = setdiff(who("local"), L0) execstr("["+strcat(L0,",")+"] = resume("+strcat(L0,",")+")") endfunction // In your scilab.ini/.scilab : load(path_to_set_constantes_sci+"/lib") // Where you need constantes: set_constantes() // Then use the constantes defined in set_constantes() The main advantage with this is that you don't need to remember where set_constantes.sci is stored (to exec() it). But nothing is protected: neither the library, nor set_constantes(), nor the constantes it defines. --> clear avog --> set_constantes() --> avog avog = 6.022D+23 HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Mar 4 23:39:54 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 4 Mar 2016 23:39:54 +0100 Subject: [Scilab-users] global constant definition for module In-Reply-To: <56DA0D4A.8090703@free.fr> References: <1456917849551-4033598.post@n3.nabble.com> <56DA0D4A.8090703@free.fr> Message-ID: <56DA0EBA.2090409@free.fr> Le 04/03/2016 23:33, Samuel Gougeon a ?crit : > .../... > // In your scilab.ini/.scilab : > load(path_to_set_constantes_sci+"/lib") > > // Where you need constantes: > set_constantes() > > // Then use the constantes defined in set_constantes() > > The main advantage with this is that you don't need to remember where > set_constantes.sci is stored (to exec() it). The other advantage is that, contrarily to with "global", we don't need to list the names of variables to be set as global. This list is defined inside set_constantes(). It becomes implicit from outside. SG -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 5 00:00:54 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 5 Mar 2016 00:00:54 +0100 Subject: [Scilab-users] global constant definition for module In-Reply-To: <56DA0D4A.8090703@free.fr> References: <1456917849551-4033598.post@n3.nabble.com> <56DA0D4A.8090703@free.fr> Message-ID: <56DA13A6.5090206@free.fr> Le 04/03/2016 23:33, Samuel Gougeon a ?crit : > Le 02/03/2016 12:24, David Ch?ze a ?crit : >> Hi all, >> >> I would like to define a variable in a user module in such a way that this >> constant would be available for all functions (also out of the module) as a >> "hidden(you don't need to see it inbrowsvar), protected (should not be >> possible to clear it, even with clearglobal )" global variable as soon the >> module is loaded: do you have suggestions how to do it within scilab? > > There is still no actual solution to protect variables against clear. . Actually, there are one or two solutions : 1. Set and store your constants in a TCL session (the main one or a slave), and recall them from it. Data in TCL sessions are not cleared by clear() nor by clearglobal(). This is what i use in drivers published on the fileexchange to set/get "persistent" communication parameters with devices. 2. May be the same could be possible with java objects? I have never tried. 3. Another solution is to use the userdata field of the default figure. The default figure (gdf()) is not clearable. But then all your graphic windows will embed your constants in their .userdata. So it is preferable not to have MBytes of constantes ;) And to set a struct() in userdata. This is a rather bad hacking. May be there are other solutions. Let's free your imagination :) Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Sat Mar 5 09:39:32 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 5 Mar 2016 09:39:32 +0100 Subject: [Scilab-users] Plot w. part of background in a different color In-Reply-To: <56DA06DA.9030602@free.fr> References: <56D9F601.1060304@gmail.com> <56DA06DA.9030602@free.fr> Message-ID: <56DA9B44.7060509@gmail.com> Hi there Thank you Samuel, it was very helpful. I have a few follow-up questions I do a double-log plot. a.log_flags = "lln"; // double-log plot a.auto_scale = "off"; When I plot the polygons, then I use data_bounds now, but on the y-axis, the axis goes a bit further_ ymin = a.data_bounds(3); ymax = a.data_bounds(4); // if ymax = 20.1 ... then plot goes to 30 ! xfpolys([f(im1) f(im2) f(im2) f(im1) ; f(ie1) f(ie2) f(ie2) f(ie1)]', .. [ymin ymin ymax ymax; ymin ymin ymax ymax]', [color("bisque") color("scilabpink")]); Is there a way to determine what is the upper limit for the y-axis? ... a.axes_bounds doesn't seem to be helpful in any way (or am I looking in the wrong place?). a.grid_position = "foreground"; // put grid in the foreground - in front of the polygons a = a.children(1).children; // what does this do? As the comment says - what does children(1).children do? a.line_mode="off"; // don't 'box/frame'the polygons (background squares) a(1).data(:,3)=-1; // data(:,1) = xaxis data, data(:,2) = yaxis data a(2).data(:,3)=-1; // data(:,3) = ??? We set data(:,3) = -1 ... I can see the content in ,2 and ,1 ... but what's in the third column? and why do we set it = -1 ?? ... I see a(1) = first polygon (a 'box' in our case) and that a(2) = second polygon-box. So is the third column = z-axis data? ... Why do we need to make sure z-axis data are negative = -1 ?? Best regards, Claus On 04-03-2016 23:06, Samuel Gougeon wrote: > Hello Clauss, > > Here is an example that you may customize: > x = linspace(0,10,100); > clf > drawlater > plot(x,sin(x)) > xgrid(color("grey70")) > xfpolys([2 5 5 2 ; 7 8.5 8.5 7]',[-1 -1 1 1; -1 -1 1 1]',.. > [color("scilabpink") color("bisque")]) > r = gca(); > r.grid_position = "foreground"; > r = r.children(1).children; > r.line_mode="off"; > r(1).data(:,3)=-1; > r(2).data(:,3)=-1; > drawnow > > > HTH > Samuel > > Le 04/03/2016 21:54, Claus Futtrup a ?crit : >> Hi there >> >> A friend of mine uses Python matplotlib for some graphs and I'd like >> to generate similar graphs in Scilab. >> >> I've attached an example of such a plot. >> >> What I'd like to replicate is part of the background shaded in green >> and red. >> >> I think the function in Python matplotlib is something like: >> >> axvspan (xmin,xmax,ymin=0,ymax=1,hold=None, **kwargs) >> >> The kwargs are named arguments, for example: facecolor='g',alpha=0.1 >> >> Examples here: >> http://matplotlib.org/examples/pylab_examples/axhspan_demo.html >> >> http://physicalmodelingwithpython.blogspot.no/2015/08/function-arguments-args-and-kwargs.html >> >> >> How would I do similar stuff in Scilab? (Searching for vspan and >> hspan didn't give any hits). >> >> Best regards, >> Claus > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 8975 bytes Desc: not available URL: From sgougeon at free.fr Sat Mar 5 15:08:16 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 5 Mar 2016 15:08:16 +0100 Subject: [Scilab-users] Plot w. part of background in a different color In-Reply-To: <56DA9B44.7060509@gmail.com> References: <56D9F601.1060304@gmail.com> <56DA06DA.9030602@free.fr> <56DA9B44.7060509@gmail.com> Message-ID: <56DAE850.3040707@free.fr> Hi Claus, Le 05/03/2016 09:39, Claus Futtrup a ?crit : > Hi there > > Thank you Samuel, it was very helpful. I have a few follow-up questions > > I do a double-log plot. > > a.log_flags = "lln"; // double-log plot > a.auto_scale = "off"; > > When I plot the polygons, then I use data_bounds now, but on the > y-axis, the axis goes a bit further_ > > ymin = a.data_bounds(3); > ymax = a.data_bounds(4); // if ymax = 20.1 ... then plot goes to 30 ! > xfpolys([f(im1) f(im2) f(im2) f(im1) ; f(ie1) f(ie2) f(ie2) f(ie1)]', .. > [ymin ymin ymax ymax; ymin ymin ymax ymax]', [color("bisque") > color("scilabpink")]); > > Is there a way to determine what is the upper limit for the y-axis? > ... a.axes_bounds doesn't seem to be helpful in any way (or am I > looking in the wrong place?). . .data_bounds are reliable only if gca().tight_limits="on". Otherwise, AFAIK, there is presently no way to get the true bounds of the displayed axes. This has been reported. > > a.grid_position = "foreground"; // put grid in the foreground - in > front of the polygons > a = a.children(1).children; // what does this do? > > As the comment says - what does children(1).children do? . It is a vector of handles. It points to the set of background rectangles generated with xfpolys(). It makes "lighter" forthcoming operations on the rectangles. > > a.line_mode="off"; // don't 'box/frame'the polygons (background squares) > a(1).data(:,3)=-1; // data(:,1) = xaxis data, data(:,2) = yaxis data > a(2).data(:,3)=-1; // data(:,3) = ??? > > We set data(:,3) = -1 ... I can see the content in ,2 and ,1 ... but > what's in the third column? Z. It is not assigned by default when the axes is in 2D .view. Nevertheless, Z can be set to manage overlays. This is possible with polylines, but not with the rect graphical type (as plotted with fxrects()). > and why do we set it = -1 ?? ... I see a(1) = first polygon (a 'box' > in our case) and that a(2) = second polygon-box. So is the third > column = z-axis data? ... Why do we need to make sure z-axis data are > negative = -1 ?? . Change the value, and you will see why. No worry, it won't explode :) I tried 0, but when it is on the foreground, the grid looks to be set between 0 and -1. You can play with .grid_position and the Z value (i did it), you will see. The Z of the grid can't be tuned accurately. They can have only 2 predefined positions. It is not very efficient. A .grid_z attribute would have been better (and clearer) than .grid_position. It could come just by mimicking some other softwares. This is too often the very ambition of Scilab : just mimicking others. Since Scilab does not managed transparency (alpha channel), there will be a problem if you draw crossed rectangles. The common part will have the color of the highest-z rectangle. It was formerly possible to tuned the rendering mode -- setting the new pixel color according to the current color of the pixel -- but 1) it applied to the whole figure : https://help.scilab.org/docs/5.5.2/en_US/pixel_drawing_mode.html 2) it is out-of-work since Scilab > 5.3.3 : http://bugzilla.scilab.org/12017 Here is what was possible with 2 octogons filled with bisque and powderblue predefined colors, and the regression brought by Scilab 5.4.0, still unfixed. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pixel_drawing_mode_533.png Type: image/png Size: 6885 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pixel_drawing_mode_552.png Type: image/png Size: 6551 bytes Desc: not available URL: From cfuttrup at gmail.com Sat Mar 5 16:09:07 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 5 Mar 2016 16:09:07 +0100 Subject: [Scilab-users] SciNotes (dis-) colors text Message-ID: <56DAF693.50702@gmail.com> Hi there When I execute a script, I save info to a file, which I then load into SciNotes. This unfortunately dis-colors the text ... also in the script that executed - and in other scripts loaded into SciNotes. Black text becomes red for some odd reason. Here's some sample code that replicates the error ... at least in my version of Scilab 5.5.0 it shows the bug: // test.sce // // Purpose - to demonstrate software bug in SciNotes. // // When executed, the result is saved to a txt file, which is loaded into // SciNotes for viewing ... but then the color coding is bad in SciNotes and // even this test.sce script - much of the text that should be black is red! clear; // Clear variables xdel(winsid()); // Clear graphics clc; // Clear console scriptpath = get_absolute_file_path("test.sce"); chdir(scriptpath); outputfile = %t; // Print result (the parameters) to a textfile name = "test"; // Just the name of the script file if outputfile then outfile = scriptpath + "\" + name + "_out.txt"; fd = mopen(outfile,'wt'); mfprintf(fd,"Project name: %s\n",name); // print some header information mclose(fd); if (isdef('editor') | (funptr('editor')<>0)) then editor(outfile); end end Can you replicate this? Does this also create dis-coloration in SciNotes in your version of Scilab? If you load another (e.g. sce or sci, but in theory any) file - is text also dis-colored in these files? BTW, as a rather strange observation - I copied the dis-colored text into this email - but as you can see, no red text. Even if colors are copied, it doesn't copy the dis-coloration. It might give the developer a clue what's going on ... Best regards, Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 5 16:21:58 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 5 Mar 2016 16:21:58 +0100 Subject: [Scilab-users] SciNotes (dis-) colors text In-Reply-To: <56DAF693.50702@gmail.com> References: <56DAF693.50702@gmail.com> Message-ID: <56DAF996.4010608@free.fr> Le 05/03/2016 16:09, Claus Futtrup a ?crit : > Hi there > > When I execute a script, I save info to a file, which I then load into > SciNotes. This unfortunately dis-colors the text ... also in the > script that executed - and in other scripts loaded into SciNotes. > Black text becomes red for some odd reason. A reference to this testimonial is added to http://bugzilla.scilab.org/13899#c9 Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Sat Mar 5 21:09:43 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Sat, 05 Mar 2016 21:09:43 +0100 Subject: [Scilab-users] global constant definition for module In-Reply-To: <56DA13A6.5090206@free.fr> References: <1456917849551-4033598.post@n3.nabble.com> <56DA0D4A.8090703@free.fr> <56DA13A6.5090206@free.fr> Message-ID: <56DB3D07.5080703@inria.fr> Le 05/03/2016 00:00, Samuel Gougeon a ?crit : > Le 04/03/2016 23:33, Samuel Gougeon a ?crit : >> Le 02/03/2016 12:24, David Ch?ze a ?crit : >>> Hi all, >>> >>> I would like to define a variable in a user module in such a way that this >>> constant would be available for all functions (also out of the module) as a >>> "hidden(you don't need to see it inbrowsvar), protected (should not be >>> possible to clear it, even with clearglobal )" global variable as soon the >>> module is loaded: do you have suggestions how to do it within scilab? >> >> There is still no actual solution to protect variables against clear. > . > Actually, there are one or two solutions : > > 1. Set and store your constants in a TCL session (the main one or a > slave), and recall them from it. Data in TCL sessions are not > cleared by clear() nor by clearglobal(). This is what i use in > drivers published on the fileexchange to set/get "persistent" > communication parameters with devices. > 2. May be the same could be possible with java objects? I have never > tried. > 3. Another solution is to use the userdata field of the default > figure. The default figure (gdf()) is not clearable. But then all > your graphic windows will embed your constants in their .userdata. > So it is preferable not to have MBytes of constantes ;) And to set > a struct() in userdata. This is a rather bad hacking. > > May be there are other solutions. Let's free your imagination :) Yes there is at least another one :-; : use the user_data field of an unvisible graphic window fig=figure("visible","off","user_data",struct("A",123,"b","FOO")); a=fig.user_data.A Serge > > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Mon Mar 7 09:04:51 2016 From: david.cheze at cea.fr (CHEZE David 227480) Date: Mon, 7 Mar 2016 08:04:51 +0000 Subject: [Scilab-users] global constant definition for module In-Reply-To: <56DB3D07.5080703@inria.fr> References: <1456917849551-4033598.post@n3.nabble.com> <56DA0D4A.8090703@free.fr> <56DA13A6.5090206@free.fr> <56DB3D07.5080703@inria.fr> Message-ID: De : users [mailto:users-bounces at lists.scilab.org] De la part de Serge Steer Envoy? : samedi 5 mars 2016 21:10 Le 05/03/2016 00:00, Samuel Gougeon a ?crit : Le 04/03/2016 23:33, Samuel Gougeon a ?crit : Le 02/03/2016 12:24, David Ch?ze a ?crit : Hi all, I would like to define a variable in a user module in such a way that this constant would be available for all functions (also out of the module) as a "hidden(you don't need to see it inbrowsvar), protected (should not be possible to clear it, even with clearglobal )" global variable as soon the module is loaded: do you have suggestions how to do it within scilab? There is still no actual solution to protect variables against clear. . Actually, there are one or two solutions : 1. Set and store your constants in a TCL session (the main one or a slave), and recall them from it. Data in TCL sessions are not cleared by clear() nor by clearglobal(). This is what i use in drivers published on the fileexchange to set/get "persistent" communication parameters with devices. 2. May be the same could be possible with java objects? I have never tried. 3. Another solution is to use the userdata field of the default figure. The default figure (gdf()) is not clearable. But then all your graphic windows will embed your constants in their .userdata. So it is preferable not to have MBytes of constantes ;) And to set a struct() in userdata. This is a rather bad hacking. May be there are other solutions. Let's free your imagination :) Yes there is at least another one :-; : use the user_data field of an unvisible graphic window fig=figure("visible","off","user_data",struct("A",123,"b","FOO")); a=fig.user_data.A Serge Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j-lan at online.no Mon Mar 7 11:09:33 2016 From: j-lan at online.no (=?ISO-8859-1?Q?Jan-=C5ge_Langeland_=28p=29?=) Date: Mon, 07 Mar 2016 11:09:33 +0100 Subject: [Scilab-users] global constant definition for module Message-ID: Write it to a file?J? -------------- next part -------------- An HTML attachment was scrubbed... URL: From denisilie94 at gmail.com Mon Mar 7 23:17:54 2016 From: denisilie94 at gmail.com (Ilie-Ablachim Denis) Date: Tue, 8 Mar 2016 00:17:54 +0200 Subject: [Scilab-users] GSOC 2016 Message-ID: Hi, My name is Ilie-Ablachim Constantin-Denis and I am a 3rd year student in Automatic Control and Computer Science at Politehnica University of Bucharest. I read on the Scilab page the proposed ideas for the GSOC 2016 and I noticed a idea in which I am interested: Signal processing blockset. Since last year I became a Undergraded Teaching Assistant at my university. I teach "Signal and Systems" and "Automated System Theory". I have good knowledge in signal and image processing, but also in the numerical methods theory. As a student, during my first 3 years at Politehnica University of Bucharest, I enrolled in a research center where I studied Ambiental and Artificial Intelligence, which is also a Open Source program. I developed here a Face Recognition Application, using image processing in Matlab. I also improved my knowledge in the last years in: C/C++, Matlab, Octave, SQL, MongoDB, NodeJS, mathematics, image and signal processing, physics. I think that I have a solid knowledge which will help me to succeed in these project. I would be glad to discuss further about this project and its documentation. I am looking forward in hearing from you and I will be more than happy to begin the work or even submit a demo or patch. Thank you in advance! Yours sincerely, Ilie-Ablachim Constantin-Denis. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Tue Mar 8 07:28:16 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Mon, 7 Mar 2016 23:28:16 -0700 (MST) Subject: [Scilab-users] Demo data for Identification Tool Box: Dryer.dat Message-ID: <1457418496116-4033646.post@n3.nabble.com> Hello, I just installed an Identification tool box to my PC. I would like to start from model identification exercise using Dryer.dat which is shown in the help page. May I ask how I can get the data file? Thanks. Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Demo-data-for-Identification-Tool-Box-Dryer-dat-tp4033646.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From noguchi at kje.biglobe.ne.jp Tue Mar 8 08:11:29 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Tue, 8 Mar 2016 00:11:29 -0700 (MST) Subject: [Scilab-users] Demo data for Identification Tool Box: Dryer.dat In-Reply-To: <1457418496116-4033646.post@n3.nabble.com> References: <1457418496116-4033646.post@n3.nabble.com> Message-ID: <1457421089065-4033647.post@n3.nabble.com> Dear All, I found the dry.dat. If I inside of the zip file of identification tool box, it is available. Thanks. -- View this message in context: http://mailinglists.scilab.org/Demo-data-for-Identification-Tool-Box-Dryer-dat-tp4033646p4033647.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Tue Mar 8 09:34:06 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 08 Mar 2016 09:34:06 +0100 Subject: [Scilab-users] GSOC 2016 In-Reply-To: References: Message-ID: <1457426046.2474.30.camel@scilab-enterprises.com> Hi Ilie and welcome, For the GSoC, we use a dedicated mailing-list to ease integration on the community and to help student discover how we work. Please next time post to : gsoc at lists.scilab.org?. As you might have already read in the GSoC guidelines, we require you to compile the software and post a screenshot of the modified banner message to assert that you successfully pass the compilation. About the subject, the toolbox already exists and you can try to compile, load it and post you advancement. Regards, -- Cl?ment Le mardi 08 mars 2016 ? 00:17 +0200, Ilie-Ablachim Denis a ?crit?: > Hi, > > My name is Ilie-Ablachim Constantin-Denis and I am a 3rd year student in Automatic Control and > Computer Science at Politehnica University of Bucharest. I read on the Scilab page the proposed > ideas for the GSOC 2016??and I noticed a idea in which I am interested: Signal processing > blockset. > > Since last year I became a Undergraded Teaching Assistant??at my university. I teach "Signal and > Systems" and "Automated System Theory". I have good knowledge in signal and image processing, but > also in the numerical methods theory. > > As a student, during my first 3 years at?Politehnica University of Bucharest, I enrolled in a > research center where I studied Ambiental and Artificial Intelligence, which is also a Open Source > program. I developed here a Face Recognition Application, using image processing in Matlab.? > > I also improved my knowledge in the last years in: C/C++, Matlab, Octave, SQL, MongoDB, NodeJS, > mathematics, image and signal processing, physics. I think that I have a solid knowledge which > will help me to succeed in these project. > > I would be glad to discuss further about??this project and its documentation.??I am looking > forward in hearing from you and I will be more than happy to begin the work or even submit a demo > or patch.? > > Thank you in advance! > > Yours sincerely, > Ilie-Ablachim Constantin-Denis. From noguchi at kje.biglobe.ne.jp Wed Mar 9 16:12:11 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Wed, 9 Mar 2016 08:12:11 -0700 (MST) Subject: [Scilab-users] Model ID of First order delay and Dead Time Process Message-ID: <1457536331285-4033659.post@n3.nabble.com> Hello, May I ask your help? 1. How can I specify time delay for my transfer function in scilab. I found it in matlab, but I failed to find it in SCilab. 2. Model ID I would like to identify first or second order transfer function + dead time from step test data (SISO). If it is required to identify the other models, such as SS or ARX. It is fine. Then, I would like to convert the model to transfer functioin + dead time model. Thanks. Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Wed Mar 9 20:22:38 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 09 Mar 2016 20:22:38 +0100 Subject: [Scilab-users] Model ID of First order delay and Dead Time Process In-Reply-To: <1457536331285-4033659.post@n3.nabble.com> References: <1457536331285-4033659.post@n3.nabble.com> Message-ID: <56E077FE.7000509@inria.fr> Give a look to the io delay atoms module it may correspond to your whish. Serge Steer Le 09/03/2016 16:12, noguchi a ?crit : > Hello, > > > May I ask your help? > > 1. How can I specify time delay for my transfer function in scilab. I found > it in matlab, but I failed to find it in SCilab. > > 2. Model ID > I would like to identify first or second order transfer function + dead time > from step test data (SISO). > If it is required to identify the other models, such as SS or ARX. It is > fine. Then, I would like to convert the model to transfer functioin + dead > time model. > > Thanks. > > > Y. Noguchi > > > > -- > View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659.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 mayankbansal933 at gmail.com Wed Mar 9 20:51:27 2016 From: mayankbansal933 at gmail.com (mayankbansal93) Date: Wed, 9 Mar 2016 12:51:27 -0700 (MST) Subject: [Scilab-users] GSOC 2016 Message-ID: <1457553087076-4033668.post@n3.nabble.com> Hello sir, My name is Mayank Bansal and I am a final year student studying at National Institute of Technology Hamirpur. I would like to contribute to Scilab. I have good knowledge of C, C++, Java, Servlets, Android, HTML, CSS. I started working on this organization. While I was configuring the code, i.e., './configure', I got a following error: checking for glTexParameterf in -ljogl_desktop ... no configure: error: "libjogl: Library missing (Cannot find symbol glTexParameterf). Check if libjogl - C/Java (JNI) interface for JOGL2 - or libGL (OpenGL library) are installed and if the version is correct. Note that you might have to update etc/librarypath.xml to provide the actual path to the JNI libraries." I am working on Ubuntu 14.04 machine. Would you please help me in fixing this error. Any help would be appreciated. Thank you. -- View this message in context: http://mailinglists.scilab.org/GSOC-2016-tp4033668.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j-lan at online.no Thu Mar 10 09:06:07 2016 From: j-lan at online.no (JLan) Date: Thu, 10 Mar 2016 01:06:07 -0700 (MST) Subject: [Scilab-users] Select multiple directories Message-ID: <1457597167728-4033669.post@n3.nabble.com> I hope somebody can help with a simple solution for this: I need to mark several directories for a loop that collects data from a file in each.The filename is fixed and identical, the directory names varies. uigetfile() allows multiple selection of files, but I need multiple selection of directories. uigetdir() allows only one directory to be selected at the time. Brgds Jan-?ge Langeland -- View this message in context: http://mailinglists.scilab.org/Select-multiple-directories-tp4033669.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From noguchi at kje.biglobe.ne.jp Thu Mar 10 14:42:53 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Thu, 10 Mar 2016 06:42:53 -0700 (MST) Subject: [Scilab-users] Model ID of First order delay and Dead Time Process In-Reply-To: <56E077FE.7000509@inria.fr> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> Message-ID: <1457617373723-4033670.post@n3.nabble.com> Dear Mr.Serge, Thank you for your information. It works. Thanks. May I have your advise on my question No.2 also? 2. Model ID I would like to identify first or second order transfer function + dead time from step test data (SISO). Can we use subid and ss2tf? I tf2ss command doesn't work for following transfer function with dead time. 1 h2d=exp(-5*s)*------------ 2 1 + 2s + 1s -->tf2ss(h2d) !--error 59 ??????????????. at line 14 of function tf2ss called by : tf2ss(h2d) -- View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659p4033670.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Thu Mar 10 16:54:16 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 10 Mar 2016 16:54:16 +0100 Subject: [Scilab-users] Model ID of First order delay and Dead Time Process In-Reply-To: <1457617373723-4033670.post@n3.nabble.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> Message-ID: <56E198A8.7050603@inria.fr> Le 10/03/2016 14:42, noguchi a ?crit : > Dear Mr.Serge, > > > Thank you for your information. > > It works. Thanks. > > May I have your advise on my question No.2 also? > > 2. Model ID > I would like to identify first or second order transfer function + dead time > from step test data (SISO). for dead time, it is quite easy, just count the number of initial samples equal to zero for transfer function idetification you can use the time_id or sident functions > > Can we use subid and ss2tf? > I tf2ss command doesn't work for following transfer function with dead time. No, it is not yet possible to manipulate continuous time state space representation with delay. It is much more complicated due to state delays. > > 1 > h2d=exp(-5*s)*------------ > 2 > 1 + 2s + 1s > > -->tf2ss(h2d) > !--error 59 > ??????????????. > at line 14 of function tf2ss called by : > tf2ss(h2d) > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659p4033670.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 p.muehlmann at gmail.com Fri Mar 11 06:39:13 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Fri, 11 Mar 2016 06:39:13 +0100 Subject: [Scilab-users] creating ROI from mouse clicks Message-ID: Dear all, how can I use mouse clicks to create a region of interest (ROI) for image processing without using IPD toolbox? My current aproach is something like this: 1.) display an 2-D array, e.g.: a grayscale image 2.) use xclick to get mouse coordinates 3.) use xfpoly to draw a mask image based on the points clicked with the mouse --> mask image has same size as 2D-array in 1.) --> mask image starts as zeros only --> xfpoly will fill the polygons white =ROI --> result is a 2D array containing only "0" and "1" --> can be saved as b/w image 4.) use xs2bmp to save the mask image temporarily 5.) use "ReadImage" from IPD-toolbox to load the temporary image and delete this temporary image afterwards 6.) now the mask can be applied onto the original image such as: result_image = input_image .* mask_image; I'd prefer to get already the position of the area filled by xfpoly in step 3.) as a variable. This would prevent the need of the temporary image and the need of using IPD. Any idea? BR Philipp -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Fri Mar 11 08:59:37 2016 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 11 Mar 2016 08:59:37 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBjcmVhdGluZyBST0kgZnJv?= =?utf-8?q?m_mouse_clicks?= In-Reply-To: Message-ID: <9f9-56e27b00-21-5a410500@39671997> Le Vendredi 11 Mars 2016 06:39 CET, Philipp M?hlmann a ?crit: > Dear all, > > how can I use mouse clicks to create a region of interest (ROI) for image > processing without using IPD toolbox? > > > My current aproach is something like this: > > > > 1.) display an 2-D array, e.g.: a grayscale image > > 2.) use xclick to get mouse coordinates > > 3.) use xfpoly to draw a mask image based on the points clicked with the > mouse > --> mask image has same size as 2D-array in 1.) > --> mask image starts as zeros only > --> xfpoly will fill the polygons white =ROI > --> result is a 2D array containing only "0" and "1" --> can be saved > as b/w image > > 4.) use xs2bmp to save the mask image temporarily > > 5.) use "ReadImage" from IPD-toolbox to load the temporary image and delete > this temporary image afterwards > > 6.) now the mask can be applied onto the original image such as: > result_image = input_image .* mask_image; > > > > I'd prefer to get already the position of the area filled by xfpoly in step > 3.) as a variable. > This would prevent the need of the temporary image and the need of using > IPD. Hi, I am not sure this corresponds to what you are looking for, but an alternative to xclick could be rubberbox: [final_rect, btn] = rubberbox() Antoine > > Any idea? > > BR > Philipp > > -- > There we have the salad. From W.Schulz at ove.at Fri Mar 11 09:52:45 2016 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Fri, 11 Mar 2016 08:52:45 +0000 Subject: [Scilab-users] Problem graypolarplot Message-ID: <07A8AF089844A549B0F0CCC727AF31AA57AA0C37@OVEKBG.ove.at> Hello, I have problems using the options of graypolarplot The following basic function is working: graypolarplot(theta,rho,Gain_plot') But if I want to use some options I get an error message. The following examples produce error messages: graypolarplot(theta,rho,Gain_plot',strf="030",rect=[-20,-20,20,20]) graypolarplot(theta,rho,Gain_plot',"020",[-500,-500,500,500]) graypolarplot(theta,rho,Gain_plot',"030") How to use those examples? Another question would be - is it possible to have 0? in the direction of the positive y-axis (North) and maybe the direction of the angle clockwise? Thanks for your help Wolfgang From p.muehlmann at gmail.com Fri Mar 11 10:11:52 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Fri, 11 Mar 2016 10:11:52 +0100 Subject: [Scilab-users] ?==?utf-8?q? creating ROI from mouse clicks In-Reply-To: <9f9-56e27b00-21-5a410500@39671997> References: <9f9-56e27b00-21-5a410500@39671997> Message-ID: Thanks, but wouldn't this limit the ROI shape to be a rectangle? My purpose would be to have a ROI of any possible shape one can get with mouse clicks, having the mouse positions "connected" via straight lines. I'd like to have a look inside of "rubberbox.sci" or even "xfpoly.sci" to maybe adjust it to my needs...but I can't find it. There is also an imroi-function coming with SIP-Toolbox. But this also deals only with rectangles and ellipses BR Philipp 2016-03-11 8:59 GMT+01:00 Antoine Monmayrant : > > Le Vendredi 11 Mars 2016 06:39 CET, Philipp M?hlmann < > p.muehlmann at gmail.com> a ?crit: > > > Dear all, > > > > how can I use mouse clicks to create a region of interest (ROI) for image > > processing without using IPD toolbox? > > > > > > My current aproach is something like this: > > > > > > > > 1.) display an 2-D array, e.g.: a grayscale image > > > > 2.) use xclick to get mouse coordinates > > > > 3.) use xfpoly to draw a mask image based on the points clicked with the > > mouse > > --> mask image has same size as 2D-array in 1.) > > --> mask image starts as zeros only > > --> xfpoly will fill the polygons white =ROI > > --> result is a 2D array containing only "0" and "1" --> can be > saved > > as b/w image > > > > 4.) use xs2bmp to save the mask image temporarily > > > > 5.) use "ReadImage" from IPD-toolbox to load the temporary image and > delete > > this temporary image afterwards > > > > 6.) now the mask can be applied onto the original image such as: > > result_image = input_image .* mask_image; > > > > > > > > I'd prefer to get already the position of the area filled by xfpoly in > step > > 3.) as a variable. > > This would prevent the need of the temporary image and the need of using > > IPD. > > Hi, > > I am not sure this corresponds to what you are looking for, but an > alternative to xclick could be rubberbox: > > [final_rect, btn] = rubberbox() > > > Antoine > > > > > > Any idea? > > > > BR > > Philipp > > > > -- > > There we have the salad. > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Fri Mar 11 10:20:47 2016 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 11 Mar 2016 10:20:47 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSAg?= =?utf-8?q?creating_ROI_from_mouse_click?= In-Reply-To: Message-ID: <318c-56e28e00-11-18346280@59346763> Le Vendredi 11 Mars 2016 10:11 CET, Philipp M?hlmann a ?crit: > Thanks, but wouldn't this limit the ROI shape to be a rectangle? Yes, sorry, I did not understand your requirements. > > My purpose would be to have a ROI of any possible shape one can get with > mouse clicks, having the mouse positions "connected" via straight lines. > > I'd like to have a look inside of "rubberbox.sci" or even "xfpoly.sci" to > maybe adjust it to my needs...but I can't find it. You can't. It's a hard-coded function. What you can find in the source code is a java function that does the rubberbox, similar to the one that controls the zoom. Concerning xclick, I can't figure out the meaning and use of the "flag" input parameter... Antoine > > There is also an imroi-function coming with SIP-Toolbox. > But this also deals only with rectangles and ellipses > > BR > Philipp > > > 2016-03-11 8:59 GMT+01:00 Antoine Monmayrant : > > > > > Le Vendredi 11 Mars 2016 06:39 CET, Philipp M?hlmann < > > p.muehlmann at gmail.com> a ?crit: > > > > > Dear all, > > > > > > how can I use mouse clicks to create a region of interest (ROI) for image > > > processing without using IPD toolbox? > > > > > > > > > My current aproach is something like this: > > > > > > > > > > > > 1.) display an 2-D array, e.g.: a grayscale image > > > > > > 2.) use xclick to get mouse coordinates > > > > > > 3.) use xfpoly to draw a mask image based on the points clicked with the > > > mouse > > > --> mask image has same size as 2D-array in 1.) > > > --> mask image starts as zeros only > > > --> xfpoly will fill the polygons white =ROI > > > --> result is a 2D array containing only "0" and "1" --> can be > > saved > > > as b/w image > > > > > > 4.) use xs2bmp to save the mask image temporarily > > > > > > 5.) use "ReadImage" from IPD-toolbox to load the temporary image and > > delete > > > this temporary image afterwards > > > > > > 6.) now the mask can be applied onto the original image such as: > > > result_image = input_image .* mask_image; > > > > > > > > > > > > I'd prefer to get already the position of the area filled by xfpoly in > > step > > > 3.) as a variable. > > > This would prevent the need of the temporary image and the need of using > > > IPD. > > > > Hi, > > > > I am not sure this corresponds to what you are looking for, but an > > alternative to xclick could be rubberbox: > > > > [final_rect, btn] = rubberbox() > > > > > > Antoine > > > > > > > > > > Any idea? > > > > > > BR > > > Philipp > > > > > > -- > > > There we have the salad. > > > > > > > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > > > -- > There we have the salad. From sgougeon at free.fr Fri Mar 11 10:21:22 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 11 Mar 2016 10:21:22 +0100 Subject: [Scilab-users] ?==?utf-8?q? creating ROI from mouse clicks In-Reply-To: References: <9f9-56e27b00-21-5a410500@39671997> Message-ID: <56E28E12.6040005@free.fr> Hello, Le 11/03/2016 10:11, Philipp M?hlmann a ?crit : > Thanks, but wouldn't this limit the ROI shape to be a rectangle? > > My purpose would be to have a ROI of any possible shape one can get > with mouse clicks, having the mouse positions "connected" via straight > lines. > > I'd like to have a look inside of "rubberbox.sci" or even > "xfpoly.sci" to maybe adjust it to my needs...but I can't find it. You may give a try to edit_curv() I will soon propose to upgrade it. Samuel From amonmayr at laas.fr Fri Mar 11 10:45:10 2016 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 11 Mar 2016 10:45:10 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSAg?= =?utf-8?q?creating_ROI_from_mouse_click?= In-Reply-To: <56E28E12.6040005@free.fr> Message-ID: <318c-56e29380-17-18346280@59346805> Le Vendredi 11 Mars 2016 10:21 CET, Samuel Gougeon a ?crit: > Hello, > Le 11/03/2016 10:11, Philipp M?hlmann a ?crit : > > Thanks, but wouldn't this limit the ROI shape to be a rectangle? > > > > My purpose would be to have a ROI of any possible shape one can get > > with mouse clicks, having the mouse positions "connected" via straight > > lines. > > > > I'd like to have a look inside of "rubberbox.sci" or even > > "xfpoly.sci" to maybe adjust it to my needs...but I can't find it. > > You may give a try to edit_curv() > I will soon propose to upgrade it. Thanks for the info. In its current form, it is not possible to close the curve, is it? Antoine > > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Serge.Steer at inria.fr Fri Mar 11 10:54:27 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 11 Mar 2016 10:54:27 +0100 Subject: [Scilab-users] Problem graypolarplot In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA57AA0C37@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA57AA0C37@OVEKBG.ove.at> Message-ID: <56E295D3.30104@inria.fr> Le 11/03/2016 09:52, SCHULZ Wolfgang a ?crit : > Hello, > I have problems using the options of graypolarplot > The following basic function is working: > graypolarplot(theta,rho,Gain_plot') > > But if I want to use some options I get an error message. The following examples produce error messages: > graypolarplot(theta,rho,Gain_plot',strf="030",rect=[-20,-20,20,20]) > graypolarplot(theta,rho,Gain_plot',"020",[-500,-500,500,500]) > graypolarplot(theta,rho,Gain_plot',"030") How to use those examples? These was old options. With current Scilab version if you want to change the data bounds (rect) you can modify the data_bounds property of the axes graypolarplot(theta,rho,Gain_plot') ax=gca(); //get the handle on the currect axes ax.data_bounds=[-20 -20;20 20]. > Another question would be - is it possible to have 0? in the direction of the positive y-axis (North) and maybe the direction of the angle clockwise? Please find attached a ffunction which realizes what you want. > Thanks for your help > Wolfgang > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) INRIA // Copyright (C) Samuel GOUGEON - 2013 : vectorization, code style // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt function graypolarplot(theta,rho,z,varargin) function c=Cos(x),c=cos(-x+%pi/2);endfunction function s=Sin(x),s=sin(-x+%pi/2);endfunction [lhs,rhs] = argn(0) if rhs<=0 then rho = 1:0.2:4 theta = (0:0.02:1)*2*%pi z = 30+round(theta'*(1+rho.^2)) clf() f = gcf() f.color_map = hotcolormap(128) f.background= 128 a = gca() a.background = 128 a.foreground = 1 graypolarplot(theta,rho,z) return end if rhs<3 then error(msprintf(gettext("%s: Wrong number of input argument(s): At least %d expected.\n"), "graypolarplot", 3)); end pause R = max(rho) nv = size(varargin) if nv>=1 strf = varargin(2) else strf = "030" end if nv>=2 rect = varargin(4) else rect = [-R -R R R]*1.1 end // drawlater fig = gcf(); immediate_drawing = fig.immediate_drawing; fig.immediate_drawing = "off"; axes = gca(); axes.data_bounds = [rect(1), rect(2); rect(3), rect(4)]; axes.clip_state = "clipgrf"; drawGrayplot(theta,rho,z); objectList = gce(); // get all the created objects to glue them at the end. axes.isoview = "on"; axes.box = "off"; axes.axes_visible = ["off","off","off"]; axes.x_label.text = ""; axes.y_label.text = ""; axes.z_label.text = ""; step = R/5 r = step; dr = 0.02*r; for k = 1:4 xarc(-r, r, 2*r, 2*r, 0, 360*64) objectList($ + 1) = gce(); arc = gce(); arc.line_style = 3; xstring((r+dr)*Cos(5*%pi/12),(r+dr)*Sin(5*%pi/12), string(round(10*r)/10)) objectList($ + 1) = gce(); r=r+step end xarc(-r,r,2*r,2*r,0,360*64) objectList($ + 1) = gce(); xstring((r+dr)*Cos(5*%pi/12),(r+dr)*Sin(5*%pi/12), string(round(10*r)/10)) objectList($ + 1) = gce(); rect = xstringl(0,0,"360"); w = rect(3); h = rect(4); r = R*1.05 for k = 0:11 xsegs([0 ; R*Cos(k*(%pi/6))],[0 ; R*Sin(k*(%pi/6))]) objectList($ + 1) = gce(); arc = gce(); arc.line_style = 4; xstring((r+w/2)*Cos(k*(%pi/6))-w/2, (r+h/2)*Sin(k*(%pi/6))-h/2,string(k*30)) objectList($ + 1) = gce(); end // glue all the created objects glue(objectList); // drawnow fig.immediate_drawing = immediate_drawing; endfunction // --------------------------------------------------------------------------- function [x,y] = polar2Cart(rho, theta) x = rho * Cos(theta); y = rho * Sin(theta); endfunction // --------------------------------------------------------------------------- function [nbDecomp] = computeNeededDecompos(theta) // Compute the needed decomposition for each patch // minimal decompostion for each ring nbFactesPerRingMin = 512; nbDecomp = ceil(nbFactesPerRingMin / size(theta, "*")); endfunction // --------------------------------------------------------------------------- function drawGrayplot(theta, rho, z) // draw only the colored part of the grayplot // the aim of the function is to draw a set of curved facets // In previous versions, it used arcs to perform this. // However, since arcs are drawn from the origin to the outside // there were overlapping and cause Z fighting in 3D. // Consequenlty we now decompose each curved facet into a set of rectangular // facets. nbRho = size(rho,"*"); nbTheta = size(theta,"*"); nbDecomposition = computeNeededDecompos(theta); // number of approximation facets // first step decompose theta in smaller intervals // Actually compute CosTheta and sinTheta for speed [vectorized] t = (1:nbDecomposition) / nbDecomposition [I,T] = meshgrid(theta, t) interpolatedData = T(:,2:$).*I(:,2:$) + (1-T(:,1:$-1)).*I(:,1:$-1) cosTheta = [Cos(theta(1)) Cos(interpolatedData(:))' ] sinTheta = [Sin(theta(1)) Sin(interpolatedData(:))' ] // compute the 4xnbFacets matrices for plot 3d // // get the 4 corners of a facet // (we minimize the memory footprint, since big transient and final matrices // are built) Jmax = size(sinTheta,2) [R, C] = meshgrid(rho, cosTheta) R = R.*C clear C corner = R(1:Jmax-1,1:nbRho-1); xCoords = corner(:)' corner = R(2:Jmax ,1:nbRho-1); xCoords(2,:) = corner(:)' corner = R(2:Jmax ,2:nbRho); xCoords(3,:) = corner(:)' corner = R(1:Jmax-1,2:nbRho); xCoords(4,:) = corner(:)' [R, S] = meshgrid(rho, sinTheta) R = R.*S clear S corner = R(1:Jmax-1,1:nbRho-1); yCoords = corner(:)' corner = R(2:Jmax ,1:nbRho-1); yCoords(2,:) = corner(:)' corner = R(2:Jmax ,2:nbRho); yCoords(3,:) = corner(:)' corner = R(1:Jmax-1,2:nbRho); yCoords(4,:) = corner(:)' clear R // color is the same for each nbDecomposition facets // keep the 4 outside colors of the patch // to be able to switch between average or matlab color. i = 1:nbRho j = (0:Jmax-1)/ nbDecomposition + 1 [I, J] = meshgrid(i,j) clear I corner = z(J(1:$-1,1) , 1:$-1); colors = corner(:)' corner = z(J(1:$-1,1)+1, 1:$-1); colors(2,:) = corner(:)' corner = z(J(1:$-1,1)+1, 2:$); colors(3,:) = corner(:)' corner = z(J(1:$-1,1) , 2:$); colors(4,:) = corner(:)' clear J corner // flat plot nbQuadFacets = (nbRho - 1) * (Jmax - 1); zCoords = zeros(4, nbQuadFacets); // disable line draing and hidden color plot3d(xCoords, yCoords, list(zCoords,colors)); gPlot = gce(); gPlot.color_mode = -1; // no wireframe gPlot.hiddencolor = 0; // no hidden color gPlot.color_flag = 2; // average color on each facets // restore 2d view axes = gca(); axes.view = "2d"; endfunction From Serge.Steer at inria.fr Fri Mar 11 10:59:00 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 11 Mar 2016 10:59:00 +0100 Subject: [Scilab-users] Problem graypolarplot In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA57AA0C37@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA57AA0C37@OVEKBG.ove.at> Message-ID: <56E296E4.7060705@inria.fr> Sorry the file attached in my previous mail contains a forgotten pause instruction Le 11/03/2016 09:52, SCHULZ Wolfgang a ?crit : > Hello, > I have problems using the options of graypolarplot > The following basic function is working: > graypolarplot(theta,rho,Gain_plot') > > But if I want to use some options I get an error message. The following examples produce error messages: > graypolarplot(theta,rho,Gain_plot',strf="030",rect=[-20,-20,20,20]) > graypolarplot(theta,rho,Gain_plot',"020",[-500,-500,500,500]) > graypolarplot(theta,rho,Gain_plot',"030") How to use those examples? These was old options. With current Scilab version if you want to change the data bounds (rect) you can modify the data_bounds property of the axes graypolarplot(theta,rho,Gain_plot') ax=gca(); //get the handle on the currect axes ax.data_bounds=[-20 -20;20 20]. > Another question would be - is it possible to have 0? in the direction of the positive y-axis (North) and maybe the direction of the angle clockwise? Please find attached a ffunction which realizes what you want. > Thanks for your help > Wolfgang > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) INRIA // Copyright (C) Samuel GOUGEON - 2013 : vectorization, code style // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt function graypolarplot(theta,rho,z,varargin) function c=Cos(x),c=cos(-x+%pi/2);endfunction function s=Sin(x),s=sin(-x+%pi/2);endfunction [lhs,rhs] = argn(0) if rhs<=0 then rho = 1:0.2:4 theta = (0:0.02:1)*2*%pi z = 30+round(theta'*(1+rho.^2)) clf() f = gcf() f.color_map = hotcolormap(128) f.background= 128 a = gca() a.background = 128 a.foreground = 1 graypolarplot(theta,rho,z) return end if rhs<3 then error(msprintf(gettext("%s: Wrong number of input argument(s): At least %d expected.\n"), "graypolarplot", 3)); end R = max(rho) nv = size(varargin) if nv>=1 strf = varargin(2) else strf = "030" end if nv>=2 rect = varargin(4) else rect = [-R -R R R]*1.1 end // drawlater fig = gcf(); immediate_drawing = fig.immediate_drawing; fig.immediate_drawing = "off"; axes = gca(); axes.data_bounds = [rect(1), rect(2); rect(3), rect(4)]; axes.clip_state = "clipgrf"; drawGrayplot(theta,rho,z); objectList = gce(); // get all the created objects to glue them at the end. axes.isoview = "on"; axes.box = "off"; axes.axes_visible = ["off","off","off"]; axes.x_label.text = ""; axes.y_label.text = ""; axes.z_label.text = ""; step = R/5 r = step; dr = 0.02*r; for k = 1:4 xarc(-r, r, 2*r, 2*r, 0, 360*64) objectList($ + 1) = gce(); arc = gce(); arc.line_style = 3; xstring((r+dr)*Cos(5*%pi/12),(r+dr)*Sin(5*%pi/12), string(round(10*r)/10)) objectList($ + 1) = gce(); r=r+step end xarc(-r,r,2*r,2*r,0,360*64) objectList($ + 1) = gce(); xstring((r+dr)*Cos(5*%pi/12),(r+dr)*Sin(5*%pi/12), string(round(10*r)/10)) objectList($ + 1) = gce(); rect = xstringl(0,0,"360"); w = rect(3); h = rect(4); r = R*1.05 for k = 0:11 xsegs([0 ; R*Cos(k*(%pi/6))],[0 ; R*Sin(k*(%pi/6))]) objectList($ + 1) = gce(); arc = gce(); arc.line_style = 4; xstring((r+w/2)*Cos(k*(%pi/6))-w/2, (r+h/2)*Sin(k*(%pi/6))-h/2,string(k*30)) objectList($ + 1) = gce(); end // glue all the created objects glue(objectList); // drawnow fig.immediate_drawing = immediate_drawing; endfunction // --------------------------------------------------------------------------- function [x,y] = polar2Cart(rho, theta) x = rho * Cos(theta); y = rho * Sin(theta); endfunction // --------------------------------------------------------------------------- function [nbDecomp] = computeNeededDecompos(theta) // Compute the needed decomposition for each patch // minimal decompostion for each ring nbFactesPerRingMin = 512; nbDecomp = ceil(nbFactesPerRingMin / size(theta, "*")); endfunction // --------------------------------------------------------------------------- function drawGrayplot(theta, rho, z) // draw only the colored part of the grayplot // the aim of the function is to draw a set of curved facets // In previous versions, it used arcs to perform this. // However, since arcs are drawn from the origin to the outside // there were overlapping and cause Z fighting in 3D. // Consequenlty we now decompose each curved facet into a set of rectangular // facets. nbRho = size(rho,"*"); nbTheta = size(theta,"*"); nbDecomposition = computeNeededDecompos(theta); // number of approximation facets // first step decompose theta in smaller intervals // Actually compute CosTheta and sinTheta for speed [vectorized] t = (1:nbDecomposition) / nbDecomposition [I,T] = meshgrid(theta, t) interpolatedData = T(:,2:$).*I(:,2:$) + (1-T(:,1:$-1)).*I(:,1:$-1) cosTheta = [Cos(theta(1)) Cos(interpolatedData(:))' ] sinTheta = [Sin(theta(1)) Sin(interpolatedData(:))' ] // compute the 4xnbFacets matrices for plot 3d // // get the 4 corners of a facet // (we minimize the memory footprint, since big transient and final matrices // are built) Jmax = size(sinTheta,2) [R, C] = meshgrid(rho, cosTheta) R = R.*C clear C corner = R(1:Jmax-1,1:nbRho-1); xCoords = corner(:)' corner = R(2:Jmax ,1:nbRho-1); xCoords(2,:) = corner(:)' corner = R(2:Jmax ,2:nbRho); xCoords(3,:) = corner(:)' corner = R(1:Jmax-1,2:nbRho); xCoords(4,:) = corner(:)' [R, S] = meshgrid(rho, sinTheta) R = R.*S clear S corner = R(1:Jmax-1,1:nbRho-1); yCoords = corner(:)' corner = R(2:Jmax ,1:nbRho-1); yCoords(2,:) = corner(:)' corner = R(2:Jmax ,2:nbRho); yCoords(3,:) = corner(:)' corner = R(1:Jmax-1,2:nbRho); yCoords(4,:) = corner(:)' clear R // color is the same for each nbDecomposition facets // keep the 4 outside colors of the patch // to be able to switch between average or matlab color. i = 1:nbRho j = (0:Jmax-1)/ nbDecomposition + 1 [I, J] = meshgrid(i,j) clear I corner = z(J(1:$-1,1) , 1:$-1); colors = corner(:)' corner = z(J(1:$-1,1)+1, 1:$-1); colors(2,:) = corner(:)' corner = z(J(1:$-1,1)+1, 2:$); colors(3,:) = corner(:)' corner = z(J(1:$-1,1) , 2:$); colors(4,:) = corner(:)' clear J corner // flat plot nbQuadFacets = (nbRho - 1) * (Jmax - 1); zCoords = zeros(4, nbQuadFacets); // disable line draing and hidden color plot3d(xCoords, yCoords, list(zCoords,colors)); gPlot = gce(); gPlot.color_mode = -1; // no wireframe gPlot.hiddencolor = 0; // no hidden color gPlot.color_flag = 2; // average color on each facets // restore 2d view axes = gca(); axes.view = "2d"; endfunction From p.muehlmann at gmail.com Fri Mar 11 11:01:10 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Fri, 11 Mar 2016 11:01:10 +0100 Subject: [Scilab-users] ?= creating ROI from mouse click Message-ID: ...so to better explain my purpose: Assumptions: - one has a 2D Array of data or a gray scale Image - one wants to select the Region of interest via mouse clicks, by clicking into the Image - the ROI can be of any shape (triangle, rectangle, parallelogram, 5-point star ...etc) - one wants to Display only the ROI...everything outside of the ROI should be set to 0 purpose of ROI - one wants to process only a part of the input Image in such a way that: -if Pixel belongs to ROI than process Image - if Pixel does not belong to ROI do nothing So since I somehow can't figure it out how to: - calculate by hand if a pixel is left, right, above or below a line defined by two points (to bad, i know) and therfore - sort pixels in such a way that they either belong to the ROI or not I use the mentioned approach. Here the code: function [ROI, ROIpoints]=RoiImage(img); cols = size(img,'c'); rows = size(img,'r'); f = figure(); ShowImage(im,'click with mouse into image'); // use of IDP function, could be exchanged by Matplot() a = gca(); a.margins = [0 0 0 0]; messagebox(["left click into the image to get ROI borders";"end with any other button"], "Information", "info", ["OK"]) ibutton = 3; nr_points = 0; while ibutton == 3; [ibutton,xcoord,ycoord]=xclick(); if ibutton == 3 then nr_points = nr_points + 1 plot(xcoord, ycoord,'o'); ROIpoints(nr_points,:) = double([xcoord ycoord]); end end nr_points = max(size(ROIpoints)); if nr_points < 3 then mprintf('not enough points \n'); mprintf('ROI requires minimal 3 points \n'); ROI = 0; return; end; f = figure(); f.background = 8; f.axes_size = [cols,rows]; x=ROIpoints(:,1); y=ROIpoints(:,2); xfpolys(x,y,[-1]); // how does xfpolys know which area to fill? Is this area stored somewhere as a variable? a=gca(); a.tight_limits = "on"; a.data_bounds=[0,0;cols,rows]; a.margins = [0 0 0 0]; xs2bmp(gcf(),'mask.bmp'); maskIm = RGB2Gray(ReadImage('mask.bmp')); // uses IDP functions deletefile('mask.bmp'); ROI = zeros(rows,cols); pos = find(maskIm < 255); ROI(pos)= 1; delete(); endfunction -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From W.Schulz at ove.at Fri Mar 11 11:41:31 2016 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Fri, 11 Mar 2016 10:41:31 +0000 Subject: [Scilab-users] Problem graypolarplot In-Reply-To: <56E296E4.7060705@inria.fr> References: <07A8AF089844A549B0F0CCC727AF31AA57AA0C37@OVEKBG.ove.at> <56E296E4.7060705@inria.fr> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA57AA1DDC@OVEKBG.ove.at> Hello, thanks this basically solves my problems with the presentation to north. I'm using Scilab 5.5.2 Win7 64 bit (sorry forgot to mention that in my original email) and the examples in my first email are according to the graypolarplot help page (graypolarplot(theta,rho,z,[strf,rect])). Maybe a bug in the help? I still have some issues: - As with the original function no data is displayed in the inner ring (see attached image 0-100km). The matrix contains 5x24 values but it seems not all of them are displayed. Is this a bug or am I doing something wrong? - How do I tell the plot to colorize only values in a certain range? E.g. values are ranging from 20 to 140 and I want to colorize only from 50 to 150 from blue to red (jetcolormap). Thanks for your help Wolfgang > -----Urspr?ngliche Nachricht----- > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Serge Steer > Gesendet: Freitag, 11. M?rz 2016 10:59 > An: Users mailing list for Scilab > Betreff: Re: [Scilab-users] Problem graypolarplot > > Sorry the file attached in my previous mail contains a forgotten pause > instruction > > Le 11/03/2016 09:52, SCHULZ Wolfgang a ?crit : > > Hello, > > I have problems using the options of graypolarplot The following basic > > function is working: > > graypolarplot(theta,rho,Gain_plot') > > > > But if I want to use some options I get an error message. The following > examples produce error messages: > > graypolarplot(theta,rho,Gain_plot',strf="030",rect=[-20,-20,20,20]) > > graypolarplot(theta,rho,Gain_plot',"020",[-500,-500,500,500]) > > graypolarplot(theta,rho,Gain_plot',"030") > > How to use those examples? > > These was old options. With current Scilab version if you want to change the > data bounds (rect) you can modify the data_bounds property of the axes > > graypolarplot(theta,rho,Gain_plot') > ax=gca(); //get the handle on the currect axes > ax.data_bounds=[-20 -20;20 20]. > > > Another question would be - is it possible to have 0? in the direction of the > positive y-axis (North) and maybe the direction of the angle clockwise? > Please find attached a ffunction which realizes what you want. > > Thanks for your help > > Wolfgang > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- A non-text attachment was scrubbed... Name: plot.gif Type: image/gif Size: 5426 bytes Desc: plot.gif URL: From clement.david at scilab-enterprises.com Fri Mar 11 16:20:52 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 11 Mar 2016 16:20:52 +0100 Subject: [Scilab-users] GSOC 2016 In-Reply-To: <1457553087076-4033668.post@n3.nabble.com> References: <1457553087076-4033668.post@n3.nabble.com> Message-ID: <1457709652.16619.13.camel@scilab-enterprises.com> Hello?Mayank and welcome, Firstly, to communicate on the GSOC we use a dedicated ML gsoc at lists.scilab.org?; please use it next time. Then about the JOGL issue while building, I strongly suggest you to use the Prerequirement SVN [1] instead of libraries and JARs provided on your system. The prerequirements will be automatically detected by the configure script and have the right version. Note: we also expect you to build the master (eg. the Scilab 6 version) instead of 5.5.2 build (5.5 branch). [1]:?https://wiki.scilab.org/Compilation%20of%20Scilab Good chance, happy coding ! -- Cl?ment Le mercredi 09 mars 2016 ? 12:51 -0700, mayankbansal93 a ?crit?: > Hello sir, > > My name is Mayank Bansal and I am a final year student studying at National > Institute of Technology Hamirpur. I would like to contribute to Scilab. I > have good knowledge of C, C++, Java, Servlets, Android, HTML, CSS. > I started working on this organization. While I was configuring the code, > i.e., './configure', I got a following error:? > > checking for glTexParameterf in -ljogl_desktop ... no > configure: error: "libjogl: Library > missing (Cannot find symbol glTexParameterf). Check if libjogl - C/Java > (JNI) > interface for JOGL2 - or libGL (OpenGL library) are installed and if the > version is correct. Note that you might have to update etc/librarypath.xml > to provide the actual path to the JNI libraries." > > I am working on Ubuntu 14.04 machine. > Would you please help me in fixing this error. > Any help would be appreciated. > Thank you. > > > > -- > View this message in context: http://mailinglists.scilab.org/GSOC-2016-tp4033668.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 noguchi at kje.biglobe.ne.jp Fri Mar 11 18:44:01 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Fri, 11 Mar 2016 10:44:01 -0700 (MST) Subject: [Scilab-users] Model ID of First order delay and Dead Time Process In-Reply-To: <56E198A8.7050603@inria.fr> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> Message-ID: <1457718241790-4033692.post@n3.nabble.com> Dear Mr.Serge, Thank you for your advise. I tried to use time_ID. Please look at the following Scinote: z=poly(0,'z'); h=(0.07/(z-0.934))*(1/z^10) u=zeros(1,100); for i=6:1:100 u(1,i)=1; end t=1:1:100; rep=flts(u,tf2ss(h)); plot(t,rep,t,u) H=time_id(10,'step',rep) rep=flts(u,tf2ss(H)); plot(t,rep,'.r') There is a big difference between the original model equation and Identified model equation. The responsed curves are also different each other. Are there any good command so that I can obtain parameters for first order time delay constant and its gain and dead time? Thank you foryour help. Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659p4033692.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From p.muehlmann at gmail.com Fri Mar 11 21:50:49 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Fri, 11 Mar 2016 21:50:49 +0100 Subject: [Scilab-users] convert Matlab functions to Scilab Message-ID: Just a shot in the blue... does anybody successfully converted the Matlab function maketform.m into Scilab? Best regards, Philipp -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 12 00:19:30 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 12 Mar 2016 00:19:30 +0100 Subject: [Scilab-users] ?= creating ROI from mouse click In-Reply-To: <318c-56e29380-17-18346280@59346805> References: <318c-56e29380-17-18346280@59346805> Message-ID: <56E35282.2070108@free.fr> Le 11/03/2016 10:45, Antoine Monmayrant a ?crit : >> You may give a try to edit_curv() >> I will soon propose to upgrade it. > Thanks for the info. > In its current form, it is not possible to close the curve, is it? . Just initialize it with xy($+1,:) = xy(1,:), or do that after returning. By the way, edit_curv() is somewhat outdated, but can't yet be replaced/upgraded with the private useeditor(nFig) (yet faster for interactions), whose implementation is -- IMO -- quite far being completed. Missing features could be listed. Samuel From sgougeon at free.fr Sat Mar 12 00:42:55 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 12 Mar 2016 00:42:55 +0100 Subject: [Scilab-users] ?= creating ROI from mouse click In-Reply-To: References: Message-ID: <56E357FF.4040807@free.fr> Hello, For selecting a ROI of any shape, after displaying the grayplot: * plot(x,y) at least a segment around the middle of the grayplot. Choose an appropriate line color. * run useditor(gcf().figure_id) * interact with the initial segment : o click on a link to insert a point o click on and drag a point to move it with its links to neighboors o double-click on a point to delete it * Doing that = define your area. Interactions are not "modal" = after running useeditor(), Scilab does not wait for it returning. And when the editor is quit (right-click + Exit), no signal is sent to the console, and AFAIK there is no way to read out the current status of this editor. * Then, gce().children.data returns the XY Nx2 matrix of coordinates of your curve. * You close it: XY($+1,:) = XY(1,:) This ends the selection part. After that, identifying points of your grayplot area being in the curve may be done with point_in_polygon: https://fileexchange.scilab.org/toolboxes/121000 However, this script is not vectorized. So, if your full area has big sizes, it may takes a while. I would not guaranty that point_in_polygon() can be vectorized, but we may try to. It does not look too bad, at first sight :) HTH Regards Samuel Le 11/03/2016 11:01, Philipp M?hlmann a ?crit : > ...so to better explain my purpose: > > Assumptions: > > - one has a 2D Array of data or a gray scale Image > - one wants to select the Region of interest via mouse clicks, by > clicking into the Image > - the ROI can be of any shape (triangle, rectangle, parallelogram, > 5-point star ...etc) > - one wants to Display only the ROI...everything outside of the ROI > should be set to 0 > > purpose of ROI > - one wants to process only a part of the input Image in such a way that: > > -if Pixel belongs to ROI than process Image > - if Pixel does not belong to ROI do nothing > > > So since I somehow can't figure it out how to: > > - calculate by hand if a pixel is left, right, above or below a line > defined by two points (to bad, i know) > > and therfore > > - sort pixels in such a way that they either belong to the ROI or not > > I use the mentioned approach. > > > Here the code: > > > function [ROI, ROIpoints]=RoiImage(img); > > cols = size(img,'c'); > rows = size(img,'r'); > > f = figure(); > ShowImage(im,'click with mouse into image'); // use of IDP function, could be exchanged by Matplot() > a = gca(); > a.margins = [0 0 0 0]; > messagebox(["left click into the image to get ROI borders";"end with > any other button"], "Information", "info", ["OK"]) > ibutton = 3; > nr_points = 0; > while ibutton == 3; > [ibutton,xcoord,ycoord]=xclick(); > if ibutton == 3 then > nr_points = nr_points + 1 > plot(xcoord, ycoord,'o'); > ROIpoints(nr_points,:) = double([xcoord ycoord]); > end > end > > nr_points = max(size(ROIpoints)); > > if nr_points < 3 then > mprintf('not enough points \n'); > mprintf('ROI requires minimal 3 points \n'); > > ROI = 0; > return; > end; > > f = figure(); > f.background = 8; > f.axes_size = [cols,rows]; > x=ROIpoints(:,1); > y=ROIpoints(:,2); > xfpolys(x,y,[-1]); // how does xfpolys know which area to fill? Is this area stored > somewhere as a variable? > a=gca(); > > a.tight_limits = "on"; > a.data_bounds=[0,0;cols,rows]; > a.margins = [0 0 0 0]; > > xs2bmp(gcf(),'mask.bmp'); > > maskIm = RGB2Gray(ReadImage('mask.bmp')); // uses IDP functions > > deletefile('mask.bmp'); > > ROI = zeros(rows,cols); > pos = find(maskIm < 255); > ROI(pos)= 1; > > delete(); > > endfunction > > > > > -- > There we have the salad. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 12 00:46:03 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 12 Mar 2016 00:46:03 +0100 Subject: [Scilab-users] ?= creating ROI from mouse click In-Reply-To: <56E357FF.4040807@free.fr> References: <56E357FF.4040807@free.fr> Message-ID: <56E358BB.8080107@free.fr> Le 12/03/2016 00:42, Samuel Gougeon a ?crit : > > * run useditor(gcf().figure_id) > . Sorry, please read: useeditor(gcf().figure_id) It is not documented. So right spelling matters. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 12 01:02:21 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 12 Mar 2016 01:02:21 +0100 Subject: [Scilab-users] ?= creating ROI from mouse click In-Reply-To: <56E357FF.4040807@free.fr> References: <56E357FF.4040807@free.fr> Message-ID: <56E35C8D.4010401@free.fr> Le 12/03/2016 00:42, Samuel Gougeon a ?crit : > .../... > > This ends the selection part. > > After that, identifying points of your grayplot area being in the > curve may be done with > point_in_polygon: https://fileexchange.scilab.org/toolboxes/121000 > However, this script is not vectorized. So, if your full area has big > sizes, it may takes a while. > > I would not guaranty that point_in_polygon() can be vectorized, but we > may try to. > It does not look too bad, at first sight :) > . Actually, its vectorization is straightforward (to process a matrix of points without explicit "for" loop, instead of a unique point). But the script has other problems. Special cases (horizontal segments, points on segments, etc) are not really handled. Nevertheless, you may give it a try as is. Or improve it for special cases. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Sat Mar 12 10:25:40 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Sat, 12 Mar 2016 10:25:40 +0100 Subject: [Scilab-users] Model ID of First order delay and Dead Time Process In-Reply-To: <1457718241790-4033692.post@n3.nabble.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> Message-ID: <56E3E094.3080908@inria.fr> You made a mistake because the response you compute with rep=flts(u,tf2ss(h)); k=find(rep<>0,1) is not exactly a step response because the step does not occur at the first sample If you use H=time_id(10,u,rep) to identify the response you vill got a batter result An other an probably better solution is to extract the delay before starting the identification: k=find(rep<>0,1) //here the threshold has to be improved in case of noisy signal H=time_id(1,"step",rep(k:$)) Serge Le 11/03/2016 18:44, noguchi a ?crit : > Dear Mr.Serge, > > > Thank you for your advise. I tried to use time_ID. > Please look at the following Scinote: > > z=poly(0,'z'); > h=(0.07/(z-0.934))*(1/z^10) > u=zeros(1,100); > for i=6:1:100 > u(1,i)=1; > end > t=1:1:100; > rep=flts(u,tf2ss(h)); > plot(t,rep,t,u) > H=time_id(10,'step',rep) > rep=flts(u,tf2ss(H)); > plot(t,rep,'.r') > > There is a big difference between the original model equation and Identified > model equation. > The responsed curves are also different each other. > Are there any good command so that I can obtain parameters for first order > time delay constant and its gain and dead time? > > Thank you foryour help. > > > Y. Noguchi > > > > > -- > View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659p4033692.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 p.muehlmann at gmail.com Sat Mar 12 13:20:42 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Sat, 12 Mar 2016 13:20:42 +0100 Subject: [Scilab-users] ?= creating ROI from mouse click In-Reply-To: <56E35C8D.4010401@free.fr> References: <56E357FF.4040807@free.fr> <56E35C8D.4010401@free.fr> Message-ID: @ Samuel, thanks for the link. This is a nice function and it is doing what I am searching for. My example is rather slow though and I don't think that it is handy if one deals with big 2D Arrays. For a 640 x 512 array it took me 55 seconds to get the mask. guess the two for loops are the reason. clc;tic() img = rand(512,614).*255; rows = size(img,'r');cols = size(img,'c'); mask = zeros(img);xpol = [];ypol = [];ibutton = 3;nr_points = 0; f=figure();f.color_map=graycolormap(255);Matplot(img); while ibutton == 3; [ibutton,xcoord,ycoord]=xclick(); if ibutton ==3 nr_points = nr_points + 1; plot(xcoord,ycoord,'o'); xpol(nr_points) = xcoord; ypol(nr_points) = rows-ycoord; end;enddelete(gcf()); for i = 1:rows; for j = 1:cols inside = point_in_polygon(xpol, ypol, j, i) ; if inside == %t; mask(i,j) = 1; end; endend f = figure();f.color_map=graycolormap(255);Matplot(img.*mask);plot(xpol,rows-ypol,'o'); t = toc()disp(t); 2016-03-12 1:02 GMT+01:00 Samuel Gougeon : > Le 12/03/2016 00:42, Samuel Gougeon a ?crit : > > .../... > > This ends the selection part. > > After that, identifying points of your grayplot area being in the curve > may be done with > point_in_polygon: https://fileexchange.scilab.org/toolboxes/121000 > However, this script is not vectorized. So, if your full area has big > sizes, it may takes a while. > > I would not guaranty that point_in_polygon() can be vectorized, but we may > try to. > It does not look too bad, at first sight :) > > . > Actually, its vectorization is straightforward (to process a matrix of > points without explicit "for" loop, > instead of a unique point). But the script has other problems. > Special cases (horizontal segments, points on segments, etc) are not > really handled. > Nevertheless, you may give it a try as is. Or improve it for special cases. > > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Sat Mar 12 14:39:27 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Sat, 12 Mar 2016 06:39:27 -0700 (MST) Subject: [Scilab-users] Model ID of First order delay and Dead Time Process In-Reply-To: <56E3E094.3080908@inria.fr> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> Message-ID: <1457789967235-4033709.post@n3.nabble.com> Dear Mr.Serge, Thank you for your advise. I didn't know that step should start from the beginning. If there is a scilab tool to identify transport delay and continuous time transfer functions (Fist order delay, scond order delay, integral), it would be nice. Thanks. Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659p4033709.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vittorio.comino at gmail.com Sat Mar 12 21:08:38 2016 From: vittorio.comino at gmail.com (Vittorio Comino) Date: Sat, 12 Mar 2016 14:08:38 -0600 Subject: [Scilab-users] Do I have the C compiler? Message-ID: I have Scilab 5.5.2 64 bits in Windows 10 and at the command "haveacompiler" Scilab answers F. I have the following compilers installed: Microsoft Visual C++ 2010 x64 Redistributable - 10.0.30319 Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 Microsoft Visual C++ Compilers 2010 SP1 Standard -x64 Microsoft Visual C++ Compilers 2010 Sp1 Standard - x86. Are the above compilers enough for Scilab? Why does Scilab not recognize them ? I do not have NET framework 4. Before I tried to install the compiler by going to the site: http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx as suggested in Scilab wiki at the site: https://wiki.scilab.org/How can I set up Microsoft Visual Studio 2008/2010 Express Edition for use with Scilab But it did not work because when I tried to install the SDK package it asked for the .NET4 program and when I then tried to install the .NET4 I got a message that NET 4 was already installed. So I am stuck. I also tried the suggestion at this site: http://www.mathworks.com/matlabcentral/answers/95039-why-does-the-sdk-7-1-installation-fail-with-an-installation-failed-message-on-my-windows-system It did not work. Can anybody please help me to get a C compiler working in Scilab? By the way the C compiler should be part of the Scilab installation to avoid all these problems. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 12 21:22:29 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 12 Mar 2016 21:22:29 +0100 Subject: [Scilab-users] Do I have the C compiler? In-Reply-To: References: Message-ID: <56E47A85.4050505@free.fr> Le 12/03/2016 21:08, Vittorio Comino a ?crit : > .../... > > Can anybody please help me to get a C compiler working in Scilab? . You may add a comment here:Add a way to declare explicitly the path to a C compiler SG -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Sat Mar 12 21:35:49 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Sat, 12 Mar 2016 21:35:49 +0100 Subject: [Scilab-users] ?= creating ROI from mouse click In-Reply-To: References: <56E357FF.4040807@free.fr> <56E35C8D.4010401@free.fr> Message-ID: to end this topic: many thanks to the authors of the Matlab / Octave compatiblity toolbox Their function moc_inpolygon is doing the same thing, but way faster. 2016-03-12 13:20 GMT+01:00 Philipp M?hlmann : > @ Samuel, > > thanks for the link. > > This is a nice function and it is doing what I am searching for. > > My example is rather slow though and I don't think that it is handy if one > deals with big 2D Arrays. > > For a 640 x 512 array it took me 55 seconds to get the mask. > > guess the two for loops are the reason. > > clc;tic() > img = rand(512,614).*255; > rows = size(img,'r');cols = size(img,'c'); > mask = zeros(img);xpol = [];ypol = [];ibutton = 3;nr_points = 0; > f=figure();f.color_map=graycolormap(255);Matplot(img); > while ibutton == 3; > [ibutton,xcoord,ycoord]=xclick(); > if ibutton ==3 > nr_points = nr_points + 1; > plot(xcoord,ycoord,'o'); > xpol(nr_points) = xcoord; > ypol(nr_points) = rows-ycoord; > end;enddelete(gcf()); > for i = 1:rows; > for j = 1:cols > inside = point_in_polygon(xpol, ypol, j, i) ; > if inside == %t; > mask(i,j) = 1; > end; > endend > f = figure();f.color_map=graycolormap(255);Matplot(img.*mask);plot(xpol,rows-ypol,'o'); > t = toc()disp(t); > > > > > > > > > 2016-03-12 1:02 GMT+01:00 Samuel Gougeon : > >> Le 12/03/2016 00:42, Samuel Gougeon a ?crit : >> >> .../... >> >> This ends the selection part. >> >> After that, identifying points of your grayplot area being in the curve >> may be done with >> point_in_polygon: https://fileexchange.scilab.org/toolboxes/121000 >> However, this script is not vectorized. So, if your full area has big >> sizes, it may takes a while. >> >> I would not guaranty that point_in_polygon() can be vectorized, but we >> may try to. >> It does not look too bad, at first sight :) >> >> . >> Actually, its vectorization is straightforward (to process a matrix of >> points without explicit "for" loop, >> instead of a unique point). But the script has other problems. >> Special cases (horizontal segments, points on segments, etc) are not >> really handled. >> Nevertheless, you may give it a try as is. Or improve it for special >> cases. >> >> Samuel >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > > > -- > There we have the salad. > -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Sun Mar 13 00:15:04 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Sat, 12 Mar 2016 15:15:04 -0800 Subject: [Scilab-users] Model ID of First order delay and Dead Time Process In-Reply-To: <1457789967235-4033709.post@n3.nabble.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> Message-ID: <1457824504.2869.2.camel@Servo> If you're going to be doing this often it may be profitable to get a book on system identification. I can't be sure because I haven't had to do it, but I'm pretty sure that system identification with time delay is an indirect enough process that there will be multiple ways to do it, each one being good in some particular set of circumstances. On Sat, 2016-03-12 at 06:39 -0700, noguchi wrote: > Dear Mr.Serge, > > > Thank you for your advise. > > I didn't know that step should start from the beginning. > > If there is a scilab tool to identify transport delay and continuous time > transfer functions (Fist order delay, scond order delay, integral), it would > be nice. > > > Thanks. > > > Y. Noguchi > > > > -- > View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659p4033709.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 > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From chinluh at tritytech.com Mon Mar 14 02:34:43 2016 From: chinluh at tritytech.com (Tan Chin Luh) Date: Mon, 14 Mar 2016 09:34:43 +0800 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <1457824504.2869.2.camel@Servo> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> Message-ID: <56E61533.3020508@tritytech.com> Hi, I was trying to convert some of the modules to version 6 but facing some issues. *Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation are both successful. * More Info on my machine : 1. Windows 10 Pro 64 bits 2. Scilab 6 Beta 1 32 bits 3. Compiler checking : --> haveacompiler ans = T --> findmsvccompiler ans = msvc110express Similar errors could be reproduce by compiling the toolbox_skeleton comes with the Scilab installation: ******Error while executing builder.sce under Scilab 6 beta 1 32 bits version*********************** --> exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1) Building macros... -- Creation of [toolbox_skeletonlib] (Macros) -- Building sources... Generate a loader file Generate a Makefile Running the Makefile Compilation of fsum.f Building shared library (be patient) Generate a cleaner file Generate a loader file Generate a Makefile Running the Makefile Compilation of csum.c Compilation of csub.c Compilation of multiplybypi.c Building shared library (be patient) Generate a cleaner file Building JAR library org.scilab.contrib.toolboxskeleton.jar Compiling Java sources in D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\src\java\ Creating JAR archive D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar Create loader script for Java loader.sce Create cleaner script for Java cleaner.sce Building gateway... at line 55 of function ilib_build ( D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\ilib_build.sci line 68 ) at line 134 of function tbx_build_gateway ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) at line 10 of function builder_gw_c ( D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 ) at line 19 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder.sci line 26 ) at line 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) at line 6 of function builder_gateway ( D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) at line 1 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder.sci line 26 ) at line 32 of function tbx_builder_gateway ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) at line 32 of function main_builder ( D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce line 40 ) at line 48 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce ilib_build: Wrong value for input argument #3: existing file(s) expected. *********************** ******Error while executing builder.sce under Scilab 6 beta 1 64 bits version*********************** --> exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1) Building macros... -- Creation of [toolbox_skeletonlib] (Macros) -- Building sources... Generate a loader file Generate a Makefile Running the Makefile Compilation of fsum.f Building shared library (be patient) !'nmake' is not recognized as an internal or external command, ! ! ! !operable program or batch file. ! at line 36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta-64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) at line 70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta-64\modules\dynamic_link\macros\ilib_compile.sci line 86 ) at line 104 of function ilib_for_link ( D:\Scilab\scilab-6.0.0-beta-64\modules\dynamic_link\macros\ilib_for_link.sci line 118 ) at line 29 of function tbx_build_src ( D:\Scilab\scilab-6.0.0-beta-64\modules\modules_manager\macros\tbx_build_src.sci line 44 ) at line 3 of function builder_fortran ( D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 ) at line -1 of executed file D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta-64\modules\modules_manager\macros\tbx_builder.sci line 26 ) at line 49 of function tbx_builder_src_lang ( D:\Scilab\scilab-6.0.0-beta-64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 ) at line 4 of function builder_src ( D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\src\builder_src.sce line 6 ) at line -4 of executed file D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\src\builder_src.sce at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta-64\modules\modules_manager\macros\tbx_builder.sci line 26 ) at line 32 of function tbx_builder_src ( D:\Scilab\scilab-6.0.0-beta-64\modules\modules_manager\macros\tbx_builder_src.sci line 48 ) at line 31 of function main_builder ( D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce line 39 ) at line 48 of executed file D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce ilib_compile: Error while executing Makelib.mak. *********************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Mon Mar 14 13:37:48 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 14 Mar 2016 13:37:48 +0100 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <56E61533.3020508@tritytech.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> Message-ID: <1457959068.2472.41.camel@scilab-enterprises.com> Hi Tan, Thanks for the information ; this is already fixed [1] ;) do not hesitate to post a bug on bugzilla.scilab.org next time. [1:]?http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618be1aa Regards, -- Cl?ment David Le lundi 14 mars 2016 ? 09:34 +0800, Tan Chin Luh a ?crit?: > Hi, > > I was trying to convert some of the modules to version 6 but facing some issues.? > > Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation are both > successful.? > > More Info on my machine : > 1. Windows 10 Pro 64 bits > 2. Scilab 6 Beta 1 32 bits > 3. Compiler checking : > --> haveacompiler > ?ans? = > ? T > --> findmsvccompiler > ?ans? = > ?msvc110express > > ?Similar errors could be reproduce by compiling the toolbox_skeleton comes with the Scilab > installation: > > ******Error while executing builder.sce under Scilab 6 beta 1 32 bits > version*********************** > --> exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1) > Building macros... > -- Creation of [toolbox_skeletonlib] (Macros) -- > Building sources... > ?? Generate a loader file > ?? Generate a Makefile > ?? Running the Makefile > ?? Compilation of fsum.f > ?? Building shared library (be patient) > ?? Generate a cleaner file > ?? Generate a loader file > ?? Generate a Makefile > ?? Running the Makefile > ?? Compilation of csum.c > ?? Compilation of csub.c > ?? Compilation of multiplybypi.c > ?? Building shared library (be patient) > ?? Generate a cleaner file > ?? Building JAR library org.scilab.contrib.toolboxskeleton.jar > ?? Compiling Java sources in D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\src\java\ > ?? Creating JAR archive D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar > ?? Create loader script for Java loader.sce > ?? Create cleaner script for Java cleaner.sce > Building gateway... > at line??? 55 of function ilib_build?????????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\dynamic_link\macros\ilib_build.sci line 68 ) > at line?? 134 of function tbx_build_gateway??????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) > at line??? 10 of function builder_gw_c???????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 ) > at line??? 19 of executed file D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) > at line??? 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) > at line???? 6 of function builder_gateway????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) > at line???? 1 of executed file D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) > at line??? 32 of function tbx_builder_gateway????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) > at line??? 32 of function main_builder???????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\builder.sce line 40 ) > at line??? 48 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce > > ilib_build: Wrong value for input argument #3: existing file(s) expected. > *********************** > > > ******Error while executing builder.sce under Scilab 6 beta 1 64 bits > version*********************** > --> exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1) > Building macros... > -- Creation of [toolbox_skeletonlib] (Macros) -- > Building sources... > ?? Generate a loader file > ?? Generate a Makefile > ?? Running the Makefile > ?? Compilation of fsum.f > ?? Building shared library (be patient) > > !'nmake' is not recognized as an internal or external command,? ! > !?????????????????????????????????????????????????????????????? ! > !operable program or batch file.??????????????????????????????? ! > at line??? 36 of function dlwCompile?????????? ( D:\Scilab\scilab-6.0.0-beta- > 64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) > at line??? 70 of function ilib_compile???????? ( D:\Scilab\scilab-6.0.0-beta- > 64\modules\dynamic_link\macros\ilib_compile.sci line 86 ) > at line?? 104 of function ilib_for_link??????? ( D:\Scilab\scilab-6.0.0-beta- > 64\modules\dynamic_link\macros\ilib_for_link.sci line 118 ) > at line??? 29 of function tbx_build_src??????? ( D:\Scilab\scilab-6.0.0-beta- > 64\modules\modules_manager\macros\tbx_build_src.sci line 44 ) > at line???? 3 of function builder_fortran????? ( D:\Scilab\scilab-6.0.0-beta- > 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 ) > at line??? -1 of executed file D:\Scilab\scilab-6.0.0-beta- > 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce > at line??? 13 of function tbx_builder????????? ( D:\Scilab\scilab-6.0.0-beta- > 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) > at line??? 49 of function tbx_builder_src_lang ( D:\Scilab\scilab-6.0.0-beta- > 64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 ) > at line???? 4 of function builder_src????????? ( D:\Scilab\scilab-6.0.0-beta- > 64\contrib\toolbox_skeleton\src\builder_src.sce line 6 ) > at line??? -4 of executed file D:\Scilab\scilab-6.0.0-beta- > 64\contrib\toolbox_skeleton\src\builder_src.sce > at line??? 13 of function tbx_builder????????? ( D:\Scilab\scilab-6.0.0-beta- > 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) > at line??? 32 of function tbx_builder_src????? ( D:\Scilab\scilab-6.0.0-beta- > 64\modules\modules_manager\macros\tbx_builder_src.sci line 48 ) > at line??? 31 of function main_builder???????? ( D:\Scilab\scilab-6.0.0-beta- > 64\contrib\toolbox_skeleton\builder.sce line 39 ) > at line??? 48 of executed file D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce > > ilib_compile: Error while executing Makelib.mak. > > *********************** > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From chinluh at tritytech.com Tue Mar 15 03:23:45 2016 From: chinluh at tritytech.com (Tan Chin Luh) Date: Tue, 15 Mar 2016 10:23:45 +0800 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <1457959068.2472.41.camel@scilab-enterprises.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> <1457959068.2472.41.camel@scilab-enterprises.com> Message-ID: <56E77231.2010307@tritytech.com> Hi Clement, thanks for your prompt reply. yes, it fixed the "nmake" error on the 64 -bit versions. After apply the fix, both 32 and 64 bits now stop at the same error during "building gateway" ilib_build: Wrong value for input argument #3: existing file(s) expected. p/s: should I confirm it is a bug first before I post on bugzilla next time? let me know the best way to do this. thanks. :) Thanks again. Regards, Chin Luh On 14/3/2016 8:37 PM, Cl?ment David wrote: > Hi Tan, > > Thanks for the information ; this is already fixed [1] ;) do not hesitate to post a bug on > bugzilla.scilab.org next time. > > [1:] http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618be1aa > > Regards, > > -- > Cl?ment David > > Le lundi 14 mars 2016 ? 09:34 +0800, Tan Chin Luh a ?crit : >> Hi, >> >> I was trying to convert some of the modules to version 6 but facing some issues. >> >> Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation are both >> successful. >> >> More Info on my machine : >> 1. Windows 10 Pro 64 bits >> 2. Scilab 6 Beta 1 32 bits >> 3. Compiler checking : >> --> haveacompiler >> ans = >> T >> --> findmsvccompiler >> ans = >> msvc110express >> >> Similar errors could be reproduce by compiling the toolbox_skeleton comes with the Scilab >> installation: >> >> ******Error while executing builder.sce under Scilab 6 beta 1 32 bits >> version*********************** >> --> exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1) >> Building macros... >> -- Creation of [toolbox_skeletonlib] (Macros) -- >> Building sources... >> Generate a loader file >> Generate a Makefile >> Running the Makefile >> Compilation of fsum.f >> Building shared library (be patient) >> Generate a cleaner file >> Generate a loader file >> Generate a Makefile >> Running the Makefile >> Compilation of csum.c >> Compilation of csub.c >> Compilation of multiplybypi.c >> Building shared library (be patient) >> Generate a cleaner file >> Building JAR library org.scilab.contrib.toolboxskeleton.jar >> Compiling Java sources in D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\src\java\ >> Creating JAR archive D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar >> Create loader script for Java loader.sce >> Create cleaner script for Java cleaner.sce >> Building gateway... >> at line 55 of function ilib_build ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\dynamic_link\macros\ilib_build.sci line 68 ) >> at line 134 of function tbx_build_gateway ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) >> at line 10 of function builder_gw_c ( D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 ) >> at line 19 of executed file D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce >> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >> at line 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) >> at line 6 of function builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) >> at line 1 of executed file D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce >> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >> at line 32 of function tbx_builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) >> at line 32 of function main_builder ( D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\builder.sce line 40 ) >> at line 48 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce >> >> ilib_build: Wrong value for input argument #3: existing file(s) expected. >> *********************** >> >> >> ******Error while executing builder.sce under Scilab 6 beta 1 64 bits >> version*********************** >> --> exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1) >> Building macros... >> -- Creation of [toolbox_skeletonlib] (Macros) -- >> Building sources... >> Generate a loader file >> Generate a Makefile >> Running the Makefile >> Compilation of fsum.f >> Building shared library (be patient) >> >> !'nmake' is not recognized as an internal or external command, ! >> ! ! >> !operable program or batch file. ! >> at line 36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta- >> 64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) >> at line 70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta- >> 64\modules\dynamic_link\macros\ilib_compile.sci line 86 ) >> at line 104 of function ilib_for_link ( D:\Scilab\scilab-6.0.0-beta- >> 64\modules\dynamic_link\macros\ilib_for_link.sci line 118 ) >> at line 29 of function tbx_build_src ( D:\Scilab\scilab-6.0.0-beta- >> 64\modules\modules_manager\macros\tbx_build_src.sci line 44 ) >> at line 3 of function builder_fortran ( D:\Scilab\scilab-6.0.0-beta- >> 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 ) >> at line -1 of executed file D:\Scilab\scilab-6.0.0-beta- >> 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce >> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >> 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) >> at line 49 of function tbx_builder_src_lang ( D:\Scilab\scilab-6.0.0-beta- >> 64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 ) >> at line 4 of function builder_src ( D:\Scilab\scilab-6.0.0-beta- >> 64\contrib\toolbox_skeleton\src\builder_src.sce line 6 ) >> at line -4 of executed file D:\Scilab\scilab-6.0.0-beta- >> 64\contrib\toolbox_skeleton\src\builder_src.sce >> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >> 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) >> at line 32 of function tbx_builder_src ( D:\Scilab\scilab-6.0.0-beta- >> 64\modules\modules_manager\macros\tbx_builder_src.sci line 48 ) >> at line 31 of function main_builder ( D:\Scilab\scilab-6.0.0-beta- >> 64\contrib\toolbox_skeleton\builder.sce line 39 ) >> at line 48 of executed file D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce >> >> ilib_compile: Error while executing Makelib.mak. >> >> *********************** >> >> >> >> >> _______________________________________________ >> 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 chinluh at tritytech.com Tue Mar 15 09:09:34 2016 From: chinluh at tritytech.com (Tan Chin Luh) Date: Tue, 15 Mar 2016 16:09:34 +0800 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <56E77231.2010307@tritytech.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> <1457959068.2472.41.camel@scilab-enterprises.com> <56E77231.2010307@tritytech.com> Message-ID: <56E7C33E.3080002@tritytech.com> Hi again, after looking into more details, I notice that the builder is trying to include some files which are not in the c gateway folder: tbx_build_gateway("skeleton_c", .. ["c_sum","sci_csum", "csci"; ... "c_sub","sci_csub", "csci"; ... "c_multiplybypi","sci_multiplybypi", "csci"; ... "foo","sci_foo", "csci"; ... "c_error","sci_cerror", "csci"; "c_sum6","sci_csum6", "csci6"; ... "c_sub6","sci_csub6", "csci6"; ... "c_multiplybypi6","sci_multiplybypi6", "csci6"; ... "foo6","sci_foo6", "csci6"; ... "c_error6","sci_cerror6", "csci6"], .. ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", ... "sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"], .. get_absolute_file_path("builder_gateway_c.sce"), .. ["../../src/c/libcsum"], .. "", .. includes_src_c); After removing those files the compilation of the C gateway is successful. tbx_build_gateway("skeleton_c", .. ["c_sum","sci_csum", "csci"; ... "c_sub","sci_csub", "csci"; ... "c_multiplybypi","sci_multiplybypi", "csci"; ... "foo","sci_foo", "csci"; ... "c_error","sci_cerror", "csci";], .. ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], .. get_absolute_file_path("builder_gateway_c.sce"), .. ["../../src/c/libcsum"], .. "", .. includes_src_c); However, now it stopped at cpp gateway building, which point to some error in the internal.hxx Building gateway... Generate a gateway file Generate a loader file Generate a Makefile Running the makefile Compilation of sci_cerror.c Compilation of sci_csub.c Compilation of sci_csum.c Compilation of sci_foo.c Compilation of sci_multiplybypi.c Compilation of skeleton_c.cpp Compilation of skeleton_c.h Compilation of skeleton_c.hxx Building shared library (be patient) Generate a cleaner file Generate a gateway file Generate a loader file Generate a Makefile Running the makefile Compilation of sci_fsum.c Compilation of skeleton_fortran.cpp Compilation of skeleton_fortran.h Compilation of skeleton_fortran.hxx Building shared library (be patient) Generate a cleaner file Generate a gateway file Generate a loader file Generate a Makefile Running the makefile Compilation of sci_cpp_find.cxx Compilation of sci_cpperror.cpp Compilation of sci_cppfoo.cpp Compilation of sci_cppmultiplybypi.cpp Compilation of sci_cppsub.cpp Compilation of sci_cppsum.cpp Compilation of skeleton_cpp.cpp Compilation of skeleton_cpp.h Compilation of skeleton_cpp.hxx Building shared library (be patient) !------------- Compile file sci_cpperror.cpp -------------- ! ! ! ! IF NOT EXIST Release mkdir Release ! ! ! !sci_cpperror.cpp ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(227) : error C2143: syntax erro! !r : missing ',' before '...' ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : error C2061: syntax erro! !r : identifier 'A' ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(265) : error C2780: 'T *types::In! !ternalType::checkRef(T *,F)' : expects 2 arguments - 4 provided ! ! ! ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see declaration ! !of 'types::InternalType::checkRef' ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(288) : error C2780: 'T *types::In! !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 provided ! ! ! ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see declaration ! !of 'types::InternalType::checkRef' ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(310) : error C2780: 'T *types::In! !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 provided ! ! ! ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see declaration ! !of 'types::InternalType::checkRef' ! ! ! !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : ret! !urn code '0x2' ! ! ! !Stop. ! at line 36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) at line 70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\ilib_compile.sci line 86 ) at line 115 of function ilib_build ( D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\ilib_build.sci line 128 ) at line 134 of function tbx_build_gateway ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) at line 17 of function builder_gw_cpp ( D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce line 19 ) at line 25 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder.sci line 26 ) at line 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) at line 6 of function builder_gateway ( D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) at line 1 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder.sci line 26 ) at line 32 of function tbx_builder_gateway ( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) at line 32 of function main_builder ( D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce line 40 ) at line 48 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce ilib_compile: Error while executing Makelib.mak. Thanks again. Regards, Chin Luh On 15/3/2016 10:23 AM, Tan Chin Luh wrote: > Hi Clement, > > thanks for your prompt reply. > > yes, it fixed the "nmake" error on the 64 -bit versions. After apply > the fix, both 32 and 64 bits now stop at the same error during > "building gateway" > > ilib_build: Wrong value for input argument #3: existing file(s) expected. > > p/s: should I confirm it is a bug first before I post on bugzilla next > time? let me know the best way to do this. thanks. :) > > > Thanks again. > > Regards, > Chin Luh > > > > On 14/3/2016 8:37 PM, Cl?ment David wrote: >> Hi Tan, >> >> Thanks for the information ; this is already fixed [1] ;) do not >> hesitate to post a bug on >> bugzilla.scilab.org next time. >> >> [1:] >> http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618be1aa >> >> Regards, >> >> -- >> Cl?ment David >> >> Le lundi 14 mars 2016 ? 09:34 +0800, Tan Chin Luh a ?crit : >>> Hi, >>> >>> I was trying to convert some of the modules to version 6 but facing >>> some issues. >>> >>> Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the >>> compilation are both >>> successful. >>> >>> More Info on my machine : >>> 1. Windows 10 Pro 64 bits >>> 2. Scilab 6 Beta 1 32 bits >>> 3. Compiler checking : >>> --> haveacompiler >>> ans = >>> T >>> --> findmsvccompiler >>> ans = >>> msvc110express >>> >>> Similar errors could be reproduce by compiling the >>> toolbox_skeleton comes with the Scilab >>> installation: >>> >>> ******Error while executing builder.sce under Scilab 6 beta 1 32 bits >>> version*********************** >>> --> >>> exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1) >>> Building macros... >>> -- Creation of [toolbox_skeletonlib] (Macros) -- >>> Building sources... >>> Generate a loader file >>> Generate a Makefile >>> Running the Makefile >>> Compilation of fsum.f >>> Building shared library (be patient) >>> Generate a cleaner file >>> Generate a loader file >>> Generate a Makefile >>> Running the Makefile >>> Compilation of csum.c >>> Compilation of csub.c >>> Compilation of multiplybypi.c >>> Building shared library (be patient) >>> Generate a cleaner file >>> Building JAR library org.scilab.contrib.toolboxskeleton.jar >>> Compiling Java sources in >>> D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\src\java\ >>> Creating JAR archive D:\Scilab\scilab-6.0.0-beta- >>> 32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar >>> Create loader script for Java loader.sce >>> Create cleaner script for Java cleaner.sce >>> Building gateway... >>> at line 55 of function ilib_build ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\modules\dynamic_link\macros\ilib_build.sci line 68 ) >>> at line 134 of function tbx_build_gateway ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) >>> at line 10 of function builder_gw_c ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line >>> 12 ) >>> at line 19 of executed file D:\Scilab\scilab-6.0.0-beta- >>> 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce >>> at line 13 of function tbx_builder ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>> at line 49 of function tbx_builder_gateway_lang ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line >>> 74 ) >>> at line 6 of function builder_gateway ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) >>> at line 1 of executed file D:\Scilab\scilab-6.0.0-beta- >>> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce >>> at line 13 of function tbx_builder ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>> at line 32 of function tbx_builder_gateway ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) >>> at line 32 of function main_builder ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 32\contrib\toolbox_skeleton\builder.sce line 40 ) >>> at line 48 of executed file >>> D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce >>> >>> ilib_build: Wrong value for input argument #3: existing file(s) >>> expected. >>> *********************** >>> >>> >>> ******Error while executing builder.sce under Scilab 6 beta 1 64 bits >>> version*********************** >>> --> >>> exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1) >>> Building macros... >>> -- Creation of [toolbox_skeletonlib] (Macros) -- >>> Building sources... >>> Generate a loader file >>> Generate a Makefile >>> Running the Makefile >>> Compilation of fsum.f >>> Building shared library (be patient) >>> >>> !'nmake' is not recognized as an internal or external command, ! >>> ! ! >>> !operable program or batch file. ! >>> at line 36 of function dlwCompile ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) >>> at line 70 of function ilib_compile ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\modules\dynamic_link\macros\ilib_compile.sci line 86 ) >>> at line 104 of function ilib_for_link ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\modules\dynamic_link\macros\ilib_for_link.sci line 118 ) >>> at line 29 of function tbx_build_src ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\modules\modules_manager\macros\tbx_build_src.sci line 44 ) >>> at line 3 of function builder_fortran ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 ) >>> at line -1 of executed file D:\Scilab\scilab-6.0.0-beta- >>> 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce >>> at line 13 of function tbx_builder ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>> at line 49 of function tbx_builder_src_lang ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 ) >>> at line 4 of function builder_src ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\contrib\toolbox_skeleton\src\builder_src.sce line 6 ) >>> at line -4 of executed file D:\Scilab\scilab-6.0.0-beta- >>> 64\contrib\toolbox_skeleton\src\builder_src.sce >>> at line 13 of function tbx_builder ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>> at line 32 of function tbx_builder_src ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\modules\modules_manager\macros\tbx_builder_src.sci line 48 ) >>> at line 31 of function main_builder ( >>> D:\Scilab\scilab-6.0.0-beta- >>> 64\contrib\toolbox_skeleton\builder.sce line 39 ) >>> at line 48 of executed file >>> D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce >>> >>> ilib_compile: Error while executing Makelib.mak. >>> >>> *********************** >>> >>> >>> >>> >>> _______________________________________________ >>> 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 Serge.Steer at inria.fr Tue Mar 15 10:11:44 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 15 Mar 2016 10:11:44 +0100 Subject: [Scilab-users] convert Matlab functions to Scilab In-Reply-To: References: Message-ID: <56E7D1D0.7060604@inria.fr> Converted from Octave codes, not fully tested Serge Steer Le 11/03/2016 21:50, Philipp M?hlmann a ?crit : > Just a shot in the blue... > > does anybody successfully converted the Matlab function > > maketform.m > > into Scilab? > > > Best regards, > Philipp > > > -- > There we have the salad. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tform.tar.gz Type: application/x-gzip Size: 8120 bytes Desc: not available URL: From clement.david at scilab-enterprises.com Tue Mar 15 12:33:01 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 15 Mar 2016 12:33:01 +0100 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <56E7C33E.3080002@tritytech.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> <1457959068.2472.41.camel@scilab-enterprises.com> <56E77231.2010307@tritytech.com> <56E7C33E.3080002@tritytech.com> Message-ID: <1458041581.2469.12.camel@scilab-enterprises.com> Hi, Please post a detailed bug with all these information and your configuration. We usually only check the dynamic linking feature with a reduced set of compilers and your configuration might be a not checked one . Thanks in advance, -- Cl?ment David Le mardi 15 mars 2016 ? 16:09 +0800, Tan Chin Luh a ?crit?: > Hi again, > > after looking into more details, I notice that the builder is trying to include some files which > are not in the c gateway folder: > > tbx_build_gateway("skeleton_c", .. > ????["c_sum","sci_csum", "csci"; ... > ????"c_sub","sci_csub", "csci"; ... > ????"c_multiplybypi","sci_multiplybypi", "csci"; ... > ????"foo","sci_foo", "csci"; ... > ????"c_error","sci_cerror", "csci";? > ????"c_sum6","sci_csum6", "csci6"; ... > ????"c_sub6","sci_csub6", "csci6"; ... > ????"c_multiplybypi6","sci_multiplybypi6", "csci6"; ... > ????"foo6","sci_foo6", "csci6"; ... > ????"c_error6","sci_cerror6", "csci6"], .. > ????["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", ... > ????"sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"], > ?.. > ????get_absolute_file_path("builder_gateway_c.sce"), .. > ????["../../src/c/libcsum"], .. > ????"", .. > ????includes_src_c); > > > After removing those files the compilation of the C gateway is successful.? > > tbx_build_gateway("skeleton_c", .. > ["c_sum","sci_csum", "csci"; ... > "c_sub","sci_csub", "csci"; ... > "c_multiplybypi","sci_multiplybypi", "csci"; ... > "foo","sci_foo", "csci"; ... > "c_error","sci_cerror", "csci";], .. > ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], .. > get_absolute_file_path("builder_gateway_c.sce"), .. > ["../../src/c/libcsum"], .. > "", .. > includes_src_c); > > > However, now it stopped at cpp gateway building, which point to some error in the internal.hxx > > Building gateway... > ?? Generate a gateway file > ?? Generate a loader file > ?? Generate a Makefile > ?? Running the makefile > ?? Compilation of sci_cerror.c > ?? Compilation of sci_csub.c > ?? Compilation of sci_csum.c > ?? Compilation of sci_foo.c > ?? Compilation of sci_multiplybypi.c > ?? Compilation of skeleton_c.cpp > ?? Compilation of skeleton_c.h > ?? Compilation of skeleton_c.hxx > ?? Building shared library (be patient) > ?? Generate a cleaner file > ?? Generate a gateway file > ?? Generate a loader file > ?? Generate a Makefile > ?? Running the makefile > ?? Compilation of sci_fsum.c > ?? Compilation of skeleton_fortran.cpp > ?? Compilation of skeleton_fortran.h > ?? Compilation of skeleton_fortran.hxx > ?? Building shared library (be patient) > ?? Generate a cleaner file > ?? Generate a gateway file > ?? Generate a loader file > ?? Generate a Makefile > ?? Running the makefile > ?? Compilation of sci_cpp_find.cxx > ?? Compilation of sci_cpperror.cpp > ?? Compilation of sci_cppfoo.cpp > ?? Compilation of sci_cppmultiplybypi.cpp > ?? Compilation of sci_cppsub.cpp > ?? Compilation of sci_cppsum.cpp > ?? Compilation of skeleton_cpp.cpp > ?? Compilation of skeleton_cpp.h > ?? Compilation of skeleton_cpp.hxx > ?? Building shared library (be patient) > > !------------- Compile file sci_cpperror.cpp ----------- > ---??????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !??? IF NOT EXIST? Release mkdir > Release????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !sci_cpperror.cpp????????????????????????????????????????????????????????????????????????????????? > ???? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(227) : error C2143: syntax > erro! > !r : missing ',' before > '...'????????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : error C2061: syntax > erro! > !r : identifier > 'A'??????????????????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(265) : error C2780: 'T > *types::In! > !ternalType::checkRef(T *,F)' : expects 2 arguments - 4 > provided?????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !??????? d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see > declaration ! > !of > 'types::InternalType::checkRef'??????????????????????????????????????????????????????????????????? > ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(288) : error C2780: 'T > *types::In! > !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 > provided?????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !??????? d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see > declaration ! > !of > 'types::InternalType::checkRef'??????????????????????????????????????????????????????????????????? > ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(310) : error C2780: 'T > *types::In! > !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 > provided?????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !??????? d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see > declaration ! > !of > 'types::InternalType::checkRef'??????????????????????????????????????????????????????????????????? > ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' > : ret! > !urn code > '0x2'??????????????????????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Stop.???????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > at line??? 36 of function dlwCompile?????????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) > at line??? 70 of function ilib_compile???????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\dynamic_link\macros\ilib_compile.sci line 86 ) > at line?? 115 of function ilib_build?????????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\dynamic_link\macros\ilib_build.sci line 128 ) > at line?? 134 of function tbx_build_gateway??????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) > at line??? 17 of function builder_gw_cpp?????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce line 19 ) > at line??? 25 of executed file D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) > at line??? 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) > at line???? 6 of function builder_gateway????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) > at line???? 1 of executed file D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) > at line??? 32 of function tbx_builder_gateway????? ( D:\Scilab\scilab-6.0.0-beta- > 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) > at line??? 32 of function main_builder???????????? ( D:\Scilab\scilab-6.0.0-beta- > 32\contrib\toolbox_skeleton\builder.sce line 40 ) > at line??? 48 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce > > ilib_compile: Error while executing Makelib.mak. > > Thanks again. > > Regards, > Chin Luh > > ? > > > On 15/3/2016 10:23 AM, Tan Chin Luh wrote: > > Hi Clement,? > > > > thanks for your prompt reply.? > > > > yes, it fixed the "nmake" error on the 64 -bit versions. After apply the fix, both 32 and 64 > > bits now stop at the same error during "building gateway"? > > > > ilib_build: Wrong value for input argument #3: existing file(s) expected.? > > > > p/s: should I confirm it is a bug first before I post on bugzilla next time? let me know the > > best way to do this. thanks. :)? > > > > > > Thanks again.? > > > > Regards,? > > Chin Luh? > > > > > > > > On 14/3/2016 8:37 PM, Cl?ment David wrote:? > > > Hi Tan,? > > > > > > Thanks for the information ; this is already fixed [1] ;) do not hesitate to post a bug on? > > > bugzilla.scilab.org next time.? > > > > > > [1:] http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618be1a > > > a > > > > > > Regards,? > > > > > > --? > > > Cl?ment David? > > > > > > Le lundi 14 mars 2016 ? 09:34 +0800, Tan Chin Luh a ?crit :? > > > > Hi,? > > > > > > > > I was trying to convert some of the modules to version 6 but facing some issues.? > > > > > > > > Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation are both? > > > > successful.? > > > > > > > > More Info on my machine :? > > > > 1. Windows 10 Pro 64 bits? > > > > 2. Scilab 6 Beta 1 32 bits? > > > > 3. Compiler checking :? > > > > --> haveacompiler? > > > > ? ans? =? > > > > ?? T? > > > > --> findmsvccompiler? > > > > ? ans? =? > > > > ? msvc110express? > > > > > > > > ? Similar errors could be reproduce by compiling the toolbox_skeleton comes with the Scilab? > > > > installation:? > > > > > > > > ******Error while executing builder.sce under Scilab 6 beta 1 32 bits? > > > > version***********************? > > > > --> exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1) > > > > Building macros...? > > > > -- Creation of [toolbox_skeletonlib] (Macros) --? > > > > Building sources...? > > > > ??? Generate a loader file? > > > > ??? Generate a Makefile? > > > > ??? Running the Makefile? > > > > ??? Compilation of fsum.f? > > > > ??? Building shared library (be patient)? > > > > ??? Generate a cleaner file? > > > > ??? Generate a loader file? > > > > ??? Generate a Makefile? > > > > ??? Running the Makefile? > > > > ??? Compilation of csum.c? > > > > ??? Compilation of csub.c? > > > > ??? Compilation of multiplybypi.c? > > > > ??? Building shared library (be patient)? > > > > ??? Generate a cleaner file? > > > > ??? Building JAR library org.scilab.contrib.toolboxskeleton.jar? > > > > ??? Compiling Java sources in D:\Scilab\scilab-6.0.0-beta- > > > > 32\contrib\toolbox_skeleton\src\java\? > > > > ??? Creating JAR archive D:\Scilab\scilab-6.0.0-beta-? > > > > 32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar? > > > > ??? Create loader script for Java loader.sce? > > > > ??? Create cleaner script for Java cleaner.sce? > > > > Building gateway...? > > > > at line??? 55 of function ilib_build?????????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\modules\dynamic_link\macros\ilib_build.sci line 68 )? > > > > at line?? 134 of function tbx_build_gateway??????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 )? > > > > at line??? 10 of function builder_gw_c???????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 )? > > > > at line??? 19 of executed file D:\Scilab\scilab-6.0.0-beta-? > > > > 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce? > > > > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\modules\modules_manager\macros\tbx_builder.sci line 26 )? > > > > at line??? 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 )? > > > > at line???? 6 of function builder_gateway????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 )? > > > > at line???? 1 of executed file D:\Scilab\scilab-6.0.0-beta-? > > > > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce? > > > > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\modules\modules_manager\macros\tbx_builder.sci line 26 )? > > > > at line??? 32 of function tbx_builder_gateway????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 )? > > > > at line??? 32 of function main_builder???????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 32\contrib\toolbox_skeleton\builder.sce line 40 )? > > > > at line??? 48 of executed file D:\Scilab\scilab-6.0.0-beta- > > > > 32\contrib\toolbox_skeleton\builder.sce? > > > > > > > > ilib_build: Wrong value for input argument #3: existing file(s) expected.? > > > > ***********************? > > > > > > > > > > > > ******Error while executing builder.sce under Scilab 6 beta 1 64 bits? > > > > version***********************? > > > > --> exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1) > > > > Building macros...? > > > > -- Creation of [toolbox_skeletonlib] (Macros) --? > > > > Building sources...? > > > > ??? Generate a loader file? > > > > ??? Generate a Makefile? > > > > ??? Running the Makefile? > > > > ??? Compilation of fsum.f? > > > > ??? Building shared library (be patient)? > > > > > > > > !'nmake' is not recognized as an internal or external command,? !? > > > > !?????????????????????????????????????????????????????????????? !? > > > > !operable program or batch file.??????????????????????????????? !? > > > > at line??? 36 of function dlwCompile?????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 )? > > > > at line??? 70 of function ilib_compile???????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\modules\dynamic_link\macros\ilib_compile.sci line 86 )? > > > > at line?? 104 of function ilib_for_link??????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\modules\dynamic_link\macros\ilib_for_link.sci line 118 )? > > > > at line??? 29 of function tbx_build_src??????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\modules\modules_manager\macros\tbx_build_src.sci line 44 )? > > > > at line???? 3 of function builder_fortran????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 )? > > > > at line??? -1 of executed file D:\Scilab\scilab-6.0.0-beta-? > > > > 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce? > > > > at line??? 13 of function tbx_builder????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\modules\modules_manager\macros\tbx_builder.sci line 26 )? > > > > at line??? 49 of function tbx_builder_src_lang ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 )? > > > > at line???? 4 of function builder_src????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\contrib\toolbox_skeleton\src\builder_src.sce line 6 )? > > > > at line??? -4 of executed file D:\Scilab\scilab-6.0.0-beta-? > > > > 64\contrib\toolbox_skeleton\src\builder_src.sce? > > > > at line??? 13 of function tbx_builder????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\modules\modules_manager\macros\tbx_builder.sci line 26 )? > > > > at line??? 32 of function tbx_builder_src????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\modules\modules_manager\macros\tbx_builder_src.sci line 48 )? > > > > at line??? 31 of function main_builder???????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > 64\contrib\toolbox_skeleton\builder.sce line 39 )? > > > > at line??? 48 of executed file D:\Scilab\scilab-6.0.0-beta- > > > > 64\contrib\toolbox_skeleton\builder.sce? > > > > > > > > ilib_compile: Error while executing Makelib.mak.? > > > > > > > > ***********************? > > > > > > > > > > > > > > > > > > > > _______________________________________________? > > > > 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 From chinluh at tritytech.com Tue Mar 15 12:49:00 2016 From: chinluh at tritytech.com (Tan Chin Luh) Date: Tue, 15 Mar 2016 19:49:00 +0800 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <1458041581.2469.12.camel@scilab-enterprises.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> <1457959068.2472.41.camel@scilab-enterprises.com> <56E77231.2010307@tritytech.com> <56E7C33E.3080002@tritytech.com> <1458041581.2469.12.camel@scilab-enterprises.com> Message-ID: <56E7F6AC.2020003@tritytech.com> Hi, Please find below for the details, let me know if I miss anything. Thanks. Regards, Chin Luh *In general:* 1. Windows 10 Pro 64 bits 2. Scilab 6 Beta 1 32 bits 3. Microsoft Visual Studio 2012 Express 4. Same configuration works perfectly on Scilab 5.5.2 (both 32 and 64 bits) on the compilation of toolbox_skeleton. *The output of ver: * --> ver ans = !Scilab Version: 6.0.0.1455102908 ! ! ! !Operating System: Windows 8 6.2 ! ! ! !Java version: 1.8.0_40 ! ! ! !Java runtime information: Java(TM) SE Runtime Environment (build 1.8.0_40-b26) ! ! ! !Java Virtual Machine information: Java HotSpot(TM) Client VM (build 25.40-b25, mixed mode) ! ! ! !Vendor specification: Oracle Corporation *Output of getdebuginfo()* --> [dynamic_info, static_info] = getdebuginfo() static_info = !Version: scilab-6.0.0-beta-1 ! ! ! !Compilation date: Feb 10 2016 ! ! ! !Compilation time: 13:28:04 ! ! ! !Compiler Architecture: x86 ! ! ! !Compiled with Microsoft compiler (180040629) ! ! ! !BLAS library optimized version: MKL ! ! ! !XML version: 2.9.1 ! ! ! !Tcl/Tk: Enable ! ! ! !TCL version: 8.5.9 ! ! ! !TK version: 8.5.9 ! ! ! !Path separator: ; ! ! ! !Directory separator: \ ! ! ! !PCRE Version: 8.21 ! dynamic_info = !Memory in use: 27 % ! ! ! !Total Physical Memory (Kbytes): 8181612 ! ! ! !Free Physical Memory (Kbytes): 5970236 ! ! ! !Total Paging File (Kbytes): 9492332 ! ! ! !Free Paging File (Kbytes): 6731004 ! ! ! !Total Virtual Memory (Kbytes): 2097024 ! ! ! !Free Virtual Memory (Kbytes): 961684 ! ! ! !Free Extended Memory (Kbytes): 0 ! ! ! !Operating System: Windows 8 x64 ! ! ! !Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz ! ! ! !Number of processors: 4 ! ! ! !Number of Video cards: 1 ! ! ! !Video card #0: Intel(R) HD Graphics ! ! ! !Primary Video card driver version: 15.201.1151.1010 ! ! ! !Screen size: 1366 x 768 32 bits ! ! ! !Number of Monitors: 1 ! ! ! !Path: D:/Scilab/scilab-6.0.0-beta-32/bin;D:\Scilab\scilab-5.5.2-32\bin;C:\Program Files (x86)\GoldMine! !\;C:\ProgramData\Oracle\Java\javapath;d:\Scilab\scicoslab-4.4.1\bin;C:\Windows\system32;C:\Windows;C:\! !Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technolog! !ies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\cygwin\bin;C:\Program! ! Files (x86)\AMD\ATI.ACE\Core-Static ! ! ! !ComSpec: C:\Windows\system32\cmd.exe ! ! ! !TMP : C:\Users\chinluh\AppData\Local\Temp ! ! ! !TEMP: C:\Users\chinluh\AppData\Local\Temp On 15/3/2016 7:33 PM, Cl?ment David wrote: > Hi, > > Please post a detailed bug with all these information and your configuration. We usually only check > the dynamic linking feature with a reduced set of compilers and your configuration might be a not > checked one . > > Thanks in advance, > > -- > Cl?ment David > > > Le mardi 15 mars 2016 ? 16:09 +0800, Tan Chin Luh a ?crit : >> Hi again, >> >> after looking into more details, I notice that the builder is trying to include some files which >> are not in the c gateway folder: >> >> tbx_build_gateway("skeleton_c", .. >> ["c_sum","sci_csum", "csci"; ... >> "c_sub","sci_csub", "csci"; ... >> "c_multiplybypi","sci_multiplybypi", "csci"; ... >> "foo","sci_foo", "csci"; ... >> "c_error","sci_cerror", "csci"; >> "c_sum6","sci_csum6", "csci6"; ... >> "c_sub6","sci_csub6", "csci6"; ... >> "c_multiplybypi6","sci_multiplybypi6", "csci6"; ... >> "foo6","sci_foo6", "csci6"; ... >> "c_error6","sci_cerror6", "csci6"], .. >> ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", ... >> "sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"], >> .. >> get_absolute_file_path("builder_gateway_c.sce"), .. >> ["../../src/c/libcsum"], .. >> "", .. >> includes_src_c); >> >> >> After removing those files the compilation of the C gateway is successful. >> >> tbx_build_gateway("skeleton_c", .. >> ["c_sum","sci_csum", "csci"; ... >> "c_sub","sci_csub", "csci"; ... >> "c_multiplybypi","sci_multiplybypi", "csci"; ... >> "foo","sci_foo", "csci"; ... >> "c_error","sci_cerror", "csci";], .. >> ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], .. >> get_absolute_file_path("builder_gateway_c.sce"), .. >> ["../../src/c/libcsum"], .. >> "", .. >> includes_src_c); >> >> >> However, now it stopped at cpp gateway building, which point to some error in the internal.hxx >> >> Building gateway... >> Generate a gateway file >> Generate a loader file >> Generate a Makefile >> Running the makefile >> Compilation of sci_cerror.c >> Compilation of sci_csub.c >> Compilation of sci_csum.c >> Compilation of sci_foo.c >> Compilation of sci_multiplybypi.c >> Compilation of skeleton_c.cpp >> Compilation of skeleton_c.h >> Compilation of skeleton_c.hxx >> Building shared library (be patient) >> Generate a cleaner file >> Generate a gateway file >> Generate a loader file >> Generate a Makefile >> Running the makefile >> Compilation of sci_fsum.c >> Compilation of skeleton_fortran.cpp >> Compilation of skeleton_fortran.h >> Compilation of skeleton_fortran.hxx >> Building shared library (be patient) >> Generate a cleaner file >> Generate a gateway file >> Generate a loader file >> Generate a Makefile >> Running the makefile >> Compilation of sci_cpp_find.cxx >> Compilation of sci_cpperror.cpp >> Compilation of sci_cppfoo.cpp >> Compilation of sci_cppmultiplybypi.cpp >> Compilation of sci_cppsub.cpp >> Compilation of sci_cppsum.cpp >> Compilation of skeleton_cpp.cpp >> Compilation of skeleton_cpp.h >> Compilation of skeleton_cpp.hxx >> Building shared library (be patient) >> >> !------------- Compile file sci_cpperror.cpp ----------- >> --- ! >> ! >> ! >> ! IF NOT EXIST Release mkdir >> Release ! >> ! >> ! >> !sci_cpperror.cpp >> ! >> ! >> ! >> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(227) : error C2143: syntax >> erro! >> !r : missing ',' before >> '...' ! >> ! >> ! >> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : error C2061: syntax >> erro! >> !r : identifier >> 'A' ! >> ! >> ! >> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(265) : error C2780: 'T >> *types::In! >> !ternalType::checkRef(T *,F)' : expects 2 arguments - 4 >> provided ! >> ! >> ! >> ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see >> declaration ! >> !of >> 'types::InternalType::checkRef' >> ! >> ! >> ! >> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(288) : error C2780: 'T >> *types::In! >> !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 >> provided ! >> ! >> ! >> ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see >> declaration ! >> !of >> 'types::InternalType::checkRef' >> ! >> ! >> ! >> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(310) : error C2780: 'T >> *types::In! >> !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 >> provided ! >> ! >> ! >> ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see >> declaration ! >> !of >> 'types::InternalType::checkRef' >> ! >> ! >> ! >> !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' >> : ret! >> !urn code >> '0x2' ! >> ! >> ! >> !Stop. >> ! >> at line 36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) >> at line 70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\dynamic_link\macros\ilib_compile.sci line 86 ) >> at line 115 of function ilib_build ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\dynamic_link\macros\ilib_build.sci line 128 ) >> at line 134 of function tbx_build_gateway ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) >> at line 17 of function builder_gw_cpp ( D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce line 19 ) >> at line 25 of executed file D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce >> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >> at line 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) >> at line 6 of function builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) >> at line 1 of executed file D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce >> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >> at line 32 of function tbx_builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >> 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) >> at line 32 of function main_builder ( D:\Scilab\scilab-6.0.0-beta- >> 32\contrib\toolbox_skeleton\builder.sce line 40 ) >> at line 48 of executed file D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce >> >> ilib_compile: Error while executing Makelib.mak. >> >> Thanks again. >> >> Regards, >> Chin Luh >> >> >> >> >> On 15/3/2016 10:23 AM, Tan Chin Luh wrote: >>> Hi Clement, >>> >>> thanks for your prompt reply. >>> >>> yes, it fixed the "nmake" error on the 64 -bit versions. After apply the fix, both 32 and 64 >>> bits now stop at the same error during "building gateway" >>> >>> ilib_build: Wrong value for input argument #3: existing file(s) expected. >>> >>> p/s: should I confirm it is a bug first before I post on bugzilla next time? let me know the >>> best way to do this. thanks. :) >>> >>> >>> Thanks again. >>> >>> Regards, >>> Chin Luh >>> >>> >>> >>> On 14/3/2016 8:37 PM, Cl?ment David wrote: >>>> Hi Tan, >>>> >>>> Thanks for the information ; this is already fixed [1] ;) do not hesitate to post a bug on >>>> bugzilla.scilab.org next time. >>>> >>>> [1:] http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618be1a >>>> a >>>> >>>> Regards, >>>> >>>> -- >>>> Cl?ment David >>>> >>>> Le lundi 14 mars 2016 ? 09:34 +0800, Tan Chin Luh a ?crit : >>>>> Hi, >>>>> >>>>> I was trying to convert some of the modules to version 6 but facing some issues. >>>>> >>>>> Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation are both >>>>> successful. >>>>> >>>>> More Info on my machine : >>>>> 1. Windows 10 Pro 64 bits >>>>> 2. Scilab 6 Beta 1 32 bits >>>>> 3. Compiler checking : >>>>> --> haveacompiler >>>>> ans = >>>>> T >>>>> --> findmsvccompiler >>>>> ans = >>>>> msvc110express >>>>> >>>>> Similar errors could be reproduce by compiling the toolbox_skeleton comes with the Scilab >>>>> installation: >>>>> >>>>> ******Error while executing builder.sce under Scilab 6 beta 1 32 bits >>>>> version*********************** >>>>> --> exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1) >>>>> Building macros... >>>>> -- Creation of [toolbox_skeletonlib] (Macros) -- >>>>> Building sources... >>>>> Generate a loader file >>>>> Generate a Makefile >>>>> Running the Makefile >>>>> Compilation of fsum.f >>>>> Building shared library (be patient) >>>>> Generate a cleaner file >>>>> Generate a loader file >>>>> Generate a Makefile >>>>> Running the Makefile >>>>> Compilation of csum.c >>>>> Compilation of csub.c >>>>> Compilation of multiplybypi.c >>>>> Building shared library (be patient) >>>>> Generate a cleaner file >>>>> Building JAR library org.scilab.contrib.toolboxskeleton.jar >>>>> Compiling Java sources in D:\Scilab\scilab-6.0.0-beta- >>>>> 32\contrib\toolbox_skeleton\src\java\ >>>>> Creating JAR archive D:\Scilab\scilab-6.0.0-beta- >>>>> 32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar >>>>> Create loader script for Java loader.sce >>>>> Create cleaner script for Java cleaner.sce >>>>> Building gateway... >>>>> at line 55 of function ilib_build ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\modules\dynamic_link\macros\ilib_build.sci line 68 ) >>>>> at line 134 of function tbx_build_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) >>>>> at line 10 of function builder_gw_c ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 ) >>>>> at line 19 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>> 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce >>>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>>> at line 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) >>>>> at line 6 of function builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) >>>>> at line 1 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce >>>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>>> at line 32 of function tbx_builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) >>>>> at line 32 of function main_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>> 32\contrib\toolbox_skeleton\builder.sce line 40 ) >>>>> at line 48 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>> 32\contrib\toolbox_skeleton\builder.sce >>>>> >>>>> ilib_build: Wrong value for input argument #3: existing file(s) expected. >>>>> *********************** >>>>> >>>>> >>>>> ******Error while executing builder.sce under Scilab 6 beta 1 64 bits >>>>> version*********************** >>>>> --> exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1) >>>>> Building macros... >>>>> -- Creation of [toolbox_skeletonlib] (Macros) -- >>>>> Building sources... >>>>> Generate a loader file >>>>> Generate a Makefile >>>>> Running the Makefile >>>>> Compilation of fsum.f >>>>> Building shared library (be patient) >>>>> >>>>> !'nmake' is not recognized as an internal or external command, ! >>>>> ! ! >>>>> !operable program or batch file. ! >>>>> at line 36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) >>>>> at line 70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\modules\dynamic_link\macros\ilib_compile.sci line 86 ) >>>>> at line 104 of function ilib_for_link ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\modules\dynamic_link\macros\ilib_for_link.sci line 118 ) >>>>> at line 29 of function tbx_build_src ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\modules\modules_manager\macros\tbx_build_src.sci line 44 ) >>>>> at line 3 of function builder_fortran ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 ) >>>>> at line -1 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>> 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce >>>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>>> at line 49 of function tbx_builder_src_lang ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 ) >>>>> at line 4 of function builder_src ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\contrib\toolbox_skeleton\src\builder_src.sce line 6 ) >>>>> at line -4 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>> 64\contrib\toolbox_skeleton\src\builder_src.sce >>>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>>> at line 32 of function tbx_builder_src ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\modules\modules_manager\macros\tbx_builder_src.sci line 48 ) >>>>> at line 31 of function main_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>> 64\contrib\toolbox_skeleton\builder.sce line 39 ) >>>>> at line 48 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>> 64\contrib\toolbox_skeleton\builder.sce >>>>> >>>>> ilib_compile: Error while executing Makelib.mak. >>>>> >>>>> *********************** >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Tue Mar 15 15:58:21 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Tue, 15 Mar 2016 07:58:21 -0700 (MST) Subject: [Scilab-users] SS modeling using Identification tool box Message-ID: <1458053901647-4033740.post@n3.nabble.com> I could get ARX model using the data generated by first order delay + dead time transfer function model as shown below: //ARX model ID z=poly(0,'z'); h=(0.066/(z-0.934))*(1/z^10) u=zeros(1,200); for i=10:1:100 u(1,i)=1; end for i=101:1:200 u(1,i)=0.5; end t=1:1:200; y=flts(u,tf2ss(h)); //step response plot(t,y,t,u) // figure(2) [m] = arIdent(y,u,y,u,1:4,1:4,0,0:10,0); //[fit, ys] = valSim(m.a, m.b, yv, uv); [fit, ys] = valSim(m.a, m.b, y, u); plot(y); Howeverm using same data, I faced error message if I tried to get SS model with following commnds: //SS Model ID yi=y(1:90);ui=u(1:90); yv=y(91:$);uv=u(91:$); yv=y;uv=u; [m,A,B,C,D,K,R,x0,fit,fitTable] = subspaceIdent(yi,ui,yv,uv,[6:8],[2:4],0,0); [yp x] = lsim(A-K*C,[K B-K*D],C,[zeros(size(D,1),size(yv,2)) D],[yv';uv'],x0); // prediction plot(yv); plot(yp,'-r') [Ds,NUM,chi]=ss2tf(m) subspaceIdent(yi,ui,yv,uv,[6:8],[2:4],0,0); <== This command made following error messages: -->[m,A,B,C,D,K,R,x0,fit,fitTable] = subspaceIdent(yi,ui,yv,uv,[6:8],[2:4],0,0); !--error 27 zero division... at line 13 of function myhouseholder called by : at line 9 of function qrhouse called by : at line 191 of function subid called by : at line 89 of function subspaceIdent called by : i,yv,uv,[6:8],[2:4],0,0) May I ask how I can identify the SS model using this quite simple data set? Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/SS-modeling-using-Identification-tool-box-tp4033740.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Tue Mar 15 17:38:33 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 15 Mar 2016 17:38:33 +0100 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <56E7F6AC.2020003@tritytech.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> <1457959068.2472.41.camel@scilab-enterprises.com> <56E77231.2010307@tritytech.com> <56E7C33E.3080002@tritytech.com> <1458041581.2469.12.camel@scilab-enterprises.com> <56E7F6AC.2020003@tritytech.com> Message-ID: <1458059913.2469.14.camel@scilab-enterprises.com> Hi, Thanks for the information, I posted a new bug as?http://bugzilla.scilab.org/show_bug.cgi?id=14465?. You could add yourself to the CC list to track this issue. -- Cl?ment Le mardi 15 mars 2016 ? 19:49 +0800, Tan Chin Luh a ?crit?: > Hi,? > > Please find below for the details, let me know if I miss anything.? > Thanks. > > Regards, > Chin Luh > > In general: > 1. Windows 10 Pro 64 bits? > 2. Scilab 6 Beta 1 32 bits? > 3. Microsoft Visual Studio 2012 Express > 4. Same configuration works perfectly on Scilab 5.5.2 (both 32 and 64 bits) on the compilation of > toolbox_skeleton.? > The output of ver:? > --> ver > ?ans? = > > !Scilab Version:???????????????????? 6.0.0.1455102908????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????? ! > !Operating System:?????????????????? Windows 8 6.2???????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????? ! > !Java version:?????????????????????? 1.8.0_40????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????? ! > !Java runtime information:?????????? Java(TM) SE Runtime Environment (build 1.8.0_40-b26)????? ! > !????????????????????????????????????????????????????????????????????????????????????????????? ! > !Java Virtual Machine information:?? Java HotSpot(TM) Client VM (build 25.40-b25, mixed mode)? ! > !????????????????????????????????????????????????????????????????????????????????????????????? ! > !Vendor specification:?????????????? Oracle Corporation???? > > Output of getdebuginfo() > > --> [dynamic_info, static_info] = getdebuginfo() > ?static_info? =? > > !Version: scilab-6.0.0-beta-1????????????????? ! > !????????????????????????????????????????????? ! > !Compilation date: Feb 10 2016???????????????? ! > !????????????????????????????????????????????? ! > !Compilation time: 13:28:04??????????????????? ! > !????????????????????????????????????????????? ! > !Compiler Architecture: x86??????????????????? ! > !????????????????????????????????????????????? ! > !Compiled with Microsoft compiler (180040629)? ! > !????????????????????????????????????????????? ! > !BLAS library optimized version: MKL?????????? ! > !????????????????????????????????????????????? ! > !XML version: 2.9.1??????????????????????????? ! > !????????????????????????????????????????????? ! > !Tcl/Tk: Enable??????????????????????????????? ! > !????????????????????????????????????????????? ! > !TCL version: 8.5.9??????????????????????????? ! > !????????????????????????????????????????????? ! > !TK version: 8.5.9???????????????????????????? ! > !????????????????????????????????????????????? ! > !Path separator: ;???????????????????????????? ! > !????????????????????????????????????????????? ! > !Directory separator: \??????????????????????? ! > !????????????????????????????????????????????? ! > !PCRE Version: 8.21??????????????????????????? ! > > ?dynamic_info? =? > > !Memory in use:????? 27 > %????????????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Total Physical Memory (Kbytes): > 8181612?????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Free Physical Memory (Kbytes): > 5970236??????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Total Paging File (Kbytes): > 9492332?????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Free Paging File (Kbytes): > 6731004??????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Total Virtual Memory (Kbytes): > 2097024??????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Free Virtual Memory (Kbytes):? > 961684???????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Free Extended Memory (Kbytes):?????? > 0??????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Operating System: Windows 8 > x64?????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Intel(R) Core(TM) i5 CPU?????? M 560? @ > 2.67GHz?????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Number of processors: > 4?????????????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Number of Video cards: > 1????????????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Video card #0: Intel(R) HD > Graphics?????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Primary Video card driver version: > 15.201.1151.1010?????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Screen size: 1366 x 768 32 > bits?????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Number of Monitors: > 1???????????????????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !Path: D:/Scilab/scilab-6.0.0-beta-32/bin;D:\Scilab\scilab-5.5.2-32\bin;C:\Program Files > (x86)\GoldMine! > !\;C:\ProgramData\Oracle\Java\javapath;d:\Scilab\scicoslab- > 4.4.1\bin;C:\Windows\system32;C:\Windows;C:\! > !Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI > Technolog! > !ies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL > Server\110\Tools\Binn\;C:\cygwin\bin;C:\Program! > ! Files (x86)\AMD\ATI.ACE\Core- > Static????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !ComSpec: > C:\Windows\system32\cmd.exe????????????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !TMP : > C:\Users\chinluh\AppData\Local\Temp???????????????????????????????????????????????????????????? ! > !????????????????????????????????????????????????????????????????????????????????????????????????? > ???? ! > !TEMP: C:\Users\chinluh\AppData\Local\Temp?? > > On 15/3/2016 7:33 PM, Cl?ment David wrote: > > Hi, > > > > Please post a detailed bug with all these information and your configuration. We usually only > > check > > the dynamic linking feature with a reduced set of compilers and your configuration might be a > > not > > checked one . > > > > Thanks in advance, > > > > -- > > Cl?ment David > > > > > > Le mardi 15 mars 2016 ? 16:09 +0800, Tan Chin Luh a ?crit?: > > > Hi again, > > > > > > after looking into more details, I notice that the builder is trying to include some files > > > which > > > are not in the c gateway folder: > > > > > > tbx_build_gateway("skeleton_c", .. > > > ????["c_sum","sci_csum", "csci"; ... > > > ????"c_sub","sci_csub", "csci"; ... > > > ????"c_multiplybypi","sci_multiplybypi", "csci"; ... > > > ????"foo","sci_foo", "csci"; ... > > > ????"c_error","sci_cerror", "csci";? > > > ????"c_sum6","sci_csum6", "csci6"; ... > > > ????"c_sub6","sci_csub6", "csci6"; ... > > > ????"c_multiplybypi6","sci_multiplybypi6", "csci6"; ... > > > ????"foo6","sci_foo6", "csci6"; ... > > > ????"c_error6","sci_cerror6", "csci6"], .. > > > ????["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", ... > > > ????"sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"], > > > ?.. > > > ????get_absolute_file_path("builder_gateway_c.sce"), .. > > > ????["../../src/c/libcsum"], .. > > > ????"", .. > > > ????includes_src_c); > > > > > > > > > After removing those files the compilation of the C gateway is successful.? > > > > > > tbx_build_gateway("skeleton_c", .. > > > ["c_sum","sci_csum", "csci"; ... > > > "c_sub","sci_csub", "csci"; ... > > > "c_multiplybypi","sci_multiplybypi", "csci"; ... > > > "foo","sci_foo", "csci"; ... > > > "c_error","sci_cerror", "csci";], .. > > > ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], .. > > > get_absolute_file_path("builder_gateway_c.sce"), .. > > > ["../../src/c/libcsum"], .. > > > "", .. > > > includes_src_c); > > > > > > > > > However, now it stopped at cpp gateway building, which point to some error in the internal.hxx > > > > > > Building gateway... > > > ?? Generate a gateway file > > > ?? Generate a loader file > > > ?? Generate a Makefile > > > ?? Running the makefile > > > ?? Compilation of sci_cerror.c > > > ?? Compilation of sci_csub.c > > > ?? Compilation of sci_csum.c > > > ?? Compilation of sci_foo.c > > > ?? Compilation of sci_multiplybypi.c > > > ?? Compilation of skeleton_c.cpp > > > ?? Compilation of skeleton_c.h > > > ?? Compilation of skeleton_c.hxx > > > ?? Building shared library (be patient) > > > ?? Generate a cleaner file > > > ?? Generate a gateway file > > > ?? Generate a loader file > > > ?? Generate a Makefile > > > ?? Running the makefile > > > ?? Compilation of sci_fsum.c > > > ?? Compilation of skeleton_fortran.cpp > > > ?? Compilation of skeleton_fortran.h > > > ?? Compilation of skeleton_fortran.hxx > > > ?? Building shared library (be patient) > > > ?? Generate a cleaner file > > > ?? Generate a gateway file > > > ?? Generate a loader file > > > ?? Generate a Makefile > > > ?? Running the makefile > > > ?? Compilation of sci_cpp_find.cxx > > > ?? Compilation of sci_cpperror.cpp > > > ?? Compilation of sci_cppfoo.cpp > > > ?? Compilation of sci_cppmultiplybypi.cpp > > > ?? Compilation of sci_cppsub.cpp > > > ?? Compilation of sci_cppsum.cpp > > > ?? Compilation of skeleton_cpp.cpp > > > ?? Compilation of skeleton_cpp.h > > > ?? Compilation of skeleton_cpp.hxx > > > ?? Building shared library (be patient) > > > > > > !------------- Compile file sci_cpperror.cpp ----------- > > > ---??????????????????????????????????????????? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !??? IF NOT EXIST? Release mkdir > > > Release????????????????????????????????????????????????????????????????? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !sci_cpperror.cpp????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(227) : error C2143: > > > syntax > > > erro! > > > !r : missing ',' before > > > '...'????????????????????????????????????????????????????????????????????????? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : error C2061: > > > syntax > > > erro! > > > !r : identifier > > > 'A'??????????????????????????????????????????????????????????????????????????????????? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(265) : error C2780: 'T > > > *types::In! > > > !ternalType::checkRef(T *,F)' : expects 2 arguments - 4 > > > provided?????????????????????????????????????? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !??????? d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see > > > declaration ! > > > !of > > > 'types::InternalType::checkRef'??????????????????????????????????????????????????????????????? > > > ???? > > > ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(288) : error C2780: 'T > > > *types::In! > > > !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 > > > provided?????????????????????????????????????? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !??????? d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see > > > declaration ! > > > !of > > > 'types::InternalType::checkRef'??????????????????????????????????????????????????????????????? > > > ???? > > > ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(310) : error C2780: 'T > > > *types::In! > > > !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 > > > provided?????????????????????????????????????? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !??????? d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see > > > declaration ! > > > !of > > > 'types::InternalType::checkRef'??????????????????????????????????????????????????????????????? > > > ???? > > > ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio > > > 11.0\VC\BIN\cl.EXE"' > > > : ret! > > > !urn code > > > '0x2'??????????????????????????????????????????????????????????????????????????????????????? ! > > > !????????????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > !Stop.???????????????????????????????????????????????????????????????????????????????????????? > > > ???? > > > ???? ! > > > at line??? 36 of function dlwCompile?????????????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) > > > at line??? 70 of function ilib_compile???????????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\modules\dynamic_link\macros\ilib_compile.sci line 86 ) > > > at line?? 115 of function ilib_build?????????????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\modules\dynamic_link\macros\ilib_build.sci line 128 ) > > > at line?? 134 of function tbx_build_gateway??????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) > > > at line??? 17 of function builder_gw_cpp?????????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce line 19 ) > > > at line??? 25 of executed file D:\Scilab\scilab-6.0.0-beta- > > > 32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce > > > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) > > > at line??? 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta- > > > 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) > > > at line???? 6 of function builder_gateway????????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) > > > at line???? 1 of executed file D:\Scilab\scilab-6.0.0-beta- > > > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce > > > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) > > > at line??? 32 of function tbx_builder_gateway????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) > > > at line??? 32 of function main_builder???????????? ( D:\Scilab\scilab-6.0.0-beta- > > > 32\contrib\toolbox_skeleton\builder.sce line 40 ) > > > at line??? 48 of executed file D:\Scilab\scilab-6.0.0-beta- > > > 32\contrib\toolbox_skeleton\builder.sce > > > > > > ilib_compile: Error while executing Makelib.mak. > > > > > > Thanks again. > > > > > > Regards, > > > Chin Luh > > > > > > ? > > > > > > > > > On 15/3/2016 10:23 AM, Tan Chin Luh wrote: > > > > Hi Clement,? > > > > > > > > thanks for your prompt reply.? > > > > > > > > yes, it fixed the "nmake" error on the 64 -bit versions. After apply the fix, both 32 and 64 > > > > bits now stop at the same error during "building gateway"? > > > > > > > > ilib_build: Wrong value for input argument #3: existing file(s) expected.? > > > > > > > > p/s: should I confirm it is a bug first before I post on bugzilla next time? let me know the > > > > best way to do this. thanks. :)? > > > > > > > > > > > > Thanks again.? > > > > > > > > Regards,? > > > > Chin Luh? > > > > > > > > > > > > > > > > On 14/3/2016 8:37 PM, Cl?ment David wrote:? > > > > > Hi Tan,? > > > > > > > > > > Thanks for the information ; this is already fixed [1] ;) do not hesitate to post a bug > > > > > on? > > > > > bugzilla.scilab.org next time.? > > > > > > > > > > [1:] http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618 > > > > > be1a > > > > > a > > > > > > > > > > Regards,? > > > > > > > > > > --? > > > > > Cl?ment David? > > > > > > > > > > Le lundi 14 mars 2016 ? 09:34 +0800, Tan Chin Luh a ?crit :? > > > > > > Hi,? > > > > > > > > > > > > I was trying to convert some of the modules to version 6 but facing some issues.? > > > > > > > > > > > > Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation are both? > > > > > > successful.? > > > > > > > > > > > > More Info on my machine :? > > > > > > 1. Windows 10 Pro 64 bits? > > > > > > 2. Scilab 6 Beta 1 32 bits? > > > > > > 3. Compiler checking :? > > > > > > --> haveacompiler? > > > > > > ? ans? =? > > > > > > ?? T? > > > > > > --> findmsvccompiler? > > > > > > ? ans? =? > > > > > > ? msvc110express? > > > > > > > > > > > > ? Similar errors could be reproduce by compiling the toolbox_skeleton comes with the > > > > > > Scilab? > > > > > > installation:? > > > > > > > > > > > > ******Error while executing builder.sce under Scilab 6 beta 1 32 bits? > > > > > > version***********************? > > > > > > --> exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1) > > > > > > Building macros...? > > > > > > -- Creation of [toolbox_skeletonlib] (Macros) --? > > > > > > Building sources...? > > > > > > ??? Generate a loader file? > > > > > > ??? Generate a Makefile? > > > > > > ??? Running the Makefile? > > > > > > ??? Compilation of fsum.f? > > > > > > ??? Building shared library (be patient)? > > > > > > ??? Generate a cleaner file? > > > > > > ??? Generate a loader file? > > > > > > ??? Generate a Makefile? > > > > > > ??? Running the Makefile? > > > > > > ??? Compilation of csum.c? > > > > > > ??? Compilation of csub.c? > > > > > > ??? Compilation of multiplybypi.c? > > > > > > ??? Building shared library (be patient)? > > > > > > ??? Generate a cleaner file? > > > > > > ??? Building JAR library org.scilab.contrib.toolboxskeleton.jar? > > > > > > ??? Compiling Java sources in D:\Scilab\scilab-6.0.0-beta- > > > > > > 32\contrib\toolbox_skeleton\src\java\? > > > > > > ??? Creating JAR archive D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar? > > > > > > ??? Create loader script for Java loader.sce? > > > > > > ??? Create cleaner script for Java cleaner.sce? > > > > > > Building gateway...? > > > > > > at line??? 55 of function ilib_build?????????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\modules\dynamic_link\macros\ilib_build.sci line 68 )? > > > > > > at line?? 134 of function tbx_build_gateway??????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 )? > > > > > > at line??? 10 of function builder_gw_c???????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 )? > > > > > > at line??? 19 of executed file D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce? > > > > > > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\modules\modules_manager\macros\tbx_builder.sci line 26 )? > > > > > > at line??? 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 )? > > > > > > at line???? 6 of function builder_gateway????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 )? > > > > > > at line???? 1 of executed file D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce? > > > > > > at line??? 13 of function tbx_builder????????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\modules\modules_manager\macros\tbx_builder.sci line 26 )? > > > > > > at line??? 32 of function tbx_builder_gateway????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 )? > > > > > > at line??? 32 of function main_builder???????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 32\contrib\toolbox_skeleton\builder.sce line 40 )? > > > > > > at line??? 48 of executed file D:\Scilab\scilab-6.0.0-beta- > > > > > > 32\contrib\toolbox_skeleton\builder.sce? > > > > > > > > > > > > ilib_build: Wrong value for input argument #3: existing file(s) expected.? > > > > > > ***********************? > > > > > > > > > > > > > > > > > > ******Error while executing builder.sce under Scilab 6 beta 1 64 bits? > > > > > > version***********************? > > > > > > --> exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1) > > > > > > Building macros...? > > > > > > -- Creation of [toolbox_skeletonlib] (Macros) --? > > > > > > Building sources...? > > > > > > ??? Generate a loader file? > > > > > > ??? Generate a Makefile? > > > > > > ??? Running the Makefile? > > > > > > ??? Compilation of fsum.f? > > > > > > ??? Building shared library (be patient)? > > > > > > > > > > > > !'nmake' is not recognized as an internal or external command,? !? > > > > > > !?????????????????????????????????????????????????????????????? !? > > > > > > !operable program or batch file.??????????????????????????????? !? > > > > > > at line??? 36 of function dlwCompile?????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 )? > > > > > > at line??? 70 of function ilib_compile???????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\modules\dynamic_link\macros\ilib_compile.sci line 86 )? > > > > > > at line?? 104 of function ilib_for_link??????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\modules\dynamic_link\macros\ilib_for_link.sci line 118 )? > > > > > > at line??? 29 of function tbx_build_src??????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\modules\modules_manager\macros\tbx_build_src.sci line 44 )? > > > > > > at line???? 3 of function builder_fortran????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 )? > > > > > > at line??? -1 of executed file D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce? > > > > > > at line??? 13 of function tbx_builder????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\modules\modules_manager\macros\tbx_builder.sci line 26 )? > > > > > > at line??? 49 of function tbx_builder_src_lang ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 )? > > > > > > at line???? 4 of function builder_src????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\contrib\toolbox_skeleton\src\builder_src.sce line 6 )? > > > > > > at line??? -4 of executed file D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\contrib\toolbox_skeleton\src\builder_src.sce? > > > > > > at line??? 13 of function tbx_builder????????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\modules\modules_manager\macros\tbx_builder.sci line 26 )? > > > > > > at line??? 32 of function tbx_builder_src????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\modules\modules_manager\macros\tbx_builder_src.sci line 48 )? > > > > > > at line??? 31 of function main_builder???????? ( D:\Scilab\scilab-6.0.0-beta-? > > > > > > 64\contrib\toolbox_skeleton\builder.sce line 39 )? > > > > > > at line??? 48 of executed file D:\Scilab\scilab-6.0.0-beta- > > > > > > 64\contrib\toolbox_skeleton\builder.sce? > > > > > > > > > > > > ilib_compile: Error while executing Makelib.mak.? > > > > > > > > > > > > ***********************? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________? > > > > > > 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 > > _______________________________________________ > > 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 fujimoto2005 at gmail.com Wed Mar 16 07:35:12 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Tue, 15 Mar 2016 23:35:12 -0700 (MST) Subject: [Scilab-users] the name of a script Message-ID: <1458110112609-4033744.post@n3.nabble.com> Hi, all Is there any ways to get the name of script when I am executing it ? I want to write a code to get the name of the script containing that code. For example , suppose I execute a script named with 'abc.sce' and I want to have a line which get the script name 'abc.sce' . Best regards -- View this message in context: http://mailinglists.scilab.org/the-name-of-a-script-tp4033744.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j-lan at online.no Wed Mar 16 09:23:37 2016 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 16 Mar 2016 09:23:37 +0100 Subject: [Scilab-users] the name of a script In-Reply-To: <1458110112609-4033744.post@n3.nabble.com> References: <1458110112609-4033744.post@n3.nabble.com> Message-ID: <56E91809.9070502@online.no> On 16.03.2016 07:35, fujimoto2005 wrote: > Hi, all > Is there any ways to get the name of script when I am executing it ? > I want to write a code to get the name of the script containing that code. > For example , suppose I execute a script named with 'abc.sce' and I want to > have a line which get the script name 'abc.sce' . > > Best regards > > a=gethistory(); b=strsplit(a($), [filesep();'''']); disp(b($-1)); J? -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Wed Mar 16 09:58:56 2016 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 16 Mar 2016 16:58:56 +0800 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <1458059913.2469.14.camel@scilab-enterprises.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> <1457959068.2472.41.camel@scilab-enterprises.com> <56E77231.2010307@tritytech.com> <56E7C33E.3080002@tritytech.com> <1458041581.2469.12.camel@scilab-enterprises.com> <56E7F6AC.2020003@tritytech.com> <1458059913.2469.14.camel@scilab-enterprises.com> Message-ID: <56E92050.4040808@tritytech.com> thanks. On 16/3/2016 12:38 AM, Cl?ment David wrote: > Hi, > > Thanks for the information, I posted a new bug as http://bugzilla.scilab.org/show_bug.cgi?id=14465 . > You could add yourself to the CC list to track this issue. > > -- > Cl?ment > > Le mardi 15 mars 2016 ? 19:49 +0800, Tan Chin Luh a ?crit : >> Hi, >> >> Please find below for the details, let me know if I miss anything. >> Thanks. >> >> Regards, >> Chin Luh >> >> In general: >> 1. Windows 10 Pro 64 bits >> 2. Scilab 6 Beta 1 32 bits >> 3. Microsoft Visual Studio 2012 Express >> 4. Same configuration works perfectly on Scilab 5.5.2 (both 32 and 64 bits) on the compilation of >> toolbox_skeleton. >> The output of ver: >> --> ver >> ans = >> >> !Scilab Version: 6.0.0.1455102908 ! >> ! ! >> !Operating System: Windows 8 6.2 ! >> ! ! >> !Java version: 1.8.0_40 ! >> ! ! >> !Java runtime information: Java(TM) SE Runtime Environment (build 1.8.0_40-b26) ! >> ! ! >> !Java Virtual Machine information: Java HotSpot(TM) Client VM (build 25.40-b25, mixed mode) ! >> ! ! >> !Vendor specification: Oracle Corporation >> >> Output of getdebuginfo() >> >> --> [dynamic_info, static_info] = getdebuginfo() >> static_info = >> >> !Version: scilab-6.0.0-beta-1 ! >> ! ! >> !Compilation date: Feb 10 2016 ! >> ! ! >> !Compilation time: 13:28:04 ! >> ! ! >> !Compiler Architecture: x86 ! >> ! ! >> !Compiled with Microsoft compiler (180040629) ! >> ! ! >> !BLAS library optimized version: MKL ! >> ! ! >> !XML version: 2.9.1 ! >> ! ! >> !Tcl/Tk: Enable ! >> ! ! >> !TCL version: 8.5.9 ! >> ! ! >> !TK version: 8.5.9 ! >> ! ! >> !Path separator: ; ! >> ! ! >> !Directory separator: \ ! >> ! ! >> !PCRE Version: 8.21 ! >> >> dynamic_info = >> >> !Memory in use: 27 >> % ! >> ! >> ! >> !Total Physical Memory (Kbytes): >> 8181612 ! >> ! >> ! >> !Free Physical Memory (Kbytes): >> 5970236 ! >> ! >> ! >> !Total Paging File (Kbytes): >> 9492332 ! >> ! >> ! >> !Free Paging File (Kbytes): >> 6731004 ! >> ! >> ! >> !Total Virtual Memory (Kbytes): >> 2097024 ! >> ! >> ! >> !Free Virtual Memory (Kbytes): >> 961684 ! >> ! >> ! >> !Free Extended Memory (Kbytes): >> 0 ! >> ! >> ! >> !Operating System: Windows 8 >> x64 ! >> ! >> ! >> !Intel(R) Core(TM) i5 CPU M 560 @ >> 2.67GHz ! >> ! >> ! >> !Number of processors: >> 4 ! >> ! >> ! >> !Number of Video cards: >> 1 ! >> ! >> ! >> !Video card #0: Intel(R) HD >> Graphics ! >> ! >> ! >> !Primary Video card driver version: >> 15.201.1151.1010 ! >> ! >> ! >> !Screen size: 1366 x 768 32 >> bits ! >> ! >> ! >> !Number of Monitors: >> 1 ! >> ! >> ! >> !Path: D:/Scilab/scilab-6.0.0-beta-32/bin;D:\Scilab\scilab-5.5.2-32\bin;C:\Program Files >> (x86)\GoldMine! >> !\;C:\ProgramData\Oracle\Java\javapath;d:\Scilab\scicoslab- >> 4.4.1\bin;C:\Windows\system32;C:\Windows;C:\! >> !Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI >> Technolog! >> !ies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL >> Server\110\Tools\Binn\;C:\cygwin\bin;C:\Program! >> ! Files (x86)\AMD\ATI.ACE\Core- >> Static ! >> ! >> ! >> !ComSpec: >> C:\Windows\system32\cmd.exe ! >> ! >> ! >> !TMP : >> C:\Users\chinluh\AppData\Local\Temp ! >> ! >> ! >> !TEMP: C:\Users\chinluh\AppData\Local\Temp >> >> On 15/3/2016 7:33 PM, Cl?ment David wrote: >>> Hi, >>> >>> Please post a detailed bug with all these information and your configuration. We usually only >>> check >>> the dynamic linking feature with a reduced set of compilers and your configuration might be a >>> not >>> checked one . >>> >>> Thanks in advance, >>> >>> -- >>> Cl?ment David >>> >>> >>> Le mardi 15 mars 2016 ? 16:09 +0800, Tan Chin Luh a ?crit : >>>> Hi again, >>>> >>>> after looking into more details, I notice that the builder is trying to include some files >>>> which >>>> are not in the c gateway folder: >>>> >>>> tbx_build_gateway("skeleton_c", .. >>>> ["c_sum","sci_csum", "csci"; ... >>>> "c_sub","sci_csub", "csci"; ... >>>> "c_multiplybypi","sci_multiplybypi", "csci"; ... >>>> "foo","sci_foo", "csci"; ... >>>> "c_error","sci_cerror", "csci"; >>>> "c_sum6","sci_csum6", "csci6"; ... >>>> "c_sub6","sci_csub6", "csci6"; ... >>>> "c_multiplybypi6","sci_multiplybypi6", "csci6"; ... >>>> "foo6","sci_foo6", "csci6"; ... >>>> "c_error6","sci_cerror6", "csci6"], .. >>>> ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", ... >>>> "sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"], >>>> .. >>>> get_absolute_file_path("builder_gateway_c.sce"), .. >>>> ["../../src/c/libcsum"], .. >>>> "", .. >>>> includes_src_c); >>>> >>>> >>>> After removing those files the compilation of the C gateway is successful. >>>> >>>> tbx_build_gateway("skeleton_c", .. >>>> ["c_sum","sci_csum", "csci"; ... >>>> "c_sub","sci_csub", "csci"; ... >>>> "c_multiplybypi","sci_multiplybypi", "csci"; ... >>>> "foo","sci_foo", "csci"; ... >>>> "c_error","sci_cerror", "csci";], .. >>>> ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], .. >>>> get_absolute_file_path("builder_gateway_c.sce"), .. >>>> ["../../src/c/libcsum"], .. >>>> "", .. >>>> includes_src_c); >>>> >>>> >>>> However, now it stopped at cpp gateway building, which point to some error in the internal.hxx >>>> >>>> Building gateway... >>>> Generate a gateway file >>>> Generate a loader file >>>> Generate a Makefile >>>> Running the makefile >>>> Compilation of sci_cerror.c >>>> Compilation of sci_csub.c >>>> Compilation of sci_csum.c >>>> Compilation of sci_foo.c >>>> Compilation of sci_multiplybypi.c >>>> Compilation of skeleton_c.cpp >>>> Compilation of skeleton_c.h >>>> Compilation of skeleton_c.hxx >>>> Building shared library (be patient) >>>> Generate a cleaner file >>>> Generate a gateway file >>>> Generate a loader file >>>> Generate a Makefile >>>> Running the makefile >>>> Compilation of sci_fsum.c >>>> Compilation of skeleton_fortran.cpp >>>> Compilation of skeleton_fortran.h >>>> Compilation of skeleton_fortran.hxx >>>> Building shared library (be patient) >>>> Generate a cleaner file >>>> Generate a gateway file >>>> Generate a loader file >>>> Generate a Makefile >>>> Running the makefile >>>> Compilation of sci_cpp_find.cxx >>>> Compilation of sci_cpperror.cpp >>>> Compilation of sci_cppfoo.cpp >>>> Compilation of sci_cppmultiplybypi.cpp >>>> Compilation of sci_cppsub.cpp >>>> Compilation of sci_cppsum.cpp >>>> Compilation of skeleton_cpp.cpp >>>> Compilation of skeleton_cpp.h >>>> Compilation of skeleton_cpp.hxx >>>> Building shared library (be patient) >>>> >>>> !------------- Compile file sci_cpperror.cpp ----------- >>>> --- ! >>>> ! >>>> >>>> ! >>>> ! IF NOT EXIST Release mkdir >>>> Release ! >>>> ! >>>> >>>> ! >>>> !sci_cpperror.cpp >>>> >>>> ! >>>> ! >>>> >>>> ! >>>> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(227) : error C2143: >>>> syntax >>>> erro! >>>> !r : missing ',' before >>>> '...' ! >>>> ! >>>> >>>> ! >>>> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : error C2061: >>>> syntax >>>> erro! >>>> !r : identifier >>>> 'A' ! >>>> ! >>>> >>>> ! >>>> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(265) : error C2780: 'T >>>> *types::In! >>>> !ternalType::checkRef(T *,F)' : expects 2 arguments - 4 >>>> provided ! >>>> ! >>>> >>>> ! >>>> ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see >>>> declaration ! >>>> !of >>>> 'types::InternalType::checkRef' >>>> >>>> ! >>>> ! >>>> >>>> ! >>>> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(288) : error C2780: 'T >>>> *types::In! >>>> !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 >>>> provided ! >>>> ! >>>> >>>> ! >>>> ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see >>>> declaration ! >>>> !of >>>> 'types::InternalType::checkRef' >>>> >>>> ! >>>> ! >>>> >>>> ! >>>> !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(310) : error C2780: 'T >>>> *types::In! >>>> !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 >>>> provided ! >>>> ! >>>> >>>> ! >>>> ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see >>>> declaration ! >>>> !of >>>> 'types::InternalType::checkRef' >>>> >>>> ! >>>> ! >>>> >>>> ! >>>> !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio >>>> 11.0\VC\BIN\cl.EXE"' >>>> : ret! >>>> !urn code >>>> '0x2' ! >>>> ! >>>> >>>> ! >>>> !Stop. >>>> >>>> ! >>>> at line 36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) >>>> at line 70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\modules\dynamic_link\macros\ilib_compile.sci line 86 ) >>>> at line 115 of function ilib_build ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\modules\dynamic_link\macros\ilib_build.sci line 128 ) >>>> at line 134 of function tbx_build_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) >>>> at line 17 of function builder_gw_cpp ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce line 19 ) >>>> at line 25 of executed file D:\Scilab\scilab-6.0.0-beta- >>>> 32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce >>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>> at line 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) >>>> at line 6 of function builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) >>>> at line 1 of executed file D:\Scilab\scilab-6.0.0-beta- >>>> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce >>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>> at line 32 of function tbx_builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) >>>> at line 32 of function main_builder ( D:\Scilab\scilab-6.0.0-beta- >>>> 32\contrib\toolbox_skeleton\builder.sce line 40 ) >>>> at line 48 of executed file D:\Scilab\scilab-6.0.0-beta- >>>> 32\contrib\toolbox_skeleton\builder.sce >>>> >>>> ilib_compile: Error while executing Makelib.mak. >>>> >>>> Thanks again. >>>> >>>> Regards, >>>> Chin Luh >>>> >>>> >>>> >>>> >>>> On 15/3/2016 10:23 AM, Tan Chin Luh wrote: >>>>> Hi Clement, >>>>> >>>>> thanks for your prompt reply. >>>>> >>>>> yes, it fixed the "nmake" error on the 64 -bit versions. After apply the fix, both 32 and 64 >>>>> bits now stop at the same error during "building gateway" >>>>> >>>>> ilib_build: Wrong value for input argument #3: existing file(s) expected. >>>>> >>>>> p/s: should I confirm it is a bug first before I post on bugzilla next time? let me know the >>>>> best way to do this. thanks. :) >>>>> >>>>> >>>>> Thanks again. >>>>> >>>>> Regards, >>>>> Chin Luh >>>>> >>>>> >>>>> >>>>> On 14/3/2016 8:37 PM, Cl?ment David wrote: >>>>>> Hi Tan, >>>>>> >>>>>> Thanks for the information ; this is already fixed [1] ;) do not hesitate to post a bug >>>>>> on >>>>>> bugzilla.scilab.org next time. >>>>>> >>>>>> [1:] http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618 >>>>>> be1a >>>>>> a >>>>>> >>>>>> Regards, >>>>>> >>>>>> -- >>>>>> Cl?ment David >>>>>> >>>>>> Le lundi 14 mars 2016 ? 09:34 +0800, Tan Chin Luh a ?crit : >>>>>>> Hi, >>>>>>> >>>>>>> I was trying to convert some of the modules to version 6 but facing some issues. >>>>>>> >>>>>>> Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation are both >>>>>>> successful. >>>>>>> >>>>>>> More Info on my machine : >>>>>>> 1. Windows 10 Pro 64 bits >>>>>>> 2. Scilab 6 Beta 1 32 bits >>>>>>> 3. Compiler checking : >>>>>>> --> haveacompiler >>>>>>> ans = >>>>>>> T >>>>>>> --> findmsvccompiler >>>>>>> ans = >>>>>>> msvc110express >>>>>>> >>>>>>> Similar errors could be reproduce by compiling the toolbox_skeleton comes with the >>>>>>> Scilab >>>>>>> installation: >>>>>>> >>>>>>> ******Error while executing builder.sce under Scilab 6 beta 1 32 bits >>>>>>> version*********************** >>>>>>> --> exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1) >>>>>>> Building macros... >>>>>>> -- Creation of [toolbox_skeletonlib] (Macros) -- >>>>>>> Building sources... >>>>>>> Generate a loader file >>>>>>> Generate a Makefile >>>>>>> Running the Makefile >>>>>>> Compilation of fsum.f >>>>>>> Building shared library (be patient) >>>>>>> Generate a cleaner file >>>>>>> Generate a loader file >>>>>>> Generate a Makefile >>>>>>> Running the Makefile >>>>>>> Compilation of csum.c >>>>>>> Compilation of csub.c >>>>>>> Compilation of multiplybypi.c >>>>>>> Building shared library (be patient) >>>>>>> Generate a cleaner file >>>>>>> Building JAR library org.scilab.contrib.toolboxskeleton.jar >>>>>>> Compiling Java sources in D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\contrib\toolbox_skeleton\src\java\ >>>>>>> Creating JAR archive D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar >>>>>>> Create loader script for Java loader.sce >>>>>>> Create cleaner script for Java cleaner.sce >>>>>>> Building gateway... >>>>>>> at line 55 of function ilib_build ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\modules\dynamic_link\macros\ilib_build.sci line 68 ) >>>>>>> at line 134 of function tbx_build_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) >>>>>>> at line 10 of function builder_gw_c ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 ) >>>>>>> at line 19 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce >>>>>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>>>>> at line 49 of function tbx_builder_gateway_lang ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 ) >>>>>>> at line 6 of function builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 ) >>>>>>> at line 1 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce >>>>>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>>>>> at line 32 of function tbx_builder_gateway ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 ) >>>>>>> at line 32 of function main_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\contrib\toolbox_skeleton\builder.sce line 40 ) >>>>>>> at line 48 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>>>> 32\contrib\toolbox_skeleton\builder.sce >>>>>>> >>>>>>> ilib_build: Wrong value for input argument #3: existing file(s) expected. >>>>>>> *********************** >>>>>>> >>>>>>> >>>>>>> ******Error while executing builder.sce under Scilab 6 beta 1 64 bits >>>>>>> version*********************** >>>>>>> --> exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1) >>>>>>> Building macros... >>>>>>> -- Creation of [toolbox_skeletonlib] (Macros) -- >>>>>>> Building sources... >>>>>>> Generate a loader file >>>>>>> Generate a Makefile >>>>>>> Running the Makefile >>>>>>> Compilation of fsum.f >>>>>>> Building shared library (be patient) >>>>>>> >>>>>>> !'nmake' is not recognized as an internal or external command, ! >>>>>>> ! ! >>>>>>> !operable program or batch file. ! >>>>>>> at line 36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) >>>>>>> at line 70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\modules\dynamic_link\macros\ilib_compile.sci line 86 ) >>>>>>> at line 104 of function ilib_for_link ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\modules\dynamic_link\macros\ilib_for_link.sci line 118 ) >>>>>>> at line 29 of function tbx_build_src ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\modules\modules_manager\macros\tbx_build_src.sci line 44 ) >>>>>>> at line 3 of function builder_fortran ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 ) >>>>>>> at line -1 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce >>>>>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>>>>> at line 49 of function tbx_builder_src_lang ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 ) >>>>>>> at line 4 of function builder_src ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\contrib\toolbox_skeleton\src\builder_src.sce line 6 ) >>>>>>> at line -4 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\contrib\toolbox_skeleton\src\builder_src.sce >>>>>>> at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\modules\modules_manager\macros\tbx_builder.sci line 26 ) >>>>>>> at line 32 of function tbx_builder_src ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\modules\modules_manager\macros\tbx_builder_src.sci line 48 ) >>>>>>> at line 31 of function main_builder ( D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\contrib\toolbox_skeleton\builder.sce line 39 ) >>>>>>> at line 48 of executed file D:\Scilab\scilab-6.0.0-beta- >>>>>>> 64\contrib\toolbox_skeleton\builder.sce >>>>>>> >>>>>>> ilib_compile: Error while executing Makelib.mak. >>>>>>> >>>>>>> *********************** >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>> _______________________________________________ >>> 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 fujimoto2005 at gmail.com Wed Mar 16 10:11:53 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 16 Mar 2016 02:11:53 -0700 (MST) Subject: [Scilab-users] the name of a script In-Reply-To: <56E91809.9070502@online.no> References: <1458110112609-4033744.post@n3.nabble.com> <56E91809.9070502@online.no> Message-ID: <1458119513366-4033747.post@n3.nabble.com> Hi,JLAN Thanks for your reply. Your code return only "// -- 16/03/2016 18:04:51 -- //" as a. I execute the script containing the following lines with the script name ''gettingSscriptName.sce' clear; a=gethistory(); b=strsplit(a($), [filesep();'''']); disp(b($-1)); The console window shows --> ecec('gettingSscriptName.sce') How to fix this? Best regards -- View this message in context: http://mailinglists.scilab.org/the-name-of-a-script-tp4033744p4033747.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j-lan at online.no Wed Mar 16 10:42:22 2016 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 16 Mar 2016 10:42:22 +0100 Subject: [Scilab-users] the name of a script In-Reply-To: <1458119513366-4033747.post@n3.nabble.com> References: <1458110112609-4033744.post@n3.nabble.com> <56E91809.9070502@online.no> <1458119513366-4033747.post@n3.nabble.com> Message-ID: <56E92A7E.4090402@online.no> On 16.03.2016 10:11, fujimoto2005 wrote: > Hi,JLAN > > Thanks for your reply. > > Your code return only > "// -- 16/03/2016 18:04:51 -- //" > as a. > > I execute the script containing the following lines with the script name > ''gettingSscriptName.sce' > > clear; > a=gethistory(); > b=strsplit(a($), [filesep();'''']); > disp(b($-1)); > > The console window shows > --> ecec('gettingSscriptName.sce') > > How to fix this? > > Best regards > > Hi It looks like you are looking in a(1). Try to look in b($-1). scriptname=b($-1); This soluton works with standard execute in Windows 10 at least. It will probably not cover "strange" ways to execute a script, but by analyzing the last history string you should be able to figure out what the user has been doing. Brgds Jan ? From noguchi at kje.biglobe.ne.jp Wed Mar 16 11:05:42 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Wed, 16 Mar 2016 03:05:42 -0700 (MST) Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr Message-ID: <1458122742532-4033749.post@n3.nabble.com> Hello, Scilab users, I would like to do Model Identification using step test data with transport delay. First of all, I would like to identify the following parameters for SISO case: K, Tau, TD: K/(Tau*s +1) * exp(-TD*s) We have step test data, y (Process output) and U (process input). Object function: Min ( (y-ymodel)^2) I guess CUTEr can be used to solve this problem. I try to understand how to use CUTEr using help file but failed. If you are familiar with how to use CUTEr or other optimization command in Scilab, could you please advise. Thanks. Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Wed Mar 16 11:55:59 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 16 Mar 2016 11:55:59 +0100 Subject: [Scilab-users] the name of a script In-Reply-To: <56E91809.9070502@online.no> References: <1458110112609-4033744.post@n3.nabble.com> <56E91809.9070502@online.no> Message-ID: <56E93BBF.4020507@inria.fr> Le 16/03/2016 09:23, Jan ?ge Langeland a ?crit : > > > On 16.03.2016 07:35, fujimoto2005 wrote: >> Hi, all >> Is there any ways to get the name of script when I am executing it ? >> I want to write a code to get the name of the script containing that code. >> For example , suppose I execute a script named with 'abc.sce' and I want to >> have a line which get the script name 'abc.sce' . >> >> Best regards >> >> > > a=gethistory(); > b=strsplit(a($), [filesep();'''']); > disp(b($-1)); > This works if the script execution has been launched at the prompt level, but not if the script has been launched inside a function or an other script. A solution is to use [units,typs,nams]=file() This function return the property of all the files currently opened in the order they have been opened so nams($) is what you are looking for: Serge > J? > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Wed Mar 16 11:59:18 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 16 Mar 2016 11:59:18 +0100 Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: <1458122742532-4033749.post@n3.nabble.com> References: <1458122742532-4033749.post@n3.nabble.com> Message-ID: <56E93C86.2050801@inria.fr> Le 16/03/2016 11:05, noguchi a ?crit : > Hello, Scilab users, > > > I would like to do Model Identification using step test data with transport > delay. > First of all, I would like to identify the following parameters for SISO > case: > > K, Tau, TD: K/(Tau*s +1) * exp(-TD*s) > > We have step test data, y (Process output) and U (process input). > > Object function: Min ( (y-ymodel)^2) > > > I guess CUTEr can be used to solve this problem. I try to understand how to > use CUTEr using help file but failed. > > If you are familiar with how to use CUTEr or other optimization command in > Scilab, could you please advise. > CUTEr is a tool designed for testing optimizers not for finding solution of optimization problems. For solving optimization problems on can use the optim or fminsearch functions Serge > Thanks. > > > Y. Noguchi > > > > -- > View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749.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 p.muehlmann at gmail.com Wed Mar 16 12:16:04 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Wed, 16 Mar 2016 12:16:04 +0100 Subject: [Scilab-users] convert Matlab functions to Scilab In-Reply-To: <56E7D1D0.7060604@inria.fr> References: <56E7D1D0.7060604@inria.fr> Message-ID: thank you...I'll have a look at it. Philipp 2016-03-15 10:11 GMT+01:00 Serge Steer : > Converted from Octave codes, not fully tested > Serge Steer > > > Le 11/03/2016 21:50, Philipp M?hlmann a ?crit : > > Just a shot in the blue... > > does anybody successfully converted the Matlab function > > maketform.m > > into Scilab? > > > Best regards, > Philipp > > > -- > There we have the salad. > > > _______________________________________________ > 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 > > -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Mar 16 12:35:00 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 16 Mar 2016 12:35:00 +0100 Subject: [Scilab-users] the name of a script In-Reply-To: <1458110112609-4033744.post@n3.nabble.com> References: <1458110112609-4033744.post@n3.nabble.com> Message-ID: <56E944E4.9080305@free.fr> Hello, Le 16/03/2016 07:35, fujimoto2005 a ?crit : > Hi, all > Is there any ways to get the name of script when I am executing it ? > I want to write a code to get the name of the script containing that code. > For example , suppose I execute a script named with 'abc.sce' and I want to > have a line which get the script name 'abc.sce' . . get_absolute_file_path(scriptName) is dedicated to that, but i prefer the solution provided by Serge with file(), because 1) it is clearer than this function name 2) it is almost as short as this function name ;) 3) it is somewhat more customizable 4) i guess that it is what get_absolute_file_path() does. get_absolute_file_path(scriptName) is used almost evewhere in .sce builders etc. BR Samuel From noguchi at kje.biglobe.ne.jp Wed Mar 16 14:42:31 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Wed, 16 Mar 2016 06:42:31 -0700 (MST) Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <56E61533.3020508@tritytech.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> Message-ID: <1458135751179-4033754.post@n3.nabble.com> Hi, I am not sure two topix are mixed now. One is for Model ID which I posted my question and another one is your topic. Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659p4033754.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From noguchi at kje.biglobe.ne.jp Wed Mar 16 14:46:57 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Wed, 16 Mar 2016 06:46:57 -0700 (MST) Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: <56E93C86.2050801@inria.fr> References: <1458122742532-4033749.post@n3.nabble.com> <56E93C86.2050801@inria.fr> Message-ID: <1458136017314-4033755.post@n3.nabble.com> Dear Mr. Serge, Thanks for your advise. Could you please advise me how I should formulate my problem using fminserch? Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033755.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Wed Mar 16 15:59:54 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 16 Mar 2016 07:59:54 -0700 (MST) Subject: [Scilab-users] the name of a script In-Reply-To: <56E93BBF.4020507@inria.fr> References: <1458110112609-4033744.post@n3.nabble.com> <56E91809.9070502@online.no> <56E93BBF.4020507@inria.fr> Message-ID: <1458140394086-4033757.post@n3.nabble.com> Hi,all I executed the script with the execute command of the scinote so it failed. I want to use the execute command of the scinote. I tried [units,typs,nams]=file(). But nams are as follows stderr ! ! ! !C:\***\gettingScriptName02.sce ! ! ! !stdin ! ! ! !stdout ! My target is not nams($) but nams($-2) . I am not sure the number of element is always $-2. Le me explain why I want to get the script name in the script itself. The script makes a folder where many graphs made by the script ares saved. The folder name is 'scritname'+'executiontime' as like 'gettingScripName01_2016_03_16_2300. I use such folder name in order to distinguish easily which build number script made those graphs. I can use the script name as the constant variable but I want to avoid such method since I forget to change the constant value when I revise the build number. 'get_absolute_file_path(scriptName)' is not a solution since it assume the script knows own name which script want to know. Best regards -- View this message in context: http://mailinglists.scilab.org/the-name-of-a-script-tp4033744p4033757.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed Mar 16 16:11:18 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 16 Mar 2016 16:11:18 +0100 Subject: [Scilab-users] the name of a script In-Reply-To: <1458140394086-4033757.post@n3.nabble.com> References: <1458110112609-4033744.post@n3.nabble.com> <56E91809.9070502@online.no> <56E93BBF.4020507@inria.fr> <1458140394086-4033757.post@n3.nabble.com> Message-ID: <56E97796.4030103@free.fr> Le 16/03/2016 15:59, fujimoto2005 a ?crit : > .../... > 'get_absolute_file_path(scriptName)' is not a solution since it assume the > script knows own name which script want to know. Right. Sorry for my misreading of your request. Indeed get_absolute_file_path() provides the path provided that you already know the name. SG From j-lan at online.no Wed Mar 16 16:46:58 2016 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 16 Mar 2016 16:46:58 +0100 Subject: [Scilab-users] the name of a script In-Reply-To: <1458140394086-4033757.post@n3.nabble.com> References: <1458110112609-4033744.post@n3.nabble.com> <56E91809.9070502@online.no> <56E93BBF.4020507@inria.fr> <1458140394086-4033757.post@n3.nabble.com> Message-ID: <56E97FF2.901@online.no> On 16.03.2016 15:59, fujimoto2005 wrote: > Hi,all > > I executed the script with the execute command of the scinote so it failed. > I want to use the execute command of the scinote. > > I tried > [units,typs,nams]=file(). > > But nams are as follows > > stderr > ! > ! > ! > !C:\***\gettingScriptName02.sce ! > ! > ! > !stdin > ! > ! > ! > !stdout > ! > file() is clearly better than my suggestion. nams is different in Scilab 5 and Scilab 6 and maybe vary with OS also, but since you know a bit about the script name you should be able to find it with grep: nams(max(grep(nams,'getting'))) Jan ? From fujimoto2005 at gmail.com Wed Mar 16 17:02:30 2016 From: fujimoto2005 at gmail.com (Masahiro Fujimoto) Date: Thu, 17 Mar 2016 01:02:30 +0900 Subject: [Scilab-users] the name of a script In-Reply-To: <56E97FF2.901@online.no> References: <1458110112609-4033744.post@n3.nabble.com> <56E91809.9070502@online.no> <56E93BBF.4020507@inria.fr> <1458140394086-4033757.post@n3.nabble.com> <56E97FF2.901@online.no> Message-ID: Thanks Jan A The following script return what I want to get ****************************** [units,typs,nams]=file(); a=nams(max(grep(nams,'getting'))); b=strsplit(a, [filesep();'.']); disp(b($-1)); ****************************** Best regrds 2016-03-17 0:46 GMT+09:00 Jan ?ge Langeland : > > > On 16.03.2016 15:59, fujimoto2005 wrote: > >> Hi,all >> >> I executed the script with the execute command of the scinote so it >> failed. >> I want to use the execute command of the scinote. >> >> I tried >> [units,typs,nams]=file(). >> >> But nams are as follows >> >> stderr >> ! >> ! >> ! >> !C:\***\gettingScriptName02.sce ! >> ! >> ! >> !stdin >> ! >> ! >> ! >> !stdout >> ! >> >> file() is clearly better than my suggestion. > nams is different in Scilab 5 and Scilab 6 and maybe vary with OS also, > but since you know a bit about the script name you should be able to find > it with grep: > > nams(max(grep(nams,'getting'))) > > Jan ? > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From harpreet.mertia at gmail.com Wed Mar 16 17:27:26 2016 From: harpreet.mertia at gmail.com (Harpreet Singh Rathore) Date: Wed, 16 Mar 2016 21:57:26 +0530 Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: <1458136017314-4033755.post@n3.nabble.com> References: <1458122742532-4033749.post@n3.nabble.com> <56E93C86.2050801@inria.fr> <1458136017314-4033755.post@n3.nabble.com> Message-ID: You can use fmincon, present in atoms(external package which uses Ipopt). Will you please tell me the dimension of the problem? Are you sure the objective function is correct?Or is it some kinda datafitting problem? If it is then please refer datafit which is already present in scilab. Regards Harpreet Singh On Wed, Mar 16, 2016 at 7:16 PM, noguchi wrote: > Dear Mr. Serge, > > Thanks for your advise. > > Could you please advise me how I should formulate my problem using > fminserch? > > > Y. Noguchi > > > > -- > View this message in context: > http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033755.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 > -- Thanks and Regards Harpreet Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Wed Mar 16 20:43:04 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Wed, 16 Mar 2016 20:43:04 +0100 Subject: [Scilab-users] openCV and Scilab Message-ID: Dear Users, does anybody is using the OFIP- or its more advanced follower Computer Vision toolbox? https://atoms.scilab.org/toolboxes/Computer-Vision It is aimed to introduce openCV functionality to Scilab via PIMS. I recently tried to install OIFP, but didn't manage to make it work. Asking the author for help I was redirected to another, more advanced one, called:ComputerVision Toolbox. I could make it work on a XP, 32bit machine using Scialb 5.4.1 but not at a Win7, 64bit machine using Scilab 5.4.1 or 5.5.1. Scilab would close automatically when I load the "loader.sce" from the toolbox...more precide: It closes somewhere in between the *.start file. Plus this toolbox can not be loaded through "atomsLoad"...at least it didn't work for me on my Win7 machine. I very much would like to use this toolbox, for testing image processing functions from openCV with Scilab. Therfore I would like to encourage Scilab to help developing this toolbox. Overall I think that having a connection from Scilab to openCV can improve Scilab on a more general point of view. It might also become a solution for those who can not use the current image processing toolboxes. Best regards, Philipp -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Thu Mar 17 15:09:52 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Thu, 17 Mar 2016 07:09:52 -0700 (MST) Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: References: <1458122742532-4033749.post@n3.nabble.com> <56E93C86.2050801@inria.fr> <1458136017314-4033755.post@n3.nabble.com> Message-ID: <1458223792931-4033776.post@n3.nabble.com> Dear Harpreet, Thank you for advise. I am not familiar with fmincon or fminserach, I would like to start from simple objective function. First of all, I would like to identify the following parameters for SISO case: K, Tau, TD: K/(Tau*s +1) * exp(-TD*s) =ymodel We have step test data, y (Process output) and U (process input). Object function: Min sum of ( (y-ymodel)^2) Could you please tell me how I can formulate my objective function using such optimization tool and foind optimum parameters? Thanks, -- View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033776.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From harpreet.mertia at gmail.com Thu Mar 17 17:36:14 2016 From: harpreet.mertia at gmail.com (Harpreet Singh Rathore) Date: Thu, 17 Mar 2016 22:06:14 +0530 Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: <1458223792931-4033776.post@n3.nabble.com> References: <1458122742532-4033749.post@n3.nabble.com> <56E93C86.2050801@inria.fr> <1458136017314-4033755.post@n3.nabble.com> <1458223792931-4033776.post@n3.nabble.com> Message-ID: Hey, Thats datafit for sure. Look at the help of datafit you will get to know how to formulate. Regards Harpreet Singh On Thu, Mar 17, 2016 at 7:39 PM, noguchi wrote: > Dear Harpreet, > > > Thank you for advise. > > I am not familiar with fmincon or fminserach, I would like to start from > simple objective function. > > First of all, I would like to identify the following parameters for SISO > case: > > K, Tau, TD: K/(Tau*s +1) * exp(-TD*s) =ymodel > > We have step test data, y (Process output) and U (process input). > > Object function: Min sum of ( (y-ymodel)^2) > > > Could you please tell me how I can formulate my objective function using > such optimization tool and foind optimum parameters? > > Thanks, > > > > > -- > View this message in context: > http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033776.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 > -- Thanks and Regards Harpreet Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Mon Mar 21 03:16:20 2016 From: chinluh at tritytech.com (Tan Chin Luh) Date: Mon, 21 Mar 2016 10:16:20 +0800 Subject: [Scilab-users] Scilab 6 issues in building the module In-Reply-To: <1458135751179-4033754.post@n3.nabble.com> References: <1457536331285-4033659.post@n3.nabble.com> <56E077FE.7000509@inria.fr> <1457617373723-4033670.post@n3.nabble.com> <56E198A8.7050603@inria.fr> <1457718241790-4033692.post@n3.nabble.com> <56E3E094.3080908@inria.fr> <1457789967235-4033709.post@n3.nabble.com> <1457824504.2869.2.camel@Servo> <56E61533.3020508@tritytech.com> <1458135751179-4033754.post@n3.nabble.com> Message-ID: <56EF5974.3070400@tritytech.com> Hi, I thought 2 topics are clearly separated by the subjects? thanks. rgds, Chin Luh On 16/3/2016 9:42 PM, noguchi wrote: > Hi, > > > I am not sure two topix are mixed now. > > One is for Model ID which I posted my question and another one is your > topic. > > > Y. Noguchi > > > > -- > View this message in context: http://mailinglists.scilab.org/Model-ID-of-First-order-delay-and-Dead-Time-Process-tp4033659p4033754.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 noguchi at kje.biglobe.ne.jp Mon Mar 21 14:58:50 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Mon, 21 Mar 2016 06:58:50 -0700 (MST) Subject: [Scilab-users] Plot: Back Ground Color Message-ID: <1458568730880-4033792.post@n3.nabble.com> When I generate a figure by using following command, the figure back ground is grey except loweside figure. The back ground color of the lower side figure is white. subplot(2,1,1) plot(t,y,'r') title('step test data') ylabel('process output (y)') set(gca(),"grid",[1 1]) subplot(2,1,2) plot(t,u,'b') set(gca(),"grid",[1 1]) How can I change back ground color of my figure produced by subplot and plot command? Thanks for your advise. Noguchu fig1.pdf -- View this message in context: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From noguchi at kje.biglobe.ne.jp Mon Mar 21 15:12:43 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Mon, 21 Mar 2016 07:12:43 -0700 (MST) Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: References: <1458122742532-4033749.post@n3.nabble.com> <56E93C86.2050801@inria.fr> <1458136017314-4033755.post@n3.nabble.com> <1458223792931-4033776.post@n3.nabble.com> Message-ID: <1458569563883-4033793.post@n3.nabble.com> Dear Harpreet, Thank you for advise. It is little bit difficult for me to write down the correct Scilab commands by only reading the datafit help. Is following command right? (ym(n)=ym(n-1)*amp+Kpm*bmp*u(n-1-Tdm) where n=step=1:1:500) function y = FODDT(u,Kpm,Taum,Tdm,step,Tsamp) amp=exp(-Tsamp/Taum); bmp=1-amp; [ym,amp,bmp]=ym(step-1)*amp+Kpm*bmp*u(step-1-Tdm) endfunction Don't we need to write the object function? Object function is minimize the sum of error square = sum of (y(i)-ym(i))^2 How I should represent above equation in Scilab? Thanks for your kind advise. Best Regards, -- View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033793.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From lahiruepage at gmail.com Mon Mar 21 15:58:16 2016 From: lahiruepage at gmail.com (Lahiru Dilshan) Date: Mon, 21 Mar 2016 20:28:16 +0530 Subject: [Scilab-users] GSoC 2016 Message-ID: HI, I'm Lahiru Dilshan. I'm a 3rd year undergraduate in Faculty of Engineering, University of Peradeniya, Sri Lanka. I'm doing Computer Engineering. I am interested in one of your project ideas in GSoC which is PDF Generation. I have a good knowledge about Java and So, I'd like to contribute to that project. I'm currently studyng the sample java code provided in the description. What should I know and can I have some more details about this project? -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Mon Mar 21 17:20:33 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 21 Mar 2016 17:20:33 +0100 Subject: [Scilab-users] GSoC 2016 In-Reply-To: References: Message-ID: <1458577233.11844.4.camel@scilab-enterprises.com> Hi?Lahiru and welcome, Le lundi 21 mars 2016 ? 20:28 +0530, Lahiru Dilshan a ?crit?: > HI, I'm Lahiru Dilshan. I'm a 3rd year undergraduate in Faculty of Engineering, University of > Peradeniya, Sri Lanka. I'm doing Computer Engineering. I am interested in one of your project > ideas in GSoC which is PDF Generation. I have a good knowledge about Java and So, I'd like to > contribute to that project. I'm currently studyng the sample java code provided in the > description. What should I know and can I have some more details about this project? ? This project has already been performed on the SOCIS'15 but still need more work before merging. This is thus a low priority task for the GSoC this year. I suggest you to select another proposal. Note: before trying to understand this piece of code, please fulfill the requirements. Bonus points will be applied for fixed bug, codereview settings and ML communication. Thanks for choosing Scilab and good chance, -- Cl?ment From p.muehlmann at gmail.com Mon Mar 21 19:28:12 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Mon, 21 Mar 2016 19:28:12 +0100 Subject: [Scilab-users] openCV and Scilab In-Reply-To: References: Message-ID: ...a small update: The issue I have using the ComputerVision Toolbox seem to relate more to the PIMS module. Example: Entering pyGetPath()into the console should return someting. This does work on my 32bit machine. But Scilab crashes on my Win7, 64bit system. 2016-03-16 20:43 GMT+01:00 Philipp M?hlmann : > Dear Users, > > does anybody is using the OFIP- or its more advanced follower Computer > Vision toolbox? > > > https://atoms.scilab.org/toolboxes/Computer-Vision > > > It is aimed to introduce openCV functionality to Scilab via PIMS. > > I recently tried to install OIFP, but didn't manage to make it work. > > Asking the author for help I was redirected to another, more advanced one, > called:ComputerVision Toolbox. > > I could make it work on a XP, 32bit machine using Scialb 5.4.1 but not at > a Win7, 64bit machine using Scilab 5.4.1 or 5.5.1. > > Scilab would close automatically when I load the "loader.sce" from the > toolbox...more precide: > > It closes somewhere in between the *.start file. > > Plus this toolbox can not be loaded through "atomsLoad"...at least it > didn't work for me on my Win7 machine. > > I very much would like to use this toolbox, for testing image processing > functions from openCV with Scilab. > > Therfore I would like to encourage Scilab to help developing this toolbox. > > Overall I think that having a connection from Scilab to openCV can improve > Scilab on a more general point of view. > > It might also become a solution for those who can not use the current > image processing toolboxes. > > Best regards, > Philipp > > > -- > There we have the salad. > -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marek.havrilla at gmail.com Mon Mar 21 22:15:14 2016 From: marek.havrilla at gmail.com (laftek) Date: Mon, 21 Mar 2016 14:15:14 -0700 (MST) Subject: [Scilab-users] Phase shift and step size - electrical Message-ID: <1458594914582-4033797.post@n3.nabble.com> Hi guys ! I am new here and I am starting with scilab. I really like it but i got stuck at simple thing as getting phase shift (angle) between voltage and current. I tried to reconstruct fourier (from MATLAB) in scilab but I dont know how to replace atan2(matlab) in scilab. Next problem is that i cant set or find sample time (step size). Please could someone help me with this one its very important !! Sorry for my english and thanks in advance. -- View this message in context: http://mailinglists.scilab.org/Phase-shift-and-step-size-electrical-tp4033797.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Mon Mar 21 22:16:39 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 21 Mar 2016 22:16:39 +0100 Subject: [Scilab-users] Plot: Back Ground Color In-Reply-To: <1458568730880-4033792.post@n3.nabble.com> References: <1458568730880-4033792.post@n3.nabble.com> Message-ID: <56F064B7.40000@free.fr> Le 21/03/2016 14:58, noguchi a ?crit : > When I generate a figure by using following command, the figure back ground > is grey except loweside figure. The back ground color of the lower side > figure is white. > > subplot(2,1,1) > plot(t,y,'r') > title('step test data') > ylabel('process output (y)') > set(gca(),"grid",[1 1]) > subplot(2,1,2) > plot(t,u,'b') > set(gca(),"grid",[1 1]) > > > How can I change back ground color of my figure produced by subplot and plot > command? With gcf().background = ncolor // ncolor being the color index of the chosen color in the colormap. or/and with gca().background = ncolor You may have a look to help figure_properties help axes_properties HTH From cfuttrup at gmail.com Mon Mar 21 22:30:53 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 21 Mar 2016 22:30:53 +0100 Subject: [Scilab-users] Phase shift and step size - electrical In-Reply-To: <1458594914582-4033797.post@n3.nabble.com> References: <1458594914582-4033797.post@n3.nabble.com> Message-ID: <56F0680D.2040507@gmail.com> Hi Marek >I dont know how to replace atan2(matlab) in scilab. Did you already look at the help page? https://help.scilab.org/docs/5.5.2/en_US/m2sci_atan2.html If you're familiar with this, please explain your problem in more detail. /Claus On 21-03-2016 22:15, laftek wrote: > Hi guys ! > > I am new here and I am starting with scilab. I really like it but i got > stuck at simple thing as getting phase shift (angle) between voltage and > current. I tried to reconstruct fourier (from MATLAB) in scilab but I dont > know how to replace atan2(matlab) in scilab. > > Next problem is that i cant set or find sample time (step size). > > Please could someone help me with this one its very important !! > > Sorry for my english and thanks in advance. > > > > -- > View this message in context: http://mailinglists.scilab.org/Phase-shift-and-step-size-electrical-tp4033797.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 sgougeon at free.fr Mon Mar 21 22:33:53 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 21 Mar 2016 22:33:53 +0100 Subject: [Scilab-users] Phase shift and step size - electrical In-Reply-To: <1458594914582-4033797.post@n3.nabble.com> References: <1458594914582-4033797.post@n3.nabble.com> Message-ID: <56F068C1.3020504@free.fr> Hello Laftek, Le 21/03/2016 22:15, laftek a ?crit : > Hi guys ! > > I am new here and I am starting with scilab. I really like it but i got > stuck at simple thing as getting phase shift (angle) between voltage and > current. I tried to reconstruct fourier (from MATLAB) in scilab but I dont > know how to replace atan2(matlab) in scilab. atan(y, x) // simply (ok, atan(x,y) would have been even simpler :) or atand(y,x) // in degrees https://help.scilab.org/docs/5.5.2/en_US/atan.html > > Next problem is that i cant set or find sample time (step size). Sorry, I do not understand your request. Could you explain a bit more? From lahiruepage at gmail.com Tue Mar 22 07:03:44 2016 From: lahiruepage at gmail.com (Lahiru Dilshan) Date: Tue, 22 Mar 2016 11:33:44 +0530 Subject: [Scilab-users] GSoC 2016 In-Reply-To: <1458577233.11844.4.camel@scilab-enterprises.com> References: <1458577233.11844.4.camel@scilab-enterprises.com> Message-ID: Hi Clement, In project ideas web page of Scilab, the GSoC priority of the project PDF generation is mentioned as high. But, If you suggest to select another project, I'm interested in Java Scripting Api and Anonymous Usage Tracking projects. So, can u give me more details about those projects which one is the high priority this year? Thanks. On Mon, Mar 21, 2016 at 9:50 PM, Cl?ment David < clement.david at scilab-enterprises.com> wrote: > Hi Lahiru and welcome, > > Le lundi 21 mars 2016 ? 20:28 +0530, Lahiru Dilshan a ?crit : > > HI, I'm Lahiru Dilshan. I'm a 3rd year undergraduate in Faculty of > Engineering, University of > > Peradeniya, Sri Lanka. I'm doing Computer Engineering. I am interested > in one of your project > > ideas in GSoC which is PDF Generation. I have a good knowledge about > Java and So, I'd like to > > contribute to that project. I'm currently studyng the sample java code > provided in the > > description. What should I know and can I have some more details about > this project? > > This project has already been performed on the SOCIS'15 but still need > more work before merging. > This is thus a low priority task for the GSoC this year. I suggest you to > select another proposal. > > Note: before trying to understand this piece of code, please fulfill the > requirements. Bonus points > will be applied for fixed bug, codereview settings and ML communication. > > Thanks for choosing Scilab and good chance, > > -- > Cl?ment > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Tue Mar 22 08:16:39 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Tue, 22 Mar 2016 00:16:39 -0700 (MST) Subject: [Scilab-users] Plot: Back Ground Color In-Reply-To: <56F064B7.40000@free.fr> References: <1458568730880-4033792.post@n3.nabble.com> <56F064B7.40000@free.fr> Message-ID: To HTH Thanks for your advise. I read the help but I tottally confused. I added following command after plot command, but it doesn't work. gcf().background = 1; ----- ??????? ----- ???: "Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives]" ??: "noguchi" ????: 2016?3?22?(???) 06:18:07 ??: Re: Plot: Back Ground Color Le 21/03/2016 14:58, noguchi a ?crit : > When I generate a figure by using following command, the figure back ground > is grey except ?loweside figure. The back ground color of the lower side > figure is white. > > subplot(2,1,1) > plot(t,y,'r') > title('step test data') > ylabel('process output (y)') > set(gca(),"grid",[1 1]) > subplot(2,1,2) > plot(t,u,'b') > set(gca(),"grid",[1 1]) > > > How can I change back ground color of my figure produced by subplot and plot > command? With gcf().background = ncolor // ncolor being the color index of the chosen color in the colormap. or/and with gca().background = ncolor You may have a look to help figure_properties help axes_properties HTH _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792p4033798.html To unsubscribe from Plot: Back Ground Color, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792p4033802.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Tue Mar 22 08:30:25 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 22 Mar 2016 08:30:25 +0100 Subject: [Scilab-users] GSoC 2016 In-Reply-To: References: <1458577233.11844.4.camel@scilab-enterprises.com> Message-ID: <1458631825.11844.20.camel@scilab-enterprises.com> Hi Lahiru, The Java Scripting API has not been selected AFAIK. It might be an improved version of javasci and thus might be easy to start as all the code infrastructure is already present. The interesting part of this project is not to fully re-implement a feature but instead to standardize it. About technicalities, this is a Java development with some SWIG generated mapping and performance might be taken into account to reduce copies. Add your understanding of the current javasci API on the proposal and if correct you may pass :) . The anonymous usage report has already a proposal this year. Regards, -- Cl?ment Le mardi 22 mars 2016 ? 11:33 +0530, Lahiru Dilshan a ?crit?: > Hi Clement, > > In project ideas web page of Scilab, the GSoC priority of the project PDF generation is mentioned > as high. > But, If you suggest to select another project, I'm interested in Java Scripting Api and Anonymous > Usage Tracking projects. > So, can u give me more details about those projects which one is the high priority this year? > > Thanks. > > On Mon, Mar 21, 2016 at 9:50 PM, Cl?ment David wrote: > > Hi?Lahiru and welcome, > > > > Le lundi 21 mars 2016 ? 20:28 +0530, Lahiru Dilshan a ?crit?: > > > HI, I'm Lahiru Dilshan. I'm a 3rd year undergraduate in Faculty of Engineering, University of > > > Peradeniya, Sri Lanka. I'm doing Computer Engineering. I am interested in one of your project > > > ideas in GSoC which is PDF Generation. I have a good knowledge about Java and So, I'd like to > > > contribute to that project. I'm currently studyng the sample java code provided in the > > > description. What should I know and can I have some more details about this project? ? > > > > This project has already been performed on the SOCIS'15 but still need more work before merging. > > This is thus a low priority task for the GSoC this year. I suggest you to select another > > proposal. > > > > Note: before trying to understand this piece of code, please fulfill the requirements. Bonus > > points > > will be applied for fixed bug, codereview settings and ML communication. > > > > Thanks for choosing Scilab and good chance, > > > > -- > > Cl?ment > > > > _______________________________________________ > > 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 jasper at amsterchem.com Tue Mar 22 09:09:59 2016 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 22 Mar 2016 09:09:59 +0100 Subject: [Scilab-users] gateway compatibility In-Reply-To: <56D05435.50106@amsterchem.com> References: <56D05435.50106@amsterchem.com> Message-ID: <56F0FDD7.5030101@amsterchem.com> Dear all, Will the 6.0 release be binary compatible with 6.0 beta? Best wishes, Jasper. On 2/26/2016 14:33, jasper van baten wrote: > Dear all, > > I noticed that the gateway routines are not binary compatible between > 6.0 alpha and 6.0 beta. Also the source has changed somewhat, so the > ilib_gen_gateway has to be rerun to update source (particularly > C_GATEWAY_PROTOTYPE changed to STACK_GATEWAY_PROTOTYPE) > > Will the 6.0 beta gateway routines be binary compatible with the 6.0 > release? > > Many thanks, best wishes, > > Jasper. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Mar 22 10:40:47 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 22 Mar 2016 10:40:47 +0100 Subject: [Scilab-users] Plot: Back Ground Color In-Reply-To: References: <1458568730880-4033792.post@n3.nabble.com> <56F064B7.40000@free.fr> Message-ID: <56F1131F.3090908@free.fr> Le 22/03/2016 08:16, noguchi a ?crit : > To HTH > > Thanks for your advise. I read the help but I tottally confused. > > I added following command after plot command, but it doesn't work. > > gcf().background = 1; With Scilab 6, it does, due to the new feature called "Recursive extraction". With scilab < 6: f = gcf(); f.background = 1; From antoine.monmayrant at laas.fr Tue Mar 22 10:41:02 2016 From: antoine.monmayrant at laas.fr (antoine.monmayrant at laas.fr) Date: Tue, 22 Mar 2016 10:41:02 +0100 Subject: [Scilab-users] leastsq question : what is 'gopt' useful for? Message-ID: <56F1132E.2090705@laas.fr> Hi everyone, I have a very general and naive question concerning leastsq: what am I to do with "gopt", the "gradient of f at xopt"? Is there a way to link it to the confidence interval for each parameter of my fit? For the moment, I know how to estimate these confidence intervals when I have access to the Jacobian matrix of my fit function. Could "gopt" be of some use to estimate the confidence intervals when the Jacobian matrix is not known? If not, what can we use it for? Cheers, Antoine From noguchi at kje.biglobe.ne.jp Tue Mar 22 10:52:05 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Tue, 22 Mar 2016 02:52:05 -0700 (MST) Subject: [Scilab-users] Plot: Back Ground Color In-Reply-To: <56F1131F.3090908@free.fr> References: <1458568730880-4033792.post@n3.nabble.com> <56F064B7.40000@free.fr> <56F1131F.3090908@free.fr> Message-ID: <915fdf9d-4a11-4c61-b36a-48569e73c12c@bvec34483> To HTH Thanks. I am using Scilab 5.5.2. Whe I insert following command after the plot command, back ground color except lower figure becomes black. If I change tjhe value from 1 to 100, it shows black. It desn't work as I expected. f = gcf(); f.background = 1 My commad is as follows: figure(1) subplot(2,1,1) plot(t,y,'r') title('step test data') ylabel('process output (y)') set(gca(),"grid",[1 1]) f = gcf(); f.background = 100; subplot(2,1,2) plot(t,u,'b') set(gca(),"grid",[1 1]) f = gcf(); f.background = 100; ----- ??????? ----- ???: "Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives]" ??: "noguchi" ????: 2016?3?22?(???) 18:41:32 ??: Re: Plot: Back Ground Color Le 22/03/2016 08:16, noguchi a ?crit : > To HTH > > Thanks for your advise. I read the help but I tottally confused. > > I added following command after plot command, but it doesn't work. > > gcf().background = 1; With Scilab 6, it does, due to the new feature called "Recursive extraction". With scilab < 6: f = gcf(); f.background = 1; _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792p4033806.html To unsubscribe from Plot: Back Ground Color, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792p4033808.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Tue Mar 22 10:55:30 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Tue, 22 Mar 2016 10:55:30 +0100 Subject: [Scilab-users] leastsq question : what is 'gopt' useful for? In-Reply-To: <56F1132E.2090705@laas.fr> References: <56F1132E.2090705@laas.fr> Message-ID: <56F11692.2090508@utc.fr> Hello, Le 22/03/2016 10:41, antoine.monmayrant at laas.fr a ?crit : > Hi everyone, > > I have a very general and naive question concerning leastsq: what am I > to do with "gopt", the "gradient of f at xopt"? > > Is there a way to link it to the confidence interval for each > parameter of my fit? Not really, but since leastsq is a wrapper for optim, which returns the gradient at returned "optimal" solution, it is also returned. However, if the final gradient is seen to be far from the zero vector, then all confidence intervals based on the inverse of the Fisher matrix (computed with the Jacobian) will not have any sense, since these "linear" statistics are based on a development where the first term (using the gradient) is supposed to vanish... Hence, having access to the final gradient can be of interest. > For the moment, I know how to estimate these confidence intervals when > I have access to the Jacobian matrix of my fit function. > Could "gopt" be of some use to estimate the confidence intervals when > the Jacobian matrix is not known? no, but you can approximate your Jacobian with "numderivative" S. > If not, what can we use it for? > > Cheers, > > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex From sgougeon at free.fr Tue Mar 22 11:11:45 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 22 Mar 2016 11:11:45 +0100 Subject: [Scilab-users] Plot: Back Ground Color In-Reply-To: <915fdf9d-4a11-4c61-b36a-48569e73c12c@bvec34483> References: <1458568730880-4033792.post@n3.nabble.com> <56F064B7.40000@free.fr> <56F1131F.3090908@free.fr> <915fdf9d-4a11-4c61-b36a-48569e73c12c@bvec34483> Message-ID: <56F11A61.1060708@free.fr> Le 22/03/2016 10:52, noguchi a ?crit : > To HTH > https://www.techopedia.com/definition/31483/hope-this-helps-hth ;) > Thanks. I am using Scilab 5.5.2. > > Whe I insert following command after the plot command, back ground > color except lower figure becomes black. If I change tjhe value from 1 > to 100, it shows black. It desn't work as I expected. > > f = gcf(); > f.background = 1 You may try more explicitly: f.background = color("white") // or any other predefined color name as listed in https://help.scilab.org/docs/5.5.2/en_US/color_list.html help color_list From antoine.monmayrant at laas.fr Tue Mar 22 11:21:44 2016 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 22 Mar 2016 11:21:44 +0100 Subject: [Scilab-users] leastsq question : what is 'gopt' useful for? In-Reply-To: <56F11692.2090508@utc.fr> References: <56F1132E.2090705@laas.fr> <56F11692.2090508@utc.fr> Message-ID: <56F11CB8.3060508@laas.fr> Le 03/22/2016 10:55 AM, St?phane Mottelet a ?crit : > Hello, > > Le 22/03/2016 10:41, antoine.monmayrant at laas.fr a ?crit : >> Hi everyone, >> >> I have a very general and naive question concerning leastsq: what am >> I to do with "gopt", the "gradient of f at xopt"? >> >> Is there a way to link it to the confidence interval for each >> parameter of my fit? > Not really, but since leastsq is a wrapper for optim, which returns > the gradient at returned "optimal" solution, it is also returned. > However, if the final gradient is seen to be far from the zero vector, > then all confidence intervals based on the inverse of the Fisher > matrix (computed with the Jacobian) will not have any sense, since > these "linear" statistics are based on a development where the first > term (using the gradient) is supposed to vanish... Hence, having > access to the final gradient can be of interest. Ah, OK it makes sense, thanks St?phane! >> For the moment, I know how to estimate these confidence intervals >> when I have access to the Jacobian matrix of my fit function. >> Could "gopt" be of some use to estimate the confidence intervals when >> the Jacobian matrix is not known? > no, but you can approximate your Jacobian with "numderivative" > > S. >> If not, what can we use it for? >> >> Cheers, >> >> >> Antoine >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > From noguchi at kje.biglobe.ne.jp Tue Mar 22 11:21:54 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Tue, 22 Mar 2016 03:21:54 -0700 (MST) Subject: [Scilab-users] Plot: Back Ground Color In-Reply-To: <56F11A61.1060708@free.fr> References: <1458568730880-4033792.post@n3.nabble.com> <56F064B7.40000@free.fr> <56F1131F.3090908@free.fr> <915fdf9d-4a11-4c61-b36a-48569e73c12c@bvec34483> <56F11A61.1060708@free.fr> Message-ID: <5ca19660-439b-43ab-a1bf-8e242c6b2b5f@bvec34483> Thanks. The following command works as I expected. Great. Thanks. In fact, it is still difficult for me to find out this command from Scilab help file. f = gcf(); f.background = color("white") ----- ??????? ----- ???: "Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives]" ??: "noguchi" ????: 2016?3?22?(???) 19:13:11 ??: Re: Plot: Back Ground Color Le 22/03/2016 10:52, noguchi a ?crit : > To HTH > https://www.techopedia.com/definition/31483/hope-this-helps-hth ;) > Thanks. I am using Scilab 5.5.2. > > Whe I insert following command after the plot command, back ground > color except lower figure becomes black. If I change tjhe value from 1 > to 100, it shows black. It desn't work as I expected. > > f = gcf(); > f.background = 1 You may try more explicitly: f.background = color("white") // or any other predefined color name as listed in https://help.scilab.org/docs/5.5.2/en_US/color_list.html help color_list _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792p4033810.html To unsubscribe from Plot: Back Ground Color, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792p4033811.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Tue Mar 22 11:39:19 2016 From: j.s.strom at hslmg.de (Jens) Date: Tue, 22 Mar 2016 03:39:19 -0700 (MST) Subject: [Scilab-users] Finding data_bounds Message-ID: <1458643159517-4033814.post@n3.nabble.com> Hi, I want to watch the buildup of subplots in a loop which adds further points in each passage. To get a calm figure I set estimated data_bounds at the beginning. At the end I would like to reshape the subplot so that it shows all data. How can I extract the elements of data_bounds from the graphic object? The following minimal code should help to explain my problem. xdel(); figure('BackgroundColor',[1 1 1]); f1=gcf(); f1.figure_size=[1000 900]; f1.figure_position = [300,0]; subplot(2,3,1)//setting estimated plot bounds to maintain during loop cafix=gca(); cafix.data_bounds = 5*[-1,-1;1,1];// estimated values before calculation cafix.tight_limits="on"; cafix.auto_scale="off"; x=linspace(-5,5,10);//calculate and plot for i=1:5 subplot(2,3,1) plot(cafix,x,i*x/2) //further calculations and subplots here subplot(2,3,1) plot(cafix,x,i*x/2,'-o') //further calculations and subplots here subplot(2,3,1) plot(cafix,x,i*x/2,'-+') end//for ... sleep(2000) //Now Scilab knows the extremal values which should become visible too now if cropped. subplot(2,3,1) cafix.isoview="on"; cafix.axes_bounds = [0,0,0.4,0.4]; cafix.data_bounds = 13*[-1,-1;1,1];//These bounds are set by inspection //How can adequate data_bounds be extracted from the graphic object? Kind regards Jens -- View this message in context: http://mailinglists.scilab.org/Finding-data-bounds-tp4033814.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue Mar 22 12:17:24 2016 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 22 Mar 2016 12:17:24 +0100 Subject: [Scilab-users] Finding data_bounds In-Reply-To: <1458643159517-4033814.post@n3.nabble.com> References: <1458643159517-4033814.post@n3.nabble.com> Message-ID: <56F129C4.4040106@laas.fr> Le 03/22/2016 11:39 AM, Jens a ?crit : > xdel(); > figure('BackgroundColor',[1 1 1]); > f1=gcf(); f1.figure_size=[1000 900]; f1.figure_position = [300,0]; > > subplot(2,3,1)//setting estimated plot bounds to maintain during loop > cafix=gca(); > cafix.data_bounds = 5*[-1,-1;1,1];// estimated values before calculation > cafix.tight_limits="on"; > cafix.auto_scale="off"; > > > x=linspace(-5,5,10);//calculate and plot > for i=1:5 > subplot(2,3,1) > plot(cafix,x,i*x/2) > //further calculations and subplots here > subplot(2,3,1) > plot(cafix,x,i*x/2,'-o') > //further calculations and subplots here > subplot(2,3,1) > plot(cafix,x,i*x/2,'-+') > end//for ... > sleep(2000) > //Now Scilab knows the extremal values which should become visible too > now if cropped. > subplot(2,3,1) > cafix.isoview="on"; > cafix.axes_bounds = [0,0,0.4,0.4]; > cafix.data_bounds = 13*[-1,-1;1,1];//These bounds are set by inspection > //How can adequate data_bounds be extracted from the graphic object? Just add the following at the end of your script: nplot=length(cafix.children); xs=[]; ys=[]; for i=1:nplot xs=[xs;cafix.children(i).children.data(:,1)]; ys=[ys;cafix.children(i).children.data(:,2)]; end xmin=min(xs); xmax=max(xs); ymin=min(ys); ymax=max(ys); cafix.data_bounds=[xmin,xmax,ymin,ymax] By the way, is there any reason to overlap several plots instead of adding new points in the previous one? This would be more efficient: cafix.children(1).children.data=[cafix.children(1).children.data;[new_xs,new_ys]]; cafix.tight_limits="on"; Cheers, Antoine From lahiruepage at gmail.com Tue Mar 22 14:21:29 2016 From: lahiruepage at gmail.com (Lahiru Dilshan) Date: Tue, 22 Mar 2016 18:51:29 +0530 Subject: [Scilab-users] GSoC 2016 In-Reply-To: <1458631825.11844.20.camel@scilab-enterprises.com> References: <1458577233.11844.4.camel@scilab-enterprises.com> <1458631825.11844.20.camel@scilab-enterprises.com> Message-ID: Hi Clement, Can you sure that the Java Script API is not selected in GSoC this year? https://wiki.scilab.org/GSoC_project_proposal link shows the project ideas of Scilab and the Java Script API project is there. On Tue, Mar 22, 2016 at 1:00 PM, Cl?ment David < clement.david at scilab-enterprises.com> wrote: > Hi Lahiru, > > The Java Scripting API has not been selected AFAIK. It might be an > improved version of javasci and > thus might be easy to start as all the code infrastructure is already > present. The interesting part > of this project is not to fully re-implement a feature but instead to > standardize it. > > About technicalities, this is a Java development with some SWIG generated > mapping and performance > might be taken into account to reduce copies. Add your understanding of > the current javasci API on > the proposal and if correct you may pass :) . > > The anonymous usage report has already a proposal this year. > > Regards, > > -- > Cl?ment > > > Le mardi 22 mars 2016 ? 11:33 +0530, Lahiru Dilshan a ?crit : > > Hi Clement, > > > > In project ideas web page of Scilab, the GSoC priority of the project > PDF generation is mentioned > > as high. > > But, If you suggest to select another project, I'm interested in Java > Scripting Api and Anonymous > > Usage Tracking projects. > > So, can u give me more details about those projects which one is the > high priority this year? > > > > Thanks. > > > > On Mon, Mar 21, 2016 at 9:50 PM, Cl?ment David < > clement.david at scilab-enterprises.com> wrote: > > > Hi Lahiru and welcome, > > > > > > Le lundi 21 mars 2016 ? 20:28 +0530, Lahiru Dilshan a ?crit : > > > > HI, I'm Lahiru Dilshan. I'm a 3rd year undergraduate in Faculty of > Engineering, University of > > > > Peradeniya, Sri Lanka. I'm doing Computer Engineering. I am > interested in one of your project > > > > ideas in GSoC which is PDF Generation. I have a good knowledge about > Java and So, I'd like to > > > > contribute to that project. I'm currently studyng the sample java > code provided in the > > > > description. What should I know and can I have some more details > about this project? > > > > > > This project has already been performed on the SOCIS'15 but still need > more work before merging. > > > This is thus a low priority task for the GSoC this year. I suggest you > to select another > > > proposal. > > > > > > Note: before trying to understand this piece of code, please fulfill > the requirements. Bonus > > > points > > > will be applied for fixed bug, codereview settings and ML > communication. > > > > > > Thanks for choosing Scilab and good chance, > > > > > > -- > > > Cl?ment > > > > > > _______________________________________________ > > > 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 clement.david at scilab-enterprises.com Tue Mar 22 14:46:03 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 22 Mar 2016 14:46:03 +0100 Subject: [Scilab-users] GSoC 2016 In-Reply-To: References: <1458577233.11844.4.camel@scilab-enterprises.com> <1458631825.11844.20.camel@scilab-enterprises.com> Message-ID: <1458654363.11844.34.camel@scilab-enterprises.com> Hi Lahiru, As far as I remember, you are the first one asking for this subject. This does not mean that you will be the only one at the end :) . Good chance writing your proposal ! -- Cl?ment Le mardi 22 mars 2016 ? 18:51 +0530, Lahiru Dilshan a ?crit?: > Hi Clement, > Can you sure that the Java Script API is not selected in GSoC this year?? > https://wiki.scilab.org/GSoC_project_proposal link shows the project ideas of Scilab and the Java > Script API project is there. > > On Tue, Mar 22, 2016 at 1:00 PM, Cl?ment David wrote: > > Hi Lahiru, > > > > The Java Scripting API has not been selected AFAIK. It might be an improved version of javasci > > and > > thus might be easy to start as all the code infrastructure is already present. The interesting > > part > > of this project is not to fully re-implement a feature but instead to standardize it. > > > > About technicalities, this is a Java development with some SWIG generated mapping and > > performance > > might be taken into account to reduce copies. Add your understanding of the current javasci API > > on > > the proposal and if correct you may pass :) . > > > > The anonymous usage report has already a proposal this year. > > > > Regards, > > > > -- > > Cl?ment > > > > > > Le mardi 22 mars 2016 ? 11:33 +0530, Lahiru Dilshan a ?crit?: > > > Hi Clement, > > > > > > In project ideas web page of Scilab, the GSoC priority of the project PDF generation is > > mentioned > > > as high. > > > But, If you suggest to select another project, I'm interested in Java Scripting Api and > > Anonymous > > > Usage Tracking projects. > > > So, can u give me more details about those projects which one is the high priority this year? > > > > > > Thanks. > > > > > > On Mon, Mar 21, 2016 at 9:50 PM, Cl?ment David wrote: > > > > Hi?Lahiru and welcome, > > > > > > > > Le lundi 21 mars 2016 ? 20:28 +0530, Lahiru Dilshan a ?crit?: > > > > > HI, I'm Lahiru Dilshan. I'm a 3rd year undergraduate in Faculty of Engineering, University > > of > > > > > Peradeniya, Sri Lanka. I'm doing Computer Engineering. I am interested in one of your > > project > > > > > ideas in GSoC which is PDF Generation. I have a good knowledge about Java and So, I'd like > > to > > > > > contribute to that project. I'm currently studyng the sample java code provided in the > > > > > description. What should I know and can I have some more details about this project? ? > > > > > > > > This project has already been performed on the SOCIS'15 but still need more work before > > merging. > > > > This is thus a low priority task for the GSoC this year. I suggest you to select another > > > > proposal. > > > > > > > > Note: before trying to understand this piece of code, please fulfill the requirements. Bonus > > > > points > > > > will be applied for fixed bug, codereview settings and ML communication. > > > > > > > > Thanks for choosing Scilab and good chance, > > > > > > > > -- > > > > Cl?ment > > > > > > > > _______________________________________________ > > > > 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 From anna.parravicini at cnao.it Tue Mar 22 15:50:42 2016 From: anna.parravicini at cnao.it (anna78) Date: Tue, 22 Mar 2016 07:50:42 -0700 (MST) Subject: [Scilab-users] xsetech, plot and background Message-ID: <1458658242610-4033821.post@n3.nabble.com> Hi all, I'm making the attached figure using the following code. Can you help me to take out the bad white background appearing in the last (other time in both) the subplots? thanks! Anna clf(1); //f=gcf(); // macro shortcut <=> f=get("current_figure") f=figure(1); // creo figure con id=1 f.figure_position=[200,0] f.figure_size=[800,700] f.figure_name=particle+' monitoring (hour average)'; subplot(211) xtitle(particle+" mean position @ PUB - hour average"); xsetech([0,0,0.8,0.4]); //g=gcf(); //g.background=0; xlabel('timestamp (yymmddhh)'); ylabel('[mm]'); plot(xMean,'r.','markersiz',3); plot(yMean,'k.','markersiz',3); xgrid(0); //0=black; 2=blue; subplot(212) xtitle(particle+" standard deviation @ PUB - hour average"); xsetech([0,0.5,0.8,0.4]); xlabel('timestamp (yymmddhh)'); ylabel('[mm]'); plot(xDevSt,'r.','markersiz',3); plot(yDevSt,'k.','markersiz',3); // xgrid(0); //0=black; 2=blue; . -- View this message in context: http://mailinglists.scilab.org/xsetech-plot-and-background-tp4033821.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j.s.strom at hslmg.de Tue Mar 22 16:18:30 2016 From: j.s.strom at hslmg.de (Jens) Date: Tue, 22 Mar 2016 08:18:30 -0700 (MST) Subject: [Scilab-users] Finding data_bounds In-Reply-To: <56F129C4.4040106@laas.fr> References: <1458643159517-4033814.post@n3.nabble.com> <56F129C4.4040106@laas.fr> Message-ID: <1458659910123-4033822.post@n3.nabble.com> Merci beaucoup Antoine. Your solution works perfectly in the original code. Antoine Monmayrant wrote > Le 03/22/2016 11:39 AM, Jens a ?crit : > By the way, is there any reason to overlap several plots instead of > adding new points in the previous one? I prefer to display results immediately after their calculation - entailing multiple calls of the same subplot here. With this approach the code is easier to make and to understand later for me. This may be bad programming style but Einstein said /Elegance is to be let to the cobblers and tailors/. Furthermore a couple of my subplots reside in if enviroments. This makes it even more difficult to separate calculation and output neatly. I am a casual programmer only and explicit handling the family of parents, children, and grandchildren is quite unintuitive to me. Nevertheless it is highly effective - as your code snippet verifies. Kind regards and thanks again Jens -- View this message in context: http://mailinglists.scilab.org/Finding-data-bounds-tp4033814p4033822.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From lahiruepage at gmail.com Tue Mar 22 16:20:47 2016 From: lahiruepage at gmail.com (Lahiru Dilshan) Date: Tue, 22 Mar 2016 20:50:47 +0530 Subject: [Scilab-users] GSoC 2016 In-Reply-To: <1458654363.11844.34.camel@scilab-enterprises.com> References: <1458577233.11844.4.camel@scilab-enterprises.com> <1458631825.11844.20.camel@scilab-enterprises.com> <1458654363.11844.34.camel@scilab-enterprises.com> Message-ID: Thanks Clement. I'll try this project. I'll start to write the proposal. On Tue, Mar 22, 2016 at 7:16 PM, Cl?ment David < clement.david at scilab-enterprises.com> wrote: > Hi Lahiru, > > As far as I remember, you are the first one asking for this subject. This > does not mean that you > will be the only one at the end :) . > > Good chance writing your proposal ! > > -- > Cl?ment > > Le mardi 22 mars 2016 ? 18:51 +0530, Lahiru Dilshan a ?crit : > > Hi Clement, > > Can you sure that the Java Script API is not selected in GSoC this year? > > https://wiki.scilab.org/GSoC_project_proposal link shows the project > ideas of Scilab and the Java > > Script API project is there. > > > > On Tue, Mar 22, 2016 at 1:00 PM, Cl?ment David < > clement.david at scilab-enterprises.com> wrote: > > > Hi Lahiru, > > > > > > The Java Scripting API has not been selected AFAIK. It might be an > improved version of javasci > > > and > > > thus might be easy to start as all the code infrastructure is already > present. The interesting > > > part > > > of this project is not to fully re-implement a feature but instead to > standardize it. > > > > > > About technicalities, this is a Java development with some SWIG > generated mapping and > > > performance > > > might be taken into account to reduce copies. Add your understanding > of the current javasci API > > > on > > > the proposal and if correct you may pass :) . > > > > > > The anonymous usage report has already a proposal this year. > > > > > > Regards, > > > > > > -- > > > Cl?ment > > > > > > > > > Le mardi 22 mars 2016 ? 11:33 +0530, Lahiru Dilshan a ?crit : > > > > Hi Clement, > > > > > > > > In project ideas web page of Scilab, the GSoC priority of the > project PDF generation is > > > mentioned > > > > as high. > > > > But, If you suggest to select another project, I'm interested in > Java Scripting Api and > > > Anonymous > > > > Usage Tracking projects. > > > > So, can u give me more details about those projects which one is the > high priority this year? > > > > > > > > Thanks. > > > > > > > > On Mon, Mar 21, 2016 at 9:50 PM, Cl?ment David < > clement.david at scilab-enterprises.com> wrote: > > > > > Hi Lahiru and welcome, > > > > > > > > > > Le lundi 21 mars 2016 ? 20:28 +0530, Lahiru Dilshan a ?crit : > > > > > > HI, I'm Lahiru Dilshan. I'm a 3rd year undergraduate in Faculty > of Engineering, University > > > of > > > > > > Peradeniya, Sri Lanka. I'm doing Computer Engineering. I am > interested in one of your > > > project > > > > > > ideas in GSoC which is PDF Generation. I have a good knowledge > about Java and So, I'd like > > > to > > > > > > contribute to that project. I'm currently studyng the sample > java code provided in the > > > > > > description. What should I know and can I have some more details > about this project? > > > > > > > > > > This project has already been performed on the SOCIS'15 but still > need more work before > > > merging. > > > > > This is thus a low priority task for the GSoC this year. I suggest > you to select another > > > > > proposal. > > > > > > > > > > Note: before trying to understand this piece of code, please > fulfill the requirements. Bonus > > > > > points > > > > > will be applied for fixed bug, codereview settings and ML > communication. > > > > > > > > > > Thanks for choosing Scilab and good chance, > > > > > > > > > > -- > > > > > Cl?ment > > > > > > > > > > _______________________________________________ > > > > > 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 > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Tue Mar 22 17:17:34 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 22 Mar 2016 17:17:34 +0100 Subject: [Scilab-users] GSoC 2016 In-Reply-To: References: <1458577233.11844.4.camel@scilab-enterprises.com> <1458631825.11844.20.camel@scilab-enterprises.com> <1458654363.11844.34.camel@scilab-enterprises.com> Message-ID: <1458663454.11844.42.camel@scilab-enterprises.com> And also, use the gsoc at lists.scilab.org?for GSoC related communication :) . -- Cl?ment Le mardi 22 mars 2016 ? 20:50 +0530, Lahiru Dilshan a ?crit?: > Thanks Clement. I'll try this project. I'll start to write the proposal. > > On Tue, Mar 22, 2016 at 7:16 PM, Cl?ment David wrote: > > Hi Lahiru, > > > > As far as I remember, you are the first one asking for this subject. This does not mean that you > > will be the only one at the end :) . > > > > Good chance writing your proposal ! > > > > -- > > Cl?ment > > > > Le mardi 22 mars 2016 ? 18:51 +0530, Lahiru Dilshan a ?crit?: > > > Hi Clement, > > > Can you sure that the Java Script API is not selected in GSoC this year?? > > > https://wiki.scilab.org/GSoC_project_proposal link shows the project ideas of Scilab and the > > Java > > > Script API project is there. > > > > > > On Tue, Mar 22, 2016 at 1:00 PM, Cl?ment David wrote: > > > > Hi Lahiru, > > > > > > > > The Java Scripting API has not been selected AFAIK. It might be an improved version of > > javasci > > > > and > > > > thus might be easy to start as all the code infrastructure is already present. The > > interesting > > > > part > > > > of this project is not to fully re-implement a feature but instead to standardize it. > > > > > > > > About technicalities, this is a Java development with some SWIG generated mapping and > > > > performance > > > > might be taken into account to reduce copies. Add your understanding of the current javasci > > API > > > > on > > > > the proposal and if correct you may pass :) . > > > > > > > > The anonymous usage report has already a proposal this year. > > > > > > > > Regards, > > > > > > > > -- > > > > Cl?ment > > > > > > > > > > > > Le mardi 22 mars 2016 ? 11:33 +0530, Lahiru Dilshan a ?crit?: > > > > > Hi Clement, > > > > > > > > > > In project ideas web page of Scilab, the GSoC priority of the project PDF generation is > > > > mentioned > > > > > as high. > > > > > But, If you suggest to select another project, I'm interested in Java Scripting Api and > > > > Anonymous > > > > > Usage Tracking projects. > > > > > So, can u give me more details about those projects which one is the high priority this > > year? > > > > > > > > > > Thanks. > > > > > > > > > > On Mon, Mar 21, 2016 at 9:50 PM, Cl?ment David > > wrote: > > > > > > Hi?Lahiru and welcome, > > > > > > > > > > > > Le lundi 21 mars 2016 ? 20:28 +0530, Lahiru Dilshan a ?crit?: > > > > > > > HI, I'm Lahiru Dilshan. I'm a 3rd year undergraduate in Faculty of Engineering, > > University > > > > of > > > > > > > Peradeniya, Sri Lanka. I'm doing Computer Engineering. I am interested in one of your > > > > project > > > > > > > ideas in GSoC which is PDF Generation. I have a good knowledge about Java and So, I'd > > like > > > > to > > > > > > > contribute to that project. I'm currently studyng the sample java code provided in the > > > > > > > description. What should I know and can I have some more details about this project? ? > > > > > > > > > > > > This project has already been performed on the SOCIS'15 but still need more work before > > > > merging. > > > > > > This is thus a low priority task for the GSoC this year. I suggest you to select another > > > > > > proposal. > > > > > > > > > > > > Note: before trying to understand this piece of code, please fulfill the requirements. > > Bonus > > > > > > points > > > > > > will be applied for fixed bug, codereview settings and ML communication. > > > > > > > > > > > > Thanks for choosing Scilab and good chance, > > > > > > > > > > > > -- > > > > > > Cl?ment > > > > > > > > > > > > _______________________________________________ > > > > > > 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 > > _______________________________________________ > > 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 sgougeon at free.fr Tue Mar 22 21:54:10 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 22 Mar 2016 21:54:10 +0100 Subject: [Scilab-users] leastsq question : what is 'gopt' useful for? In-Reply-To: <56F11692.2090508@utc.fr> References: <56F1132E.2090705@laas.fr> <56F11692.2090508@utc.fr> Message-ID: <56F1B0F2.30407@free.fr> Hi, Le 22/03/2016 10:55, St?phane Mottelet a ?crit : > Hello, > > Le 22/03/2016 10:41, antoine.monmayrant at laas.fr a ?crit : >> Hi everyone, >> >> I have a very general and naive question concerning leastsq: what am >> I to do with "gopt", the "gradient of f at xopt"? >> >> Is there a way to link it to the confidence interval for each >> parameter of my fit? > Not really, but since leastsq is a wrapper for optim, which returns > the gradient at returned "optimal" solution, it is also returned. > However, if the final gradient is seen to be far from the zero vector, > then all confidence intervals based on the inverse of the Fisher > matrix (computed with the Jacobian) will not have any sense, since > these "linear" statistics are based on a development where the first > term (using the gradient) is supposed to vanish... Hence, having > access to the final gradient can be of interest. We may guess that, if bounds constraints are set for x, a non-zero gradient could as well be returned whether xopt reaches a point on the boundary, where fun() has not a true minimum, just a negative interrupted slope leading it to a low value. >> For the moment, I know how to estimate these confidence intervals >> when I have access to the Jacobian matrix of my fit function. I am not sure that we are speaking about the same jacobian. On one hand, we have some c(i) coordinates (say of spaces: c(1)=x, c(2)=y, etc)) on which fun() depends. On the other hand, we have p(j) parameters on which fun() also depends. As good quiet parameters, p(j) have fixed values, whereas c(i) are varied by leastsq(). AFAIU, Stephane's answer assumes that the x "passed" to leastqr() is the full set gathering {c(i)} AND {p(j)}. Whereas, still afaiu, you look interested in somewhat getting the sensitivity of fun() with respect to each parameter p(j) around the minimum value of fun({c(i)}) (parameters p(i) being fixed in the fun() definition). Here, i don't think that we can speak more than about sensitivity. "Confidence" is not the proper term, since parameters values p(j) are deterministic and fixed. They are not random variables. To assess this sensitivity, you will need the fun() jacobian, BUT with respect to p(j), not wrt to c(i) ! To get what you want, i could suggest to run leastsq() with x={c(i)} U {p(j)} Then, unless the optimum is reached on a boundary, the absolute value of the derivative of order *2* of fun() along each p(j) direction evaluated at xopt will be related to the "confidence interval", Unless the derivative of order 2 vanishes as well... (so then of order 3... etc) A more pragmatic way to get this interval could be to evaluate fun() around xopt, just varying (with grand()) the p(j) component of xopt you want to get the confidence, and measuring the spread of fun()'s answers. >> Could "gopt" be of some use to estimate the confidence intervals when >> the Jacobian matrix is not known? As Stephane said, in no way. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed Mar 23 09:58:25 2016 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 23 Mar 2016 09:58:25 +0100 Subject: [Scilab-users] Reintroducing stacksize on Scilab 6 ? was (Re: multiple element by element between large matrix and vector) In-Reply-To: <1443434473.3942.29.camel@scilab-enterprises.com> References: <1443434473.3942.29.camel@scilab-enterprises.com> Message-ID: <56F25AB1.9080304@laas.fr> Le 09/28/2015 12:01 PM, Cl?ment David a ?crit : > Hello all, > >> Also, if you don't already know about it, stacksize is a handy Scilab >> function if you're working with large data arrays. "stacksize max" >> will >> either give you the biggest Scilab stack that can be had or crash >> your >> machine, depending on your version (it appears to work in the current >> version). "stacksize(nnn)" will set your stacksize to nnn, without >> crashing your machine (to my knowledge). "stacksize" will report the >> current stacksize. > As a reference, David posted a bug on that > http://bugzilla.scilab.org/show_bug.cgi?id=14176 and he targets Scilab > 6. > > So I have a question on your needs for Scilab 6. There is currently no > more stacksize as all the system's memory is available. To protect > users, I suggested to re-introduce `stacksize` with a changed behavior > : > > * M=stacksize(N) : will set N * sizeof(double) bytes available on the > Scilab datatypes raw memory > will return M the previous sett'ed value > * stacksize('max') : will disable any memory restriction > > ## Why re-introducing `stacksize` ? > > On my Linux system (with 8Go of RAM and some applications started), > allocating all my memory (like with `zeros(2**30,2**3)`) slow my > computer down and succeed after a lot of time. Reducing the memory > available to Scilab using `stacksize` will help user discover algorithm > or memory issues more rapidly and without swapping most of the other > applications *by default* . > > My point is not to limit the available memory issue but ease language > usage for new-comers by protect them against typo or mis-design > algorithms. > > Awaiting your opinion, Fine by me. Also, as I just mention on this bug report http://bugzilla.scilab.org/show_bug.cgi?id=14266 we should keep stacksize in 6.0 as it was not deprecated in 5.5.2. Cheers, Antoine > > -- > Cl?ment David > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From anna.parravicini at cnao.it Wed Mar 23 10:10:55 2016 From: anna.parravicini at cnao.it (anna78) Date: Wed, 23 Mar 2016 02:10:55 -0700 (MST) Subject: [Scilab-users] Unknown exception with "newaxes" function. Message-ID: <1458724255724-4033832.post@n3.nabble.com> Hi all, using the following code: "clf(1); f=figure(1); f.figure_position=[200,0] f.figure_size=[800,700] f.figure_name=particle+' monitoring (hour average)'; subplot(211) xtitle(particle+" mean position @ PUB - hour average"); xsetech([0,0,1,0.4]); xlabel('timestamp (yymmddhh)'); ylabel('[mm]'); plot(xMean,'r.','markersiz',3); plot(yMean,'k.','markersiz',3); xgrid(0); a=gca(); h1=legend([strx;stry],1);// -1 = out upper right subplot(212) ... " the script (few) times work correctly, most of the times it says: "Warning !!! Scilab has found a critical error (Unknown exception) with "newaxes" function. Save your data and restart Scilab. !--error 1 Assegnazione sbagliata. at line 46 of function subplot called by : subplot(212) " can somebody help me? Why it could have troubles making the second subplot? thanks a lot, Anna -- View this message in context: http://mailinglists.scilab.org/Unknown-exception-with-newaxes-function-tp4033832.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Wed Mar 23 10:44:56 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 23 Mar 2016 10:44:56 +0100 Subject: [Scilab-users] gateway compatibility In-Reply-To: <56F0FDD7.5030101@amsterchem.com> References: <56D05435.50106@amsterchem.com> <56F0FDD7.5030101@amsterchem.com> Message-ID: <1458726296.3655.21.camel@scilab-enterprises.com> Hello Jasper, Yes it should be *but* this is not 100% guarantee. We tried to avoid any breakage during the alpha to beta transition on gateways but preferred to have a better 6.0.0 API on the beta. The reason of the C_GATEWAY_PROTOTYPE to?STACK_GATEWAY_PROTOTYPE conversion is that we intrduced in November a new C API that will supersede the legacy api_scilab. The idea behind is to remove all the stack related logic and to have similar performance to the C++ types management. We thus renamed C to STACK for the legacy API. NOTE: the api_scilab legacy is still documented and will not be deprecated soon ;) Regards, -- Cl?ment Le mardi 22 mars 2016 ? 09:09 +0100, jasper van baten a ?crit?: > Dear all,? > > Will the 6.0 release be binary compatible with 6.0 beta? > > Best wishes,? > > Jasper. > > On 2/26/2016 14:33, jasper van baten wrote: > > Dear all,? > > > > I noticed that the gateway routines are not binary compatible between 6.0 alpha and 6.0 beta. > > Also the source has changed somewhat, so the ilib_gen_gateway has to be rerun to update source > > (particularly C_GATEWAY_PROTOTYPE changed to STACK_GATEWAY_PROTOTYPE) > > > > Will the 6.0 beta gateway routines be binary compatible with the 6.0 release? > > > > Many thanks, best wishes,? > > > > Jasper. > ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From amonmayr at laas.fr Wed Mar 23 15:08:26 2016 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Wed, 23 Mar 2016 15:08:26 +0100 Subject: [Scilab-users] leastsq question : what is 'gopt' useful for? In-Reply-To: <56F1B0F2.30407@free.fr> References: <56F1132E.2090705@laas.fr> <56F11692.2090508@utc.fr> <56F1B0F2.30407@free.fr> Message-ID: <56F2A35A.3020606@laas.fr> Le 03/22/2016 09:54 PM, Samuel Gougeon a ?crit : > Hi, > > Le 22/03/2016 10:55, St?phane Mottelet a ?crit : >> Hello, >> >> Le 22/03/2016 10:41, antoine.monmayrant at laas.fr a ?crit : >>> Hi everyone, >>> >>> I have a very general and naive question concerning leastsq: what am >>> I to do with "gopt", the "gradient of f at xopt"? >>> >>> Is there a way to link it to the confidence interval for each >>> parameter of my fit? >> Not really, but since leastsq is a wrapper for optim, which returns >> the gradient at returned "optimal" solution, it is also returned. >> However, if the final gradient is seen to be far from the zero >> vector, then all confidence intervals based on the inverse of the >> Fisher matrix (computed with the Jacobian) will not have any sense, >> since these "linear" statistics are based on a development where the >> first term (using the gradient) is supposed to vanish... Hence, >> having access to the final gradient can be of interest. > > We may guess that, if bounds constraints are set for x, a non-zero > gradient could as well be returned whether xopt reaches a point on the > boundary, where fun() has not a true minimum, just a negative > interrupted slope leading it to a low value. Right. I usually check whether a given parameter is equal to one of its boundaries to avoid this kind of issues. > >>> For the moment, I know how to estimate these confidence intervals >>> when I have access to the Jacobian matrix of my fit function. > I am not sure that we are speaking about the same jacobian. Well, I am talking about the dfun() function as described in the help page of leastsq. I use it to get an estimate of the confidence interval for each parameter of my fit based on "Least Squares Estimation", SARA A. VAN DE GEER Volume 2, pp. 1041-1045, in Encyclopedia of Statistics in Behavioral Science, ISBN-13: 978-0-470-86080-9. > On one hand, we have some c(i) coordinates (say of spaces: c(1)=x, > c(2)=y, etc)) > on which fun() depends. On the other hand, we have p(j) parameters on > which fun() also depends. > As good quiet parameters, p(j) have fixed values, whereas c(i) are > varied by leastsq(). Well, I am not sure I follow you here. I usually describe my fit functions as yfit=myfit(x,param) and try to find the best param to fit some experimental measurements {yexp,xexp}, ie such that |yexp-myfit(xexp,param)| is minimized (in the least square sense). Are my xexp your p(j) and my param your c(i)? > > AFAIU, Stephane's answer assumes that the x "passed" to leastqr() is > the full set gathering {c(i)} AND {p(j)}. > Whereas, still afaiu, you look interested in somewhat getting the > sensitivity of fun() with respect to each > parameter p(j) around the minimum value of fun({c(i)}) (parameters > p(i) being fixed in the fun() > definition). Nope, I don't think. I just want, in my case, to see how much I can vary each param(i) without really altering the minimization of yfit-yexp. The idea is to get grasp of how sharp is the minimization with respect to each param(i), in order to determine how to interpret and later use the param(i) given by the fit. (if param(1)=12.235658+/-1.0, it does not make sense to look too closely at the decimal part). This can be achieved using Jackknifing or Bootstrapping (see for example http://www.jstor.org/stable/2289075?seq=1#page_scan_tab_contents), but these methods are resource intensive. Using dfun() and some assumptions give a way faster estimate. > Here, i don't think that we can speak more than about sensitivity. > "Confidence" is not the proper term, > since parameters values p(j) are deterministic and fixed. They are not > random variables. > To assess this sensitivity, you will need the fun() jacobian, BUT with > respect to p(j), not wrt to c(i) ! > > To get what you want, i could suggest to run leastsq() with x={c(i)} U > {p(j)} > Then, unless the optimum is reached on a boundary, the absolute value > of the derivative of order > *2* of fun() along each p(j) direction evaluated at xopt will be > related to the "confidence interval", > Unless the derivative of order 2 vanishes as well... (so then of order > 3... etc) Well, that is how I understood the calculation of the confidence interval as described in "Least Squares Estimation". The scaling factor depends on the kind of interval of confidence you choose (90,95,99%, ...). > A more pragmatic way to get this interval could be to evaluate fun() > around xopt, just varying > (with grand()) the p(j) component of xopt you want to get the > confidence, and measuring the > spread of fun()'s answers. Well, I am not sure to see how to use what you propose in practice. In particular, how do I measure the width of the spread around the optimum value? It's easier with jackkniffing where this width is the sigma of the distribution of param(i) across the various fits. > >>> Could "gopt" be of some use to estimate the confidence intervals >>> when the Jacobian matrix is not known? > As Stephane said, in no way. Yep, I was totally wrong there... Thanks, Antoine > > HTH > Samuel > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From marek.havrilla at gmail.com Wed Mar 23 22:38:43 2016 From: marek.havrilla at gmail.com (laftek) Date: Wed, 23 Mar 2016 14:38:43 -0700 (MST) Subject: [Scilab-users] Phase shift and step size in XCOS - electrical In-Reply-To: <1458594914582-4033797.post@n3.nabble.com> References: <1458594914582-4033797.post@n3.nabble.com> Message-ID: <1458769123479-4033842.post@n3.nabble.com> Thank you for such quick response. So far i found that there are 3 ways to get phase shift. But I am not sure if these are right solutions. *1.)* It?s the one I mentioned. I tried to reconstruct fourier block from MATLAB : http://postimg.org/image/l764cdb1v/ But there is atan2 block which i cant replace in xcos (undefined variable : atan2). So I found alternative to atan2(x,y) - atan(y/x) but there is singularity problem : http://postimg.org/image/4vg07lm91/ Any idea ? *2.)* Very simple solution. I succesfully got angle : http://postimg.org/image/mknvh4u3l/ but if I am trying to implement rad to degree convertor block I am getting the same error : Singularity in a block : http://postimg.org/image/yqpfn5j31/ Do you know some workaround ? *3.)* The last one : in this case I dont know how to transform it to xcos (zero crossing blocks) and I need to know what quadrant the angle is in. http://postimg.org/image/g6b851s2j/ quadrants : I know these are simple methods but it is all I got so far. Let me know if there is something wrong or some other way how to get angle between two signals. I would greatly appreciate any help. Thanks in advance. -- View this message in context: http://mailinglists.scilab.org/Phase-shift-and-step-size-in-XCOS-electrical-tp4033797p4033842.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Thu Mar 24 09:21:05 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 24 Mar 2016 09:21:05 +0100 Subject: [Scilab-users] Phase shift and step size in XCOS - electrical In-Reply-To: <1458769123479-4033842.post@n3.nabble.com> References: <1458594914582-4033797.post@n3.nabble.com> <1458769123479-4033842.post@n3.nabble.com> Message-ID: <56F3A371.6070401@inria.fr> Le 23/03/2016 22:38, laftek a ?crit : > Thank you for such quick response. > > So far i found that there are 3 ways to get phase shift. But I am not sure > if these are right solutions. > > *1.)* > > It?s the one I mentioned. I tried to reconstruct fourier block from MATLAB : > http://postimg.org/image/l764cdb1v/ > > But there is atan2 block which i cant replace in xcos (undefined variable : > atan2). So I found alternative to atan2(x,y) - atan(y/x) but there is > singularity problem : > http://postimg.org/image/4vg07lm91/ > > Any idea ? The Scilab equivalent of Matlab atan2(x,y) is atan(x,y) Serge > > *2.)* > > Very simple solution. > > > > I succesfully got angle : > http://postimg.org/image/mknvh4u3l/ > > but if I am trying to implement rad to degree convertor block I am getting > the same error : Singularity in a block : > http://postimg.org/image/yqpfn5j31/ > > Do you know some workaround ? > > *3.)* > > The last one : in this case I dont know how to transform it to xcos (zero > crossing blocks) and I need to know what quadrant the angle is in. > http://postimg.org/image/g6b851s2j/ > > quadrants : > > > > I know these are simple methods but it is all I got so far. Let me know if > there is something wrong or some other way how to get angle between two > signals. > > I would greatly appreciate any help. Thanks in advance. > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Phase-shift-and-step-size-in-XCOS-electrical-tp4033797p4033842.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 scilab.20.browseruk at xoxy.net Fri Mar 25 17:00:11 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Fri, 25 Mar 2016 08:00:11 -0800 Subject: [Scilab-users] getf()? Message-ID: <4837DC88C8B.0000059Ascilab.20.browseruk@xoxy.net> Hi, I want to write an interactive graphics app -- move slider, graph changes -- and went looking for an example to get me started. I found a couple, but both crap out with the same problem: -->exec('E:\pdtk\inittk.sce',-1) getf(p+"tkscaleblk.sci") !--error 4 Undefined variable: getf at line 2 of exec file called by : exec('E:\pdtk\inittk.sce',-1) When I look getf() up in the help, no hits are returned? If this is a deprecated function, what would be the right thing to replace it with? (And given there is a lot of code out there that seems to use this function, wouldn't it be nice if help was helpful and told me how to replace it?) Cheers, Buk ____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/manager From sgougeon at free.fr Fri Mar 25 17:34:49 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 25 Mar 2016 17:34:49 +0100 Subject: [Scilab-users] getf()? In-Reply-To: <4837DC88C8B.0000059Ascilab.20.browseruk@xoxy.net> References: <4837DC88C8B.0000059Ascilab.20.browseruk@xoxy.net> Message-ID: <56F568A9.60307@free.fr> Hi, What are you expecting from "getf()"? What is it supposed to do? From noguchi at kje.biglobe.ne.jp Fri Mar 25 17:54:40 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Fri, 25 Mar 2016 09:54:40 -0700 (MST) Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: <1458569563883-4033793.post@n3.nabble.com> References: <1458122742532-4033749.post@n3.nabble.com> <56E93C86.2050801@inria.fr> <1458136017314-4033755.post@n3.nabble.com> <1458223792931-4033776.post@n3.nabble.com> <1458569563883-4033793.post@n3.nabble.com> Message-ID: <1458924880075-4033859.post@n3.nabble.com> Hello, SCilab Users, May I ask your help? I still not find practical solution to minimize my object function by Scilab tools. Model: ym(n)=ym(n-1)*amp+Kpm*bmp*u(n-1-Tdm) where n=step=1:1:500) Object function: sum of square of (y(n)-ym(n)) Using Excel, I made same objective funtion and minimize it by solver. The solution is sometimes good but some times bad. Therefore, I still need Scilab code to solve this problem. May I ask how I can wrote scilab commend to solve this problem? Thank you for your help. Y. Noguchi FODDT_ModelID_SISO_r0.xls -- View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033859.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tim at wescottdesign.com Fri Mar 25 18:54:18 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 25 Mar 2016 10:54:18 -0700 Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: <1458924880075-4033859.post@n3.nabble.com> References: <1458122742532-4033749.post@n3.nabble.com> <56E93C86.2050801@inria.fr> <1458136017314-4033755.post@n3.nabble.com> <1458223792931-4033776.post@n3.nabble.com> <1458569563883-4033793.post@n3.nabble.com> <1458924880075-4033859.post@n3.nabble.com> Message-ID: <1458928458.2818.3.camel@Servo> On Fri, 2016-03-25 at 09:54 -0700, noguchi wrote: > Hello, SCilab Users, > > May I ask your help? > > I still not find practical solution to minimize my object function by Scilab > tools. > Model: ym(n)=ym(n-1)*amp+Kpm*bmp*u(n-1-Tdm) where n=step=1:1:500) > Object function: sum of square of (y(n)-ym(n)) > > > Using Excel, I made same objective funtion and minimize it by solver. The > solution is sometimes good but some times bad. Therefore, I still need > Scilab code to solve this problem. > > May I ask how I can wrote scilab commend to solve this problem? > > Thank you for your help. > > > Y. Noguchi FODDT_ModelID_SISO_r0.xls > > > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033859.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 > > I don't have time to work up an example of this, but -- have you looked at the help page for datafit? It looks like it'll do the job (I know how to do this with optim, but I suspect that I should have been using datafit for a lot of that stuff). You may want to make sure you know what you're optimizing _for_ -- I assume that ym(0) = 0, and that amp, Kpm, bmp and Tdm are your free parameters. If so, you may want to revisit your problem -- Kpm and bmp are redundant; if you're trying to optimize on both of them then you may be confusing the optimizer. -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From scilab.20.browseruk at xoxy.net Fri Mar 25 20:36:48 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Fri, 25 Mar 2016 11:36:48 -0800 Subject: [Scilab-users] getf()? In-Reply-To: <56F568A9.60307@free.fr> References: <4837dc88c8b.0000059ascilab.20.browseruk@xoxy.net> Message-ID: <4A1C06B5931.00000718scilab.20.browseruk@xoxy.net> That's the same question I am asking. To reiterate: I downloaded an example SciLab application http://www.scicos.org/examples/pdtk.zip And when I run it, it halts attempting to call a function getf(), that is unknown in my version of SciLab (5.5.2). Presumably, the application worked with some earlier version of SciLab, and the function has changed name or been deprecated in favour of some other function that provides the same or similar functionality; but there is no reference at all to getf() in the help for my version. The call appears to be loading or invoking contents of a .sci file. My question is therefor, how should I modify the application I've downloaded to make it work with my version of SciLab? Cheers, Buk. > -----Original Message----- > From: scilab.browseruk.bb30c473ec.sgougeon#free.fr at ob.0sg.net > Sent: Fri, 25 Mar 2016 17:34:49 +0100 > To: users at lists.scilab.org > Subject: Re: [Scilab-users] getf()? > > Hi, > What are you expecting from "getf()"? What is it supposed to do? > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth From grocer.toolbox at gmail.com Fri Mar 25 20:42:23 2016 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Fri, 25 Mar 2016 20:42:23 +0100 Subject: [Scilab-users] getf()? In-Reply-To: <4A1C06B5931.00000718scilab.20.browseruk@xoxy.net> References: <4837dc88c8b.0000059ascilab.20.browseruk@xoxy.net> <56F568A9.60307@free.fr> <4A1C06B5931.00000718scilab.20.browseruk@xoxy.net> Message-ID: getf has been replaced with exec(...). See help exec. ?ric. 2016-03-25 20:36 GMT+01:00 : > That's the same question I am asking. > > To reiterate: I downloaded an example SciLab application > > http://www.scicos.org/examples/pdtk.zip > > And when I run it, it halts attempting to call a function getf(), > that is unknown in my version of SciLab (5.5.2). > > Presumably, the application worked with some earlier version of SciLab, > and the function has changed name or been deprecated in favour of some > other function that provides the same or similar functionality; > but there is no reference at all to getf() in the help for my version. > > The call appears to be loading or invoking contents of a .sci file. > > My question is therefor, how should I modify the application I've > downloaded to make it work with my version of SciLab? > > Cheers, Buk. > > > -----Original Message----- > > From: scilab.browseruk.bb30c473ec.sgougeon#free.fr at ob.0sg.net > > Sent: Fri, 25 Mar 2016 17:34:49 +0100 > > To: users at lists.scilab.org > > Subject: Re: [Scilab-users] getf()? > > > > Hi, > > What are you expecting from "getf()"? What is it supposed to do? > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > ____________________________________________________________ > FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! > Check it out at http://www.inbox.com/earth > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From scilab.20.browseruk at xoxy.net Fri Mar 25 21:24:31 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Fri, 25 Mar 2016 12:24:31 -0800 Subject: [Scilab-users] getf()? In-Reply-To: References: <4837dc88c8b.0000059ascilab.20.browseruk@xoxy.net> <4a1c06b5931.00000718scilab.20.browseruk@xoxy.net> <56f568a9.60307@free.fr> Message-ID: <4A86ADBB60F.00000780scilab.20.browseruk@xoxy.net> > getf has been replaced with exec(...). See help exec. ?ric. Thanks Eric. Replacing the two calls to getf() in inittk.sce with exec() got me further. Then it trapped on the call to scicos() (presumably the library/application distributed by the website where I found the example.) However, I'd seen xcos() in the docs, took a punt that this was scicos folded into the main SciLab distribution and I substituted thatxcos() for scicos() and the application went to the next level and displayed an xcos window of ?icons?. That had a "run" button, which I clicked and a graphics window (window 0) popped up briefly, before the entire system (SciLab et. al,) terminated silently. Any thoughts on how to work out what happened and how to fix it? (Sorry for the simplistic questions; but I'm very new to SciLab.) Thanks, Buk. ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth From noguchi at kje.biglobe.ne.jp Sat Mar 26 02:43:06 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Fri, 25 Mar 2016 18:43:06 -0700 (MST) Subject: [Scilab-users] Optimization: First order delay and dead time TF model ID, CUTEr In-Reply-To: <1458928458.2818.3.camel@Servo> References: <1458122742532-4033749.post@n3.nabble.com> <56E93C86.2050801@inria.fr> <1458136017314-4033755.post@n3.nabble.com> <1458223792931-4033776.post@n3.nabble.com> <1458569563883-4033793.post@n3.nabble.com> <1458924880075-4033859.post@n3.nabble.com> <1458928458.2818.3.camel@Servo> Message-ID: <08de5590-ec9e-4bb8-9931-36d8c3ddce23@bvec34483> Tim, Thank you for your message. I read datafit help several times. However, it is quite difficult for me to understand it. > Model: ym(n)=ym(n-1)*amp+Kpm*bmp*u(n-1-Tdm) where n=step=1:1:500) > Where amp=exp(-Tsample/Taup), Tsample=1, bmp=1-amp > Object function: sum of square of (y(n)-ym(n)) Variables to be changed to minimize the value of object functions are: Kp, Taup and Tdm How should I write Scilab commands for this problem? Thanks, Y. Noguchi ----- ??????? ----- ???: "Tim Wescott [via Scilab / Xcos - Mailing Lists Archives]" ??: "noguchi" ????: 2016?3?26?(???) 02:57:03 ??: Re: Optimization: First order delay and dead time TF model ID, CUTEr On Fri, 2016-03-25 at 09:54 -0700, noguchi wrote: > Hello, SCilab Users, > > May I ask your help? > > I still not find practical solution to minimize my object function by Scilab > tools. > Model: ym(n)=ym(n-1)*amp+Kpm*bmp*u(n-1-Tdm) ?where n=step=1:1:500) > Object function: sum of square of (y(n)-ym(n)) > > > Using Excel, I made same objective funtion and minimize it by solver. The > solution is sometimes good but some times bad. Therefore, I still need > Scilab code to solve this problem. > > May I ask how I can wrote scilab commend to solve this problem? > > Thank you for your help. > > > Y. Noguchi FODDT_ModelID_SISO_r0.xls > < http://mailinglists.scilab.org/file/n4033859/FODDT_ModelID_SISO_r0.xls > ? > > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033859.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > I don't have time to work up an example of this, but -- have you looked at the help page for datafit? ?It looks like it'll do the job (I know how to do this with optim, but I suspect that I should have been using datafit for a lot of that stuff). You may want to make sure you know what you're optimizing _for_ -- I assume that ym(0) = 0, and that amp, Kpm, bmp and Tdm are your free parameters. If so, you may want to revisit your problem -- Kpm and bmp are redundant; if you're trying to optimize on both of them then you may be confusing the optimizer. -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: ?503.349.8432 -- View this message in context: http://mailinglists.scilab.org/Optimization-First-order-delay-and-dead-time-TF-model-ID-CUTEr-tp4033749p4033862.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From scilab.20.browseruk at xoxy.net Sat Mar 26 08:39:53 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Fri, 25 Mar 2016 23:39:53 -0800 Subject: [Scilab-users] Debugging binary .cos Message-ID: <506C433C5E4.000000BCscilab.20.browseruk@xoxy.net> Hi, I'm trying to get a SciLab xcos application contained in http://www.scicos.org/examples/pdtk.zip to work. It appears to have been built for an earlier version of SciLab than I am using (5.2.2), and so requires some changes. This is now done to the point where the invocation of the binary file pdtk.cos causes the xcos window to appear successfully. However, when I click the run button, a graphics window appears briefly before the whole application -- graphics, xcos, and scilab console et. al. -- just vanish and the entire kit & caboodle self terminates silently. By silently, I mean literally nothing. No popups. Nothing in the system or application logs. Nothing that I can find anywhere. SciLab just stops. Can anyone suggest how to begin to debug this? Alternatively, what I'm really after is an example of controlling the parameters of a graph interactively via the mouse or keyboard. Probably (I think; I'm very new to SciLab) using the mouse or keystroke in one subplot plot to visually adjust the parameter values and have the graph (2d plot) in another subplot change accordingly. Does anyone know of an example of doing something like this that is publicly available. I'm just looking to short-circuit the learning curve. Thanks, Buk. ____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! Check it out at http://www.inbox.com/marineaquarium From scilab.20.browseruk at xoxy.net Sun Mar 27 16:21:41 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Sun, 27 Mar 2016 06:21:41 -0800 Subject: [Scilab-users] The value of a uicontrol within its callback? Message-ID: <6080FACED94.000001FBscilab.20.browseruk@xoxy.net> How do you access the value of a uicontrol (spinner or slider) from within its callback code? Thanks, Buk ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth From Serge.Steer at inria.fr Sun Mar 27 19:37:49 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Sun, 27 Mar 2016 19:37:49 +0200 Subject: [Scilab-users] The value of a uicontrol within its callback? In-Reply-To: <6080FACED94.000001FBscilab.20.browseruk@xoxy.net> References: <6080FACED94.000001FBscilab.20.browseruk@xoxy.net> Message-ID: <56F81A6D.7010807@inria.fr> Inside the callback, the gcbo variable contains the handle on the uicontrol so gcbo.value is probably what you are looking for Serge Steer Le 27/03/2016 16:21, scilab.20.browseruk at xoxy.net a ?crit : > How do you access the value of a uicontrol (spinner or slider) from within its callback code? > > Thanks, Buk > > ____________________________________________________________ > FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! > Check it out at http://www.inbox.com/earth > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From scilab.20.browseruk at xoxy.net Tue Mar 29 17:31:38 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Tue, 29 Mar 2016 07:31:38 -0800 Subject: [Scilab-users] A generic datastructure dump tool? Message-ID: <7A42A55A36E.000001B9scilab.20.browseruk@xoxy.net> I've been fighting with SciLab's Graphics & GUI stuff for a week or so trying to arrange to have a line on a graph update its position in response to user manipulations of some controls (spinners or sliders) that adjust the coefficients of the polynomial the line of the graph represents. I have a "working" version (and have had several others), but they all suffer from the same problem: namely that in order to redraw the line I have to redraw the entire graph, which defeats the point of the exercise which is to see how varying each of the coefficients affects the line. The process of re-draw is so slow that you can't see what changes. To fix this, (I think) I need to delve deep into the gui/figure tree and bypass the high level calls to plot??(). Basically, I need to: Arrange for the polyline that represent the polynomial to be drawn using pixel_drawing_mode:XOR. And once the polynomial has been modified, re-draw (undraw) the previous line and the draw the new line again in XOR mode. But, I'm having inordinate trouble trying to work out how all the different parts of a plot() draw figure tree fit together. It would (I think) be very useful to be able to dump the entire tree of a plot figure as text so that I can work out at what level I need to intervene to achieve my goal. But how to dump the tree to text? Thanks, Buk ____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! Check it out at http://www.inbox.com/marineaquarium From sgougeon at free.fr Tue Mar 29 18:12:57 2016 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 29 Mar 2016 18:12:57 +0200 (CEST) Subject: [Scilab-users] A generic datastructure dump tool? In-Reply-To: <7A42A55A36E.000001B9scilab.20.browseruk@xoxy.net> Message-ID: <1951534340.86470734.1459267977986.JavaMail.root@zimbra75-e12.priv.proxad.net> >De: "scilab 20 browseruk" >Objet: [Scilab-users] A generic datastructure dump tool? > .../... >I have a "working" version (and have had several others), but they all suffer from the >same problem: namely that in order to redraw the line I have to redraw the entire graph, >which defeats the point of the exercise which is to see how varying each of the >coefficients affects the line. The process of re-draw is so slow that you can't see what changes. Hello, After getting the handle PL of your polyline, you can directly update its points through PL.data Then, the graphics is directly updated. You don't need to redraw it with plot() ot plot2d(). HTH Samuel From tim at wescottdesign.com Tue Mar 29 19:08:40 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 29 Mar 2016 10:08:40 -0700 Subject: [Scilab-users] A generic datastructure dump tool? In-Reply-To: <7A42A55A36E.000001B9scilab.20.browseruk@xoxy.net> References: <7A42A55A36E.000001B9scilab.20.browseruk@xoxy.net> Message-ID: <1459271320.2818.25.camel@Servo> In addition to Samuel's suggestion, you can turn plotting off, modify things, and then turn plotting on. This vastly speeds up the process because the graph is only getting redrawn once each iteration. The syntax is: scf(); drawlater(); < do your magic there > drawnow(); This may even speed up things when you are using Samuel's suggestion. It speeds things up that when I'm doing a simulation that has a lot of check plots, the check plot code is usually written scf() drawlater(); clf; < magic > drawnow(); On Tue, 2016-03-29 at 07:31 -0800, scilab.20.browseruk at xoxy.net wrote: > I've been fighting with SciLab's Graphics & GUI stuff for a week or so trying to arrange to have a line on a graph update its position in response to user manipulations of some controls (spinners or sliders) that adjust the coefficients of the polynomial the line of the graph represents. > > I have a "working" version (and have had several others), but they all suffer from the same problem: namely that in order to redraw the line I have to redraw the entire graph, which defeats the point of the exercise which is to see how varying each of the coefficients affects the line. The process of re-draw is so slow that you can't see what changes. > > To fix this, (I think) I need to delve deep into the gui/figure tree and bypass the high level calls to plot??(). > > Basically, I need to: > > Arrange for the polyline that represent the polynomial to be drawn using pixel_drawing_mode:XOR. > > And once the polynomial has been modified, re-draw (undraw) the previous line and the draw the new line again in XOR mode. > > But, I'm having inordinate trouble trying to work out how all the different parts of a plot() draw figure tree fit together. > > It would (I think) be very useful to be able to dump the entire tree of a plot figure as text so that I can work out at what level I need to intervene to achieve my goal. > > But how to dump the tree to text? > > Thanks, Buk > > ____________________________________________________________ > FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! > Check it out at http://www.inbox.com/marineaquarium > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From scilab.20.browseruk at xoxy.net Tue Mar 29 21:32:14 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Tue, 29 Mar 2016 11:32:14 -0800 Subject: [Scilab-users] A generic datastructure dump tool? Message-ID: <7C5C697F78A.0000039Fscilab.20.browseruk@xoxy.net> >After getting the handle PL of your polyline, you can directly update its points through PL.data >Then, the graphics is directly updated. You don't need to redraw it with plot() ot plot2d(). >HTH >Samuel Thanks Samuel, that works brilliantly. The re-draw is so fast I had to insert a sleep( 10 ) between iterations. A follow up question (assuming that isn't breaking the list rules). Is there a better way than using a for loop to map two vectors x, y to a matrix ( [x1,y1],[x2,y2], ... )? Cheers, Buk. ____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/manager From tim at wescottdesign.com Tue Mar 29 21:54:32 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 29 Mar 2016 12:54:32 -0700 Subject: [Scilab-users] A generic datastructure dump tool? In-Reply-To: <7C5C697F78A.0000039Fscilab.20.browseruk@xoxy.net> References: <7C5C697F78A.0000039Fscilab.20.browseruk@xoxy.net> Message-ID: <1459281272.2818.30.camel@Servo> On Tue, 2016-03-29 at 11:32 -0800, scilab.20.browseruk at xoxy.net wrote: > >After getting the handle PL of your polyline, you can directly update its points through PL.data > >Then, the graphics is directly updated. You don't need to redraw it with plot() ot plot2d(). > > >HTH > >Samuel > > Thanks Samuel, that works brilliantly. The re-draw is so fast I had to insert a sleep( 10 ) between iterations. > > A follow up question (assuming that isn't breaking the list rules). > > Is there a better way than using a for loop to map two vectors x, y to a matrix ( [x1,y1],[x2,y2], ... )? > > Cheers, Buk. Given two column vectors x and y, m = [x y] should work nicely. If you need to put two row vectors one atop the other use m = [x; y]. If you need to put two row vectors into two columns, m = [x' y']. (but note that x' means to make a conjugate transpose -- you don't care now, but if you want to move complex numbers around without conjugation, use x.') -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From cfuttrup at gmail.com Tue Mar 29 22:13:14 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Tue, 29 Mar 2016 22:13:14 +0200 Subject: [Scilab-users] A generic datastructure dump tool? In-Reply-To: <7C5C697F78A.0000039Fscilab.20.browseruk@xoxy.net> References: <7C5C697F78A.0000039Fscilab.20.browseruk@xoxy.net> Message-ID: <56FAE1DA.702@gmail.com> Hi Buk Tim Wescott gave you the normal answers. I wonder what you're asking ... If you have vector x = [2 3 4] and also a vector y = [2 3 4] You can calculate vector c = x .* y (= [4 9 16] ... just as an example) Then you can place the values of c into the diagonal matrix M = diag(c) ... (?) ... so is the answer to your question M = diag(x .* y) ... ? ... or are x and y supposed to be real and imaginary numbers? Sorry for my confusion about your question. Best regards, Claus On 29-03-2016 21:32, scilab.20.browseruk at xoxy.net wrote: >> After getting the handle PL of your polyline, you can directly update its points through PL.data >> Then, the graphics is directly updated. You don't need to redraw it with plot() ot plot2d(). >> HTH >> Samuel > Thanks Samuel, that works brilliantly. The re-draw is so fast I had to insert a sleep( 10 ) between iterations. > > A follow up question (assuming that isn't breaking the list rules). > > Is there a better way than using a for loop to map two vectors x, y to a matrix ( [x1,y1],[x2,y2], ... )? > > Cheers, Buk. > > ____________________________________________________________ > Can't remember your password? Do you need a strong and secure password? > Use Password manager! It stores your passwords & protects your account. > Check it out at http://mysecurelogon.com/manager > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From scilab.20.browseruk at xoxy.net Wed Mar 30 08:24:52 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Tue, 29 Mar 2016 22:24:52 -0800 Subject: [Scilab-users] A generic datastructure dump tool? message 4 of 20) In-Reply-To: <56FAE1DA.702@gmail.com> References: <7c5c697f78a.0000039fscilab.20.browseruk@xoxy.net> Message-ID: <820F2CBAAD0.00000770scilab.20.browseruk@xoxy.net> Claus, Tim got it right. When you plot 2d data, you supply two (matching) vectors of (in my case) simple reals. Inside the figure, the resulting polyline stores the same data as matrix of pairs (points). In order to manipulate the figure by delving inside and adjusting that polyline data I need to construct an equivalent matrix of pairs from two vectors of reals. Be a neophyte with Scilab and similar languages, more used to more traditional programming languages, I was using a for loop; but I was aware there was probably a better way. With Tim's information, I was able to work out through trial and error that [ x' y' ] give me the data in the form that the polyline uses internally. eg. -->a = 1:10 a = 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. -->b = a.^(1/9) b = 1. 1.0800597 1.129831 1.166529 1.1958132 1.2202849 1.2413658 1.259921 1.276518 1.2915497 -->plot( a, b ); -->f = gcf(); -->p = f.children.children.children; -->p.data ans = 1. 1. 2. 1.0800597 3. 1.129831 4. 1.166529 5. 1.1958132 6. 1.2202849 7. 1.2413658 8. 1.259921 9. 1.276518 10. 1.2915497 -->c = [ a' b' ] c = 1. 1. 2. 1.0800597 3. 1.129831 4. 1.166529 5. 1.1958132 6. 1.2202849 7. 1.2413658 8. 1.259921 9. 1.276518 10. 1.2915497 Get's a bit messier when there are mutliple lines on the graph; and handles have a tendency to go out of scope , but that's the essence of it. Buk > -----Original Message----- > From: scilab.browseruk.b507695203.cfuttrup#gmail.com at ob.0sg.net > Sent: Tue, 29 Mar 2016 22:13:14 +0200 > To: users at lists.scilab.org > Subject: Re: [Scilab-users] A generic datastructure dump tool? > message 4 of 20) > > Hi Buk > > Tim Wescott gave you the normal answers. I wonder what you're asking ... > > If you have vector x = [2 3 4] and also a vector y = [2 3 4] > You can calculate vector c = x .* y (= [4 9 16] ... just as an example) > Then you can place the values of c into the diagonal matrix M = diag(c) > > ... (?) ... so is the answer to your question M = diag(x .* y) ... ? > > ... or are x and y supposed to be real and imaginary numbers? > > Sorry for my confusion about your question. > > Best regards, > Claus > > On 29-03-2016 21:32, scilab.20.browseruk at xoxy.net wrote: >>> After getting the handle PL of your polyline, you can directly update >>> its points through PL.data >>> Then, the graphics is directly updated. You don't need to redraw it >>> with plot() ot plot2d(). >>> HTH >>> Samuel >> Thanks Samuel, that works brilliantly. The re-draw is so fast I had to >> insert a sleep( 10 ) between iterations. >> >> A follow up question (assuming that isn't breaking the list rules). >> >> Is there a better way than using a for loop to map two vectors x, y to a >> matrix ( [x1,y1],[x2,y2], ... )? >> >> Cheers, Buk. >> >> ____________________________________________________________ >> Can't remember your password? Do you need a strong and secure password? >> Use Password manager! It stores your passwords & protects your account. >> Check it out at http://mysecurelogon.com/manager >> >> >> >> _______________________________________________ >> 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 ____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! Check it out at http://www.inbox.com/marineaquarium From scilab.20.browseruk at xoxy.net Wed Mar 30 15:48:32 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Wed, 30 Mar 2016 05:48:32 -0800 Subject: [Scilab-users] Invalid index? Message-ID: <85EEDADD8C4.00000AAEscilab.20.browseruk@xoxy.net> This one has me baffled! If I run this code: ... god.vars = []; for i=1:11 disp(i); god.vars(i) = 1; // uicontrol( god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); ... end It completes without error. But if I uncomment the uicontrol: god.vars(i) = uicontrol( god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); The assignment to god.vars(i) works when i == 1;, but fails when i == 2 as follows: -->exec('C:\test\poly.sce', -1) 1. 2. god.vars(i) = uicontrol( god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); !--error 21 Invalid index. at line 43 of exec file called by : exec('C:\test\poly.sce', -1) I've eliminated the only other index usage (god.labels(i)) as a problem; so why can it assign to god,vars(1) and not to god.vars(2)? Thanks Buk. ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth From tim at wescottdesign.com Wed Mar 30 21:52:30 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 30 Mar 2016 12:52:30 -0700 Subject: [Scilab-users] Invalid index? In-Reply-To: <85EEDADD8C4.00000AAEscilab.20.browseruk@xoxy.net> References: <85EEDADD8C4.00000AAEscilab.20.browseruk@xoxy.net> Message-ID: <1459367550.2818.57.camel@Servo> At the risk of sounding like a theologian, what is god? On Wed, 2016-03-30 at 05:48 -0800, scilab.20.browseruk at xoxy.net wrote: > This one has me baffled! > > If I run this code: > ... > god.vars = []; > for i=1:11 > disp(i); > god.vars(i) = 1; // uicontrol( god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); > ... > end > > It completes without error. > > But if I uncomment the uicontrol: > > god.vars(i) = uicontrol( god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); > > The assignment to god.vars(i) works when i == 1;, but fails when i == 2 as follows: > > -->exec('C:\test\poly.sce', -1) > > 1. > > 2. > god.vars(i) = uicontrol( god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); > !--error 21 > Invalid index. > at line 43 of exec file called by : > exec('C:\test\poly.sce', -1) > > I've eliminated the only other index usage (god.labels(i)) as a problem; > > so why can it assign to god,vars(1) and not to god.vars(2)? > > Thanks Buk. > > ____________________________________________________________ > FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! > Check it out at http://www.inbox.com/earth > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From scilab.20.browseruk at xoxy.net Wed Mar 30 23:34:00 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Wed, 30 Mar 2016 13:34:00 -0800 Subject: [Scilab-users] Invalid index? In-Reply-To: <1459367550.2818.57.camel@Servo> References: <85eedadd8c4.00000aaescilab.20.browseruk@xoxy.net> Message-ID: <89FF3F48B1A.000001CEscilab.20.browseruk@xoxy.net> > > At the risk of sounding like a theologian, what is god? > Just a short-to-type, vaguely appropriate name for a https://en.wikipedia.org/wiki/God_object. Basically, I was storing data that is shared by several callbacks in globals and accessing from within the functions using global( 'this', 'that', 'theother' ). But I kept seeing weirdnesses as I iteratively the code, which would only 'go away' if I closed the the whole SciLab environment and restarted it. As running the code from SciNotes invokes it within the open console, runs after the first inherit the existing, environment each time and that can leave things in weird states, expecially if a previous run aborts with an error. My attempt to work around that was to create a single god-object and put everything inside it. Not a great programming practice, but my attempt to deal with SciLab's weird scoping and persistent environment. But what you probably meant is how is god initialised: clear god; god.x = [ ... ]; god.y = [ ... ]; god.pp = [ ... ]; god.labels = [ ... ]; god.window = figure( ... ); god.frame1 = uicontrol( ... ); god.frame2 = uicontrol( ... ); etc. The strangest thing (to me) is that if I replace god.vars(i) = uicontrol(...); with just vars(i) = uicontrol( ... ); the loop completes without error. So then I assigned: god.vars = vars; But then I get this error: !--error 4 Undefined variable: x at line 8 of function cbk1 called by : if exists("gcbo") then %oldgcbo = gcbo; end;gcbo = getcallbackobject(232);cbk1(1);if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end; while executing a callback at line 49 of exec file called by : exec('C:\test\poly.sce', -1) Where line 8 of cbk1 is: return 1; ? Having 'discovered' the Data Structures section of the manual, and scanned a few of the types there, I guess I am playing fast and loose with this god-object, but everything seemed to be working until I tried index a field within it, then is works once, and not again; and then everything gets weird. Whilst I love learning new languages, I hate the bit at the beginning where things that seems familiar turn out not be quite so, and leave you feeling like a rank amateur. That's why I came asking for references to a working example a week or so ago. Whilst the manual seems to be a pretty thorough reference work -- once you know where to look and how to interpret it; it doesn't do much by way of showing how to structure an application. Time to back off and do some more reading. Cheers, Buk. ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth From antoine.elias at scilab-enterprises.com Thu Mar 31 09:32:28 2016 From: antoine.elias at scilab-enterprises.com (antoine.elias at scilab-enterprises.com) Date: Thu, 31 Mar 2016 09:32:28 +0200 Subject: [Scilab-users] =?utf-8?q?Invalid_index=3F?= In-Reply-To: <85EEDADD8C4.00000AAEscilab.20.browseruk@xoxy.net> References: <85EEDADD8C4.00000AAEscilab.20.browseruk@xoxy.net> Message-ID: <51381f622ea63ad38028719857bbac4d@scilab-enterprises.com> Hello, Confirmed, failed on Scilab 5.5.2 but works in Scilab 6 beta 1 You can do that to by pass the problem : god.vars = []; for i=1:11 disp(i); god.vars = [god.vars, uicontrol(god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [i*60 - 8 + fudge, 30, 10, 20 ])]; end or for i=1:11 disp(i); uicontrol(god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [i*60 - 8 + fudge, 30, 10, 20 ]); end god.vars = god.frame1.children; Le 2016-03-30 15:48, scilab.20.browseruk at xoxy.net a ?crit?: > This one has me baffled! > > If I run this code: > ... > god.vars = []; > for i=1:11 > disp(i); > god.vars(i) = 1; // uicontrol( god.frame1, 'style', 'text', > 'string', god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] > ); > ... > end > > It completes without error. > > But if I uncomment the uicontrol: > > god.vars(i) = uicontrol( god.frame1, 'style', 'text', 'string', > god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); > > The assignment to god.vars(i) works when i == 1;, but fails when i == > 2 as follows: > > -->exec('C:\test\poly.sce', -1) > > 1. > > 2. > god.vars(i) = uicontrol( god.frame1, 'style', 'text', 'string', > god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); > > !--error > 21 > Invalid index. > at line 43 of exec file called by : > exec('C:\test\poly.sce', -1) > > I've eliminated the only other index usage (god.labels(i)) as a > problem; > > so why can it assign to god,vars(1) and not to god.vars(2)? > > Thanks Buk. > > ____________________________________________________________ > FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! > Check it out at http://www.inbox.com/earth > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From vandithanvsl at gmail.com Thu Mar 31 12:35:06 2016 From: vandithanvsl at gmail.com (ramyavanditha) Date: Thu, 31 Mar 2016 03:35:06 -0700 (MST) Subject: [Scilab-users] wiener filter implementation needed!!!!! Message-ID: <1459420506550-4033879.post@n3.nabble.com> HELLO SCILAB USERS, Inbuilt function to implement wiener filtering is required as part of my project.. we had trained downloading AIVP tool.But we didnt get any link to download. please help us to overcome this. -- View this message in context: http://mailinglists.scilab.org/wiener-filter-implementation-needed-tp4033879.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From scilab.20.browseruk at xoxy.net Thu Mar 31 12:58:21 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Thu, 31 Mar 2016 02:58:21 -0800 Subject: [Scilab-users] Spinner control with non-linear step? Message-ID: <91051797441.000005C5scilab.20.browseruk@xoxy.net> Onward and upward thanks to Antoine. I'd like to have a spinner uicontrol where the steps are non-linear. Eg. logarithmic: -10^3, -10^2, -10^1, -10^0 -10^-1, -10-2, -10^-3, 0, 10^-3, 10^-2, 10^-1, 10^0, 10^1, 10^2, 10^3 Is it possible to supply a function or vector for the SliderStep property? Any suggestions for a way to achieve teh goal? Thanks Buk. ____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/manager From scilab.20.browseruk at xoxy.net Thu Mar 31 20:35:38 2016 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Thu, 31 Mar 2016 10:35:38 -0800 Subject: [Scilab-users] Running an .sce from the command line. Message-ID: <950332E10DE.0000093Escilab.20.browseruk@xoxy.net> Hi, I can run my .sce file which produces a graph from a file of data from the (windows) command line using: scilex -f myscript.sce filename.rdat and that works except: Once the plot() executes and the graphic window appears, control and focus returns to the interactive command line. That's okay; but it'd would be really nice if the focus remained on the graphic window until it was closed and then the scilab shell exited automatically. Is it possible to arrange for that to happen? Thanks, Buk. ____________________________________________________________ TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if5 Capture screenshots, upload images, edit and send them to your friends through IMs, post on Twitter?, Facebook?, MySpace?, LinkedIn? ? FAST! From tim at wescottdesign.com Thu Mar 31 20:54:04 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Thu, 31 Mar 2016 11:54:04 -0700 Subject: [Scilab-users] Running an .sce from the command line. In-Reply-To: <950332E10DE.0000093Escilab.20.browseruk@xoxy.net> References: <950332E10DE.0000093Escilab.20.browseruk@xoxy.net> Message-ID: <1459450444.2711.14.camel@Servo> xend(). I don't know if this is what you want, but the enclosed .sce file generates a graph, writes an image to a .eps file, and then exits. This is how I generate graphs for papers -- it gives me a more maintainable way to replicate the graphs later, or tweak them, or whatever. Note that there are some dependencies that I'm not sharing, so it won't work. You should still get an idea of how it works, or maybe chop out the dependencies and try it out. It should be one of the figures in this paper: http://wescottdesign.com/articles/Friction/friction.pdf. On Thu, 2016-03-31 at 10:35 -0800, scilab.20.browseruk at xoxy.net wrote: > Hi, > > I can run my .sce file which produces a graph from a file of data from the (windows) command line using: > > scilex -f myscript.sce filename.rdat > > and that works except: > > Once the plot() executes and the graphic window appears, control and focus returns to the interactive command line. > > That's okay; but it'd would be really nice if the focus remained on the graphic window until it was closed and then the scilab shell exited automatically. > > Is it possible to arrange for that to happen? > > Thanks, Buk. > > ____________________________________________________________ > TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if5 > Capture screenshots, upload images, edit and send them to your friends > through IMs, post on Twitter?, Facebook?, MySpace?, LinkedIn? ? FAST! > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 -------------- next part -------------- A non-text attachment was scrubbed... Name: motor-PD-friction.sce Type: application/x-scilab-sce Size: 630 bytes Desc: not available URL: From sgougeon at free.fr Thu Mar 31 21:09:20 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 31 Mar 2016 21:09:20 +0200 Subject: [Scilab-users] Running an .sce from the command line. In-Reply-To: <950332E10DE.0000093Escilab.20.browseruk@xoxy.net> References: <950332E10DE.0000093Escilab.20.browseruk@xoxy.net> Message-ID: <56FD75E0.5040603@free.fr> Hello, Le 31/03/2016 20:35, scilab.20.browseruk at xoxy.net a ?crit : > Hi, > > I can run my .sce file which produces a graph from a file of data from the (windows) command line using: > > scilex -f myscript.sce filename.rdat > > and that works except: > > Once the plot() executes and the graphic window appears, control and focus returns to the interactive command line. Scilab's console, i guess not the shell terminal. > That's okay; but it'd would be really nice if the focus remained on the graphic window until it was closed and then the scilab shell exited automatically. Graphics are not modal: AFAIK it is not possible to lock the console with a figure until the figure is closed (or until any other event)(you could use a for loop waiting for an event ; but it won't reject CTRL-C interruptions). However, to close automatically Scilab when the figure is closed, you may add the following in your script: gcf().closerequestfcn="exit(0)"; HTH Samuel