From Christophe.Dang at sidel.com Thu Aug 1 09:51:19 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 1 Aug 2013 09:51:19 +0200 Subject: [Scilab-users] Flash distilaiton (was: no subject) In-Reply-To: <51F9463B.2090503@amsterchem.com> References: <1654234877-1375198493-cardhu_decombobulator_blackberry.rim.net-1529393317-@b16.c11.bise7.blackberry> <3B5FFC67498DFF49AE7271A584867D16F31E9C1A2A@301EX00100.sidel.com> <51F9463B.2090503@amsterchem.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31E9C1CC9@301EX00100.sidel.com> Hello, the following message was sent to me, so I post it back on the list so it can find the right audience. Regards %%%%%%%%%% Original message %%%%%%%%%% The variation of flash vapor/liquid composition for various temperatures chosen between the dew point and bubble point temperature of the liquid feed. ? -----Original Message----- From: "Dang, Christophe" Date: Wed, 31 Jul 2013 18:06:43 To: sandy_eze at yahoo.com; International users mailing list for Scilab. Subject: RE: [Scilab-users] (no subject) Hello, > De la part de Eze-Okoli Ifeoma Sandra > Envoy? : mardi 30 juillet 2013 17:36 > > Good day, i would like to know how to design a multi-component flash > distillation system using scilab This seems to be a physical/chemical engineering problem. Scilab performs calculations, but you decide which calculations. So, first decide what you have to calculate and how, and then we might be able to help you. Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From jasper at amsterchem.com Thu Aug 1 10:03:35 2013 From: jasper at amsterchem.com (jasper van baten) Date: Thu, 01 Aug 2013 10:03:35 +0200 Subject: [Scilab-users] Flash distilaiton In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F31E9C1CC9@301EX00100.sidel.com> References: <1654234877-1375198493-cardhu_decombobulator_blackberry.rim.net-1529393317-@b16.c11.bise7.blackberry> <3B5FFC67498DFF49AE7271A584867D16F31E9C1A2A@301EX00100.sidel.com> <51F9463B.2090503@amsterchem.com> <3B5FFC67498DFF49AE7271A584867D16F31E9C1CC9@301EX00100.sidel.com> Message-ID: <51FA1657.6040101@amsterchem.com> This sounds like a flash calculation more than a distillation calculation and is directly performed by thermodynamic servers made available via CAPE-OPEN. Implementing such an algorithm in a stable and efficient manner from scratch is not straight forward and has been the subject of many publications in literature. If you are restricted to two phases (vapor and liquid) and you are sure to be between the dew and the bubble point (so that you are sure that both exist) it becomes a lot easier. There are literally dozens of algorithms that do this. Phase equilibrium conditions at specified T and P are such that - all fugacities of all compounds in the two phases are equal - the vapor compositions add up to unity - the liquid compositions add up to unity - the amount of any compounds in the vapor added to the amount of the same compound in the liquid must equal the overall amount of the compound (compound balances, aka phase summation equation) You can use simply a Rachford-Rice approach (https://en.wikipedia.org/wiki/Flash_evaporation), or the approach sketched by Michael Michelsen, "The isothermal flash problem, part II, phase split calculation" (Fluid Phase Equilibria 9 (1982), pp 21-40). If you are sure you need to track over a constant temperature line between a dew point and bubble point, a continuation method comes to mind. But you will still need to have the (log) fugacity coefficients of all compounds for the vapor and the liquid phase. Best wishes, Jasper. On 8/1/2013 09:51, Dang, Christophe wrote: > Hello, > > the following message was sent to me, so I post it back on the list so it can find the right audience. > > Regards > > %%%%%%%%%% Original message %%%%%%%%%% > > The variation of flash vapor/liquid composition for various temperatures chosen between the dew point and bubble point temperature of the liquid feed. > > > -----Original Message----- > From: "Dang, Christophe" > Date: Wed, 31 Jul 2013 18:06:43 > To: sandy_eze at yahoo.com; International users mailing list for Scilab. > Subject: RE: [Scilab-users] (no subject) > > Hello, > >> De la part de Eze-Okoli Ifeoma Sandra >> Envoy? : mardi 30 juillet 2013 17:36 >> >> Good day, i would like to know how to design a multi-component flash >> distillation system using scilab > This seems to be a physical/chemical engineering problem. > > Scilab performs calculations, but you decide which calculations. > > So, first decide what you have to calculate and how, and then we might be able to help you. > > Best regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > ______________________________________________________________________ > > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > ______________________________________________________________________ > _______________________________________________ > 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 Thu Aug 1 13:54:47 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 01 Aug 2013 13:54:47 +0200 Subject: [Scilab-users] STEP- Datei In-Reply-To: References: Message-ID: <51FA4C87.7080403@inria.fr> Please find attached a Scilab function which is able to translated step instructions into Scilab ones. It remains an important problem I was not able to solve yet: The step instructions are not ordered so they can be evaluated in sequence. May be it will be enough for your purpose (if you only want to get only some data) Serge Steer Le 31/07/2013 14:15, Pascal Buehler a ?crit : > Hi there, my name is Pascal, > > i want to load a STEP file into Scilab. Now, my problem is to seperate > the koordinates from the String! > I tried various things but non of the is satifying. > the goal ist to make the koordinates from string into a matrix of > nubers and to display in a figure. > Anyone who knows an elegant way? > > Here the files > > > > PS: Something like Opacity in the Scirendere would be nice. > > with best regards / mit freundlichen Gr?ssen > > Pascal B?hler > Qualit?t-Hardware / Pr?fingenieur > SAUTER HeadOffice > Fr. Sauter AG > Im Surinam 55, CH-4016 Basel > Telefon +41 (0)61 695 5646 > Telefax +41 (0)61 695 5619 > http://www.sauter-controls.com > > DISCLAIMER: > This communication, and the information it contains is for the sole use of > the intended recipient. It is confidential, may be legally privileged and > protected by law. Unauthorized use, copying or disclosure of any part > thereof may be unlawful. If you have received this communication in error, > please destroy all copies and kindly notify the sender. > > Before printing out this e-mail or its attachments, please consider > whether > it is really necessary to do so. > Using less paper helps the environment. > > > _______________________________________________ > 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 -------------- function step2sci(fil) t=mgetl(fil); k=grep(t,"DATA;"); t=t(k:$); t(grep(t,"+^ *$+",'r'))=[];//remove empty lines t=strsubst(t(k:$),"+/.*/+","","r");//remove comments //catenate multilines instructions keoi=grep(t,";"); t1=[];k=1 for i=1:size(keoi,"*") t1=[t1;strcat(t(k:keoi(i)),",")]; k=keoi(i)+1; end t=t1; t=strsubst(t,',,',','); //replace (...) by list(...) t=strsubst(t,"=(,","=list("); t=strsubst(t,"((","(list("); t=strsubst(t,"=(","=list("); t=strsubst(t,",(",",list("); t=strsubst(t,",)",")"); //replace .var. by "var" t=strsubst(t,"(.","(''") ; t=strsubst(t,".)","'')"); t=strsubst(t,".,","'',"); t=strsubst(t,",.",",''"); t=strsubst(t,"*","''*''"); k=grep(t,"ENDSEC"); t=t(1:k-1) //list the used functions mputl(['function foo';t;"endfunction"],"/tmp/foo.sci") exec /tmp/foo.sci; vars=macrovar(foo); funs=stripblanks(unique([vars(3);vars(4)])); funs(funs=="")=[]; funs(funs=="list")=[]; funs(funs=="$")=[]; funs(part(funs,1)=="#")=[]; //create the requested functions F="function r="+funs+"(varargin);r=tlist("""+funs+""",varargin(:));endfunction" //Order the instructions code=bytecode(foo); global T;T=[] warning("off") nsiz=6 bytecodewalk(code(22:$),2,job); pause mputl([F;t],strsubst(fil,".stp",".sce")) endfunction function v=code2var(id) nsiz=6 i1=1 if size(id,'*') Hello all, I am about to install scipad() but I am having problems with it: -1->exec('C:\Google Drive\SciLab\install\instl_scipad.sce', -1) !--error 10000 atomsDESCRIPTIONread: The file "C:\Users\PETERB~1\AppData\Roaming\Scilab\scilab-5.4.1\.atoms\tmp_1375528389\tcl\DESCRIPTION" does not exist. at line 46 of function atomsDESCRIPTIONread called by : at line 160 of function atomsInstall called by : -Scicoslab.zip") at line 4 of exec file called by : scipad.sce', -1 can you advice how to install scipad? Thanks! Best regards, Peter -- View this message in context: http://mailinglists.scilab.org/scipad-8-71-install-tp4027153.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mathieu.dubois at limsi.fr Sat Aug 3 13:34:26 2013 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Sat, 03 Aug 2013 13:34:26 +0200 Subject: [Scilab-users] problem loading environments In-Reply-To: <51F90857.801@gmail.com> References: <51F90857.801@gmail.com> Message-ID: <51FCEAC2.9020102@limsi.fr> Could you send a simple example which creates a simple environement that shows the problem when saved and restored? Mathieu Le 31/07/2013 14:51, Ezequiel Soule a ?crit : > Hello, I keep having this problem, when I try to load a saved > ennironments, I get an error "incompatible output arguments" in some > function of the environment, and it doesn?t load anything. The function > that gives the error works fine, and I don?t get any error when I > execute or call the function, just when loading the environment. It is > not one particular function, it happened many times, with different > environements and different functions. I can load some of the variables > if I specifiy then, but I can?t load the whole thing. > This happens wiht versions 5.4.0 and 5.4.1, I haven?t try older versions. > > Any ideas? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From fvogelnew1 at free.fr Sat Aug 3 13:54:44 2013 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 03 Aug 2013 13:54:44 +0200 Subject: [Scilab-users] scipad() 8.71 install Message-ID: <51FCEF84.3010403@free.fr> Hi, Apparently you are trying to install _in Scilab 5_ the Scipad-8.71 version targeted to _Scicoslab_. Scicoslab is not Scilab. I'm distributing Scipad for both software but in two different distribution files: scipad-8.71-Scilab5.zip --> Scipad for Scilab-5 scipad-8.71-Scicoslab.zip --> Scipad for Scicoslab Download the zip file that matches the software you are using, then check Scipad installation instructions detailed on this page: http://sourceforge.net/p/scipad/wiki/Installation/ If following these instructions accurately still does not work for you, please let me know and I will help you more. Regards, Francois > Selected post > Hello all, > > I am about to install scipad() but I am having problems with it: > > -1->exec('C:\Google Drive\SciLab\install\instl_scipad.sce', -1) > !--error 10000 > atomsDESCRIPTIONread: The file > "C:\Users\PETERB~1\AppData\Roaming\Scilab\scilab-5.4.1\.atoms\tmp_1375528389\tcl\DESCRIPTION" > does not exist. > at line 46 of function atomsDESCRIPTIONread called by : > at line 160 of function atomsInstall called by : > -Scicoslab.zip") > at line 4 of exec file called by : > scipad.sce', -1 > > can you advice how to install scipad? > > Thanks! > > Best regards, > Peter > From peter.balazovic at yahoo.com Sat Aug 3 15:05:31 2013 From: peter.balazovic at yahoo.com (pepe) Date: Sat, 3 Aug 2013 06:05:31 -0700 (PDT) Subject: [Scilab-users] scipad() 8.71 install In-Reply-To: <1375528552629-4027153.post@n3.nabble.com> References: <1375528552629-4027153.post@n3.nabble.com> Message-ID: <1375535131159-4027156.post@n3.nabble.com> Thanks for helping - now I can run scipad() but still can't debug Scilab script. Quite pity. Best regards, Peter -- View this message in context: http://mailinglists.scilab.org/scipad-8-71-install-tp4027153p4027156.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fvogelnew1 at free.fr Sun Aug 4 09:32:22 2013 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 04 Aug 2013 09:32:22 +0200 Subject: [Scilab-users] Fwd: Re: scipad() 8.71 install In-Reply-To: <51FE030A.5000203@free.fr> References: <51FE030A.5000203@free.fr> Message-ID: <51FE0386.3010800@free.fr> > Thanks for helping - now I can run scipad() but still can't debug Scilab script. > Quite pity. Debugging scripts written in Scilab language is possible from Scipad in Scicoslab, check it out: http://www.scicoslab.org/ (note: the server is apparently down at this time, it should be back soon) Regards, Francois From omorr at uns.ac.rs Sun Aug 4 09:23:49 2013 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Sun, 04 Aug 2013 09:23:49 +0200 Subject: [Scilab-users] scipad() 8.71 install In-Reply-To: <51FCEF84.3010403@free.fr> References: <51FCEF84.3010403@free.fr> Message-ID: <51FE0185.4050107@uns.ac.rs> Hello Francois, I tried Scipad both on Linux and Windows 7 (32bit) and Scilab 5.4.1. folowing your instructions. It went Ok on Linux (Xubuntu) but not on Windows. Here are the error messages ------------------------- -->scipver = "8.71"; -->atomsSetConfig("offLine","True"); -->atomsInstall("D:/Downloads/Software/Scilab"+"/scipad-"+scipver+"-Scilab5.zip"); WARNING: Option offline of ATOMS configuration is set to True. atomsSystemUpdate did not check the latest modules availables. -->if ~exists("atomsinternalslib") then --> load("SCI/modules/atoms/macros/atoms_internals/lib"); -->end -->execstr("exec("""+atomsGetInstalledPath(["scipad" scipver])+"/builder.sce"",-1)"); error(msprintf(gettext("%s module not installed."), "modules_manager")); !--error 10000 modules_manager module not installed. at line 21 of exec file called by : exec("SCIHOME\atoms\scipad\8.71/builder.sce",-1) in execstr instruction called by : execstr("exec("""+atomsGetInstalledPath(["scipad" scipver])+"/builder.sce"",-1)"); -->atomsLoad("scipad"); !--error 10000 atomsLoad: The file 'C:\Users\omorjan\AppData\Roaming\Scilab\scilab-5.4.1\atoms\scipad\8.71\loader.sce' doesn't exist or is not read accessible. at line 323 of function atomsLoad called by : atomsLoad("scipad"); -------------------------------- Regards, Radovan On 8/3/2013 1:54 PM, Fran?ois Vogel wrote: > Hi, > > Apparently you are trying to install _in Scilab 5_ the Scipad-8.71 > version targeted to _Scicoslab_. > > Scicoslab is not Scilab. > > I'm distributing Scipad for both software but in two different > distribution files: > scipad-8.71-Scilab5.zip --> Scipad for Scilab-5 > scipad-8.71-Scicoslab.zip --> Scipad for Scicoslab > > Download the zip file that matches the software you are using, then > check Scipad installation instructions detailed on this page: > > http://sourceforge.net/p/scipad/wiki/Installation/ > > If following these instructions accurately still does not work for > you, please let me know and I will help you more. > > Regards, > Francois > > >> Selected post >> Hello all, >> >> I am about to install scipad() but I am having problems with it: >> >> -1->exec('C:\Google Drive\SciLab\install\instl_scipad.sce', -1) >> !--error 10000 >> atomsDESCRIPTIONread: The file >> "C:\Users\PETERB~1\AppData\Roaming\Scilab\scilab-5.4.1\.atoms\tmp_1375528389\tcl\DESCRIPTION" >> does not exist. >> at line 46 of function atomsDESCRIPTIONread called by : >> at line 160 of function atomsInstall called by : >> -Scicoslab.zip") >> at line 4 of exec file called by : >> scipad.sce', -1 >> >> can you advice how to install scipad? >> >> Thanks! >> >> Best regards, >> Peter >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From fvogelnew1 at free.fr Sun Aug 4 20:27:56 2013 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 04 Aug 2013 20:27:56 +0200 Subject: [Scilab-users] scipad() 8.71 install In-Reply-To: <51FE0185.4050107@uns.ac.rs> References: <51FCEF84.3010403@free.fr> <51FE0185.4050107@uns.ac.rs> Message-ID: <51FE9D2C.4000804@free.fr> Radovan Omorjan said on 04/08/2013 09:23: > Hello Francois, > > I tried Scipad both on Linux and Windows 7 (32bit) and Scilab > 5.4.1. folowing your instructions. > It went Ok on Linux (Xubuntu) but not on Windows. Here are the > error messages > > ------------------------- > -->scipver = "8.71"; > > -->atomsSetConfig("offLine","True"); > > -->atomsInstall("D:/Downloads/Software/Scilab"+"/scipad-"+scipver+"-Scilab5.zip"); > > WARNING: Option offline of ATOMS configuration is set to True. > atomsSystemUpdate did not check the latest modules availables. > > -->if ~exists("atomsinternalslib") then > --> load("SCI/modules/atoms/macros/atoms_internals/lib"); > -->end > > -->execstr("exec("""+atomsGetInstalledPath(["scipad" > scipver])+"/builder.sce"",-1)"); > error(msprintf(gettext("%s module not installed."), > "modules_manager")); > !--error 10000 > modules_manager module not installed. > at line 21 of exec file called by : > exec("SCIHOME\atoms\scipad\8.71/builder.sce",-1) > in execstr instruction called by : > execstr("exec("""+atomsGetInstalledPath(["scipad" > scipver])+"/builder.sce"",-1)"); > Thanks for the report. "modules_manager module not installed. " --> you have installed Scilab-5.4.1 without the "Tools for management of extern modules". You have probably used the default installation. With Scilab-5.4, this module came with the default install, with Scilab-5.4.1 it is no longer the case. Fix: reinstall Scilab with this module, i.e. take care of checking the box labelled "Tools for management of extern modules" in the installer. I will make the error message more explicit in later versions of Scipad. Thanks, Francois From lukeaarond at gmail.com Sun Aug 4 20:32:51 2013 From: lukeaarond at gmail.com (lukeaarond) Date: Sun, 4 Aug 2013 11:32:51 -0700 (PDT) Subject: [Scilab-users] Adding Scroll Bar to uicontrol GUI Message-ID: <1375641171189-4027162.post@n3.nabble.com> I have a GUI that I made with uicontrol that asks the user for a value and then displays a list a number of popup menus corresponding to that value. i.e. "How many letters do you want?" user inputs: 4 then the GUI displays: "Letter #1": A|B|C "Letter #2": A|B|C "Letter #3": A|B|C "Letter #4": A|B|C The GUI figure is initially displays a set size, therefore if the user selects a number less than 13 the list is within the GUI window. If the user selects a number greater than 13 the user has to adjust the GUI window to see all popup menus. However, if the user puts in a number larger than their screen (i.e. 50), the list goes off the screen and the user cannot access those popup windows. How do I put a scroll bar on the side of my GUI so that the user can keep the GUI window the same size and just scroll down to see later popup windows? Thank you, Luke If you would like to see a sample sce code that displays this problem use the following code: function [#Letters]=Button(#Letters_stored) stri=get(#Letters_stored,"string"); #Letters=eval(stri(get(#Letters_stored,"value"))); guih=260; for i=1:#Letters uicontrol(h,"style","text","string",'Letter #'+string(i),"position",[0,guih-i*20,90,20],"horizontalalignment","left"); Species_name_GUI(1)=uicontrol(h,"style","popupmenu","string","A|B|C|D|E|F|G","position",[90,guih-i*20,90,20],"horizontalalignment","left"); end endfunction h=figure(1, "position", [0,0,500,320], "figure_name", "Comparison GUI"); uicontrol(h,"style","text","string","Number of Letters","position",[0,280,100,20],"horizontalalignment","left"); #Letters_stored=uicontrol(h,"style","popupmenu","string","5|10|15|20|25|30|35|40|45|50","position",[120,280,40,20],"horizontalalignment","center"); P1 = uicontrol(h, 'position', [416 300 83 20], 'style', 'pushbutton','string', 'Submit', 'callback', '[#Letters]=Button(#Letters_stored)', 'backgroundcolor', [1 1 0]); -- View this message in context: http://mailinglists.scilab.org/Adding-Scroll-Bar-to-uicontrol-GUI-tp4027162.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jasonryan57 at hotmail.com Fri Aug 2 00:16:19 2013 From: jasonryan57 at hotmail.com (cactus_jack) Date: Thu, 1 Aug 2013 15:16:19 -0700 (PDT) Subject: [Scilab-users] Copying an array Message-ID: <1375395379405-4027149.post@n3.nabble.com> Hi, I'm pretty new to scilab and basically what I need to do is copy the following array into a new one but start the copying at the index that is half the interpx value, where interpx=64. The array is: data2 = zeros(1, bits*interpx); // initializing the array with dimensions I'm not really sure how to do this, but from what i can gather, I need to use a for loop. The reason i need to do this is, i need to convert the following QPSK modulation code into offset QPSK modulation. In Offset QPSK, the Q channel is shifted by half a time symbol so that the I and Q channel signals do not transition at the same time and in order to do this, i was told that I would need to do what i explained above. The complete code is as follows: interpx = 64; bits = 100; data = round(rand(1, bits)); data1 = 2.*data - 1; data2 = zeros(1, bits*interpx); // initializing the arrays with dimensions for m = 1:interpx, data2(m:interpx:bits*interpx) = data1 //Bit fattening end t=0:1/2:(bits*interpx/2) - 1/2; //t=time carrier1 = sin(t); //Q channel carrier2 = cos(t); // I channel //scf(0) //plot(carrier1) //scf(1) //plot(carrier2) bpskwave1= (carrier1.*data2);//Q channel bpskwave2= (carrier2.*data2);//I channel //disp(bpskwave1) qpsk=(bpskwave1+bpskwave2) plot(qpsk) //plot(bpskwave2,bpskwave1) If anyone could show me how to do this, or show me an example or point me in the direction of some useful documentation, that would great. Thanks in advance. -- View this message in context: http://mailinglists.scilab.org/Copying-an-array-tp4027149.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fsvogel at free.fr Sun Aug 4 09:30:18 2013 From: fsvogel at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 04 Aug 2013 09:30:18 +0200 Subject: [Scilab-users] scipad() 8.71 install Message-ID: <51FE030A.5000203@free.fr> > Thanks for helping - now I can run scipad() but still can't debug Scilab script. > Quite pity. Debugging scripts written in Scilab language is possible from Scipad in Scicoslab, check it out: http://www.scicoslab.org/ (note: the server is apparently down at this time, it should be back soon) Regards, Francois From lukeaarond at gmail.com Sun Aug 4 17:08:50 2013 From: lukeaarond at gmail.com (lukeaarond) Date: Sun, 4 Aug 2013 08:08:50 -0700 (PDT) Subject: [Scilab-users] Adding Scroll Bar to uicontrol GUI Message-ID: <1375628930169-4027159.post@n3.nabble.com> I have a GUI that I made with uicontrol that asks the user for a value and then displays a list a number of popup menus corresponding to that value. i.e. "How many letters do you want?" user inputs: 4 then the GUI displays: "Letter #1": A|B|C "Letter #2": A|B|C "Letter #3": A|B|C "Letter #4": A|B|C The GUI figure is initially displays a set size, therefore if the user selects a number less than 13 the list is within the GUI window. If the user selects a number greater than 13 the user has to adjust the GUI window to see all popup menus. However, if the user puts in a number larger than their screen (i.e. 50), the list goes off the screen and the user cannot access those popup windows. How do I put a scroll bar on the side of my GUI so that the user can keep the GUI window the same size and just scroll down to see later popup windows? Thank you, Luke If you would like to see a sample sce code that displays this problem use the following code: function [#Letters]=Button(#Letters_stored) stri=get(#Letters_stored,"string"); #Letters=eval(stri(get(#Letters_stored,"value"))); guih=260; for i=1:#Letters uicontrol(h,"style","text","string",'Letter #'+string(i),"position",[0,guih-i*20,90,20],"horizontalalignment","left"); Species_name_GUI(1)=uicontrol(h,"style","popupmenu","string","A|B|C|D|E|F|G","position",[90,guih-i*20,90,20],"horizontalalignment","left"); end endfunction h=figure(1, "position", [0,0,500,320], "figure_name", "Comparison GUI"); uicontrol(h,"style","text","string","Number of Letters","position",[0,280,100,20],"horizontalalignment","left"); #Letters_stored=uicontrol(h,"style","popupmenu","string","5|10|15|20|25|30|35|40|45|50","position",[120,280,40,20],"horizontalalignment","center"); P1 = uicontrol(h, 'position', [416 300 83 20], 'style', 'pushbutton','string', 'Submit', 'callback', '[#Letters]=Button(#Letters_stored)', 'backgroundcolor', [1 1 0]); -- View this message in context: http://mailinglists.scilab.org/Adding-Scroll-Bar-to-uicontrol-GUI-tp4027159.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Mon Aug 5 10:04:01 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Mon, 5 Aug 2013 10:04:01 +0200 Subject: [Scilab-users] Copying an array In-Reply-To: <1375395379405-4027149.post@n3.nabble.com> References: <1375395379405-4027149.post@n3.nabble.com> Message-ID: <21770_1375689845_51FF5C74_21770_4092_1_8F1D40232A0E68409E3FC23A30C326620168CE5AD873@THSONEA01CMS04P.one.grp> Hello, Is it Data2=data1.*.ones(1,interpx) ? HTH Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de cactus_jack Envoy??: vendredi 2 ao?t 2013 00:16 ??: users at lists.scilab.org Objet?: [Scilab-users] Copying an array Hi, I'm pretty new to scilab and basically what I need to do is copy the following array into a new one but start the copying at the index that is half the interpx value, where interpx=64. The array is: data2 = zeros(1, bits*interpx); // initializing the array with dimensions I'm not really sure how to do this, but from what i can gather, I need to use a for loop. The reason i need to do this is, i need to convert the following QPSK modulation code into offset QPSK modulation. In Offset QPSK, the Q channel is shifted by half a time symbol so that the I and Q channel signals do not transition at the same time and in order to do this, i was told that I would need to do what i explained above. The complete code is as follows: interpx = 64; bits = 100; data = round(rand(1, bits)); data1 = 2.*data - 1; data2 = zeros(1, bits*interpx); // initializing the arrays with dimensions for m = 1:interpx, data2(m:interpx:bits*interpx) = data1 //Bit fattening end t=0:1/2:(bits*interpx/2) - 1/2; //t=time carrier1 = sin(t); //Q channel carrier2 = cos(t); // I channel //scf(0) //plot(carrier1) //scf(1) //plot(carrier2) bpskwave1= (carrier1.*data2);//Q channel bpskwave2= (carrier2.*data2);//I channel //disp(bpskwave1) qpsk=(bpskwave1+bpskwave2) plot(qpsk) //plot(bpskwave2,bpskwave1) If anyone could show me how to do this, or show me an example or point me in the direction of some useful documentation, that would great. Thanks in advance. -- View this message in context: http://mailinglists.scilab.org/Copying-an-array-tp4027149.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 antoine.monmayrant at laas.fr Mon Aug 5 15:31:37 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 05 Aug 2013 15:31:37 +0200 Subject: [Scilab-users] Copying an array In-Reply-To: <1375395379405-4027149.post@n3.nabble.com> References: <1375395379405-4027149.post@n3.nabble.com> Message-ID: <51FFA939.5050906@laas.fr> Hi Jack, Sorry but I am not sure what you are trying to do. Do you just want to copy an array (a_small) into a bigger one (a_big), starting at a given position? If it's the case, you can do something like: a_small=cumsum(ones(1,10)); a_big=zeros(1,20); small=length(a_small); nstart=5; a_big(nstart+[1:small]-1)=a_small;//should check that nstart small enough and a_big big enough for a_small to fit in But you might want something different. If it's the case, try to rephrase your problem and maybe give an example. Cheers, Antoine Le 02/08/13 00:16, cactus_jack a ?crit : > Hi, I'm pretty new to scilab and basically what I need to do is copy the > following array into a new one but start the copying at the index that is > half the interpx value, where interpx=64. > > The array is: > data2 = zeros(1, bits*interpx); // initializing the array with dimensions > > I'm not really sure how to do this, but from what i can gather, I need to > use a for loop. > > The reason i need to do this is, i need to convert the following QPSK > modulation code into offset QPSK modulation. In Offset QPSK, the Q channel > is shifted by half a time symbol so that the I and Q channel signals do not > transition at the same time and in order to do this, i was told that I would > need to do what i explained above. > > The complete code is as follows: > > interpx = 64; > bits = 100; > data = round(rand(1, bits)); > data1 = 2.*data - 1; > data2 = zeros(1, bits*interpx); // initializing the arrays with dimensions > > for m = 1:interpx, > data2(m:interpx:bits*interpx) = data1 //Bit fattening > end > > t=0:1/2:(bits*interpx/2) - 1/2; //t=time > carrier1 = sin(t); //Q channel > carrier2 = cos(t); // I channel > //scf(0) > //plot(carrier1) > //scf(1) > //plot(carrier2) > bpskwave1= (carrier1.*data2);//Q channel > bpskwave2= (carrier2.*data2);//I channel > //disp(bpskwave1) > qpsk=(bpskwave1+bpskwave2) > plot(qpsk) > //plot(bpskwave2,bpskwave1) > > If anyone could show me how to do this, or show me an example or point me in > the direction of some useful documentation, that would great. Thanks in > advance. > > > > -- > View this message in context: http://mailinglists.scilab.org/Copying-an-array-tp4027149.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 ezequielsoule at gmail.com Mon Aug 5 16:27:51 2013 From: ezequielsoule at gmail.com (Ezequiel Soule) Date: Mon, 05 Aug 2013 11:27:51 -0300 Subject: [Scilab-users] problem loading environments In-Reply-To: <51FCEAC2.9020102@limsi.fr> References: <51F90857.801@gmail.com> <51FCEAC2.9020102@limsi.fr> Message-ID: <51FFB667.5030901@gmail.com> clear function f=fiso(var,intP,param) fiazo=var(1); xt=var(2); T=var(3); I=var(4); nu=intP; chi=1; rp=1; razo=param; f = fiazo*xt/razo*log(fiazo*xt) + fiazo*(1-xt)/razo*log(fiazo*(1-xt)) + (1-fiazo)/rp*log(1-fiazo)+ chi*fiazo*(1-fiazo); endfunction function f=ftot(xt,p,intP,param) var=[p(1) xt p(2) p(3)]; f = fiso(var,intP,param); endfunction save("ejem.sav") load("ejem.sav") The error message is: Incompatible output argument at line 3 of function ftot called by : at line 14 of function createMacro called by : at line 8 of function %__convertVariable__ called by : at line 855 of function %_sodload called by : load("ejem.sav") But, doing the same without the variables intP, param, this is, defining the function fiso as fiso(var), and given some value to intP and param within the function... works fine! Any help will be appreciated. El 03/08/2013 08:34 a.m., Mathieu Dubois escribi?: > Could you send a simple example which creates a simple environement > that shows the problem when saved and restored? > > Mathieu > > Le 31/07/2013 14:51, Ezequiel Soule a ?crit : >> Hello, I keep having this problem, when I try to load a saved >> ennironments, I get an error "incompatible output arguments" in some >> function of the environment, and it doesn?t load anything. The function >> that gives the error works fine, and I don?t get any error when I >> execute or call the function, just when loading the environment. It is >> not one particular function, it happened many times, with different >> environements and different functions. I can load some of the variables >> if I specifiy then, but I can?t load the whole thing. >> This happens wiht versions 5.4.0 and 5.4.1, I haven?t try older >> versions. >> >> Any ideas? >> _______________________________________________ >> 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 jasonryan57 at hotmail.com Tue Aug 6 13:18:19 2013 From: jasonryan57 at hotmail.com (cactus_jack) Date: Tue, 6 Aug 2013 04:18:19 -0700 (PDT) Subject: [Scilab-users] Copying an array In-Reply-To: <51FFA939.5050906@laas.fr> References: <1375395379405-4027149.post@n3.nabble.com> <51FFA939.5050906@laas.fr> Message-ID: <1375787899297-4027172.post@n3.nabble.com> Hi Guys, Thanks for your replies. Sorry if i wasn't clear enough, my professor didn't give me a very clear explanation of what he wants me too do. He said I must use a for loop to copy the Q array into a new one but start the copying at the index that is half the interpx value. -- View this message in context: http://mailinglists.scilab.org/Copying-an-array-tp4027149p4027172.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue Aug 6 15:00:27 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 06 Aug 2013 15:00:27 +0200 Subject: [Scilab-users] Copying an array In-Reply-To: <1375787899297-4027172.post@n3.nabble.com> References: <1375395379405-4027149.post@n3.nabble.com> <51FFA939.5050906@laas.fr> <1375787899297-4027172.post@n3.nabble.com> Message-ID: <5200F36B.4010307@laas.fr> Le 06/08/13 13:18, cactus_jack a ?crit : > Hi Guys, > > Thanks for your replies. Sorry if i wasn't clear enough, my professor didn't > give me a very clear explanation of what he wants me too do. He said I must > use a for loop to copy the Q array into a new one but start the copying at > the index that is half the interpx value. OK, so my proposition should work (provided that you check that your Q array fits in the second half of the new one you are copying to). No need for a 'for' loop here as Scilab (like Matlab and others) is vector and matrix oriented. If you plan on coding in Scilab avoid for loops if you can as it is usually less efficient than more vectorial approaches. Cheers, Antoine > > > > -- > View this message in context: http://mailinglists.scilab.org/Copying-an-array-tp4027149p4027172.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 shorne at energetiq.com Tue Aug 6 16:09:51 2013 From: shorne at energetiq.com (shorne at energetiq.com) Date: Tue, 6 Aug 2013 10:09:51 -0400 Subject: [Scilab-users] Scilab console, xwindows -- plotting kills console keyboard Message-ID: I work in a windows environment.(xp) I usually use scilab on a linux computer, with display set to the windows box via the cygwin xserver. I have used this configuration happily with scilab 4.0. Never an issue. Open a cygwin xterminal on the xp box log into linux box with ssh -Y in that xterminal type "scilab" into the xterminal All works well. The linux box runs an old version of mandrake uname -a Linux dataserver.energetiq.com 2.6.11-6mdk #1 Tue Mar 22 16:04:32 CET 2005 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz unknown GNU/Linux I have used this scheme for years, running "production" code for data analysis. Recently I decided to upgrade the linux machine to a more modern distribution -- Mint Debian. $ uname -a Linux dataserver1 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux I installed scilab 5.x - to get access to some of the newer atoms toolboxes. I should say this is the debian scilab installed via apt-get. $ scilab -version Scilab version "5.4.1.1364571296" scilab-5.4.1 Now, if I start up scilab, the fancy new console comes up and works until I plot once. Or do anything to bring up a plot window. (eg, demo After that I can no longer type into the console. cut/paste with the mouse works; but keyboard is dead, when typing into the scilab window. Works fine on all other xterms. What can I do to fix this? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Aug 6 19:02:14 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 06 Aug 2013 19:02:14 +0200 Subject: [Scilab-users] Scilab console, xwindows -- plotting kills console keyboard In-Reply-To: References: Message-ID: <52012C16.7060607@laas.fr> His Steve, I think you need to run a couple of tests to see where the problem comes from. Here is what I propose: 1) Write the smallest script that raises the issue: like a script with just "scf()" or "plot()" then some other commands. 2) Try to run this script locally on the linux box to see if the problem is still present. If not this means your problem is linked with the remote use of scilab. 2bis) If the problem is due to the remote connection, try to run scilab remotely from another linux box (to rule out cygwin as a possible cause). 3) Try to run remotely scilab -nw (to avoid the fancy console as you call it). See if you script still causes an issue. 4) Try to run the last official version of scilab and also maybe the last nightly build of the master branch to see if the issue is still there. 5) Report on your progress here and we'll try to see whether it's a scilab bug, a debian bug or something else. Antoine Le 06/08/13 16:09, shorne at energetiq.com a ?crit : > I work in a windows environment.(xp) I usually use scilab on a linux > computer, with display set to the windows > box via the cygwin xserver. I have used this configuration happily with > scilab 4.0. Never an issue. > > Open a cygwin xterminal on the xp box > log into linux box with ssh -Y in that xterminal > type "scilab" into the xterminal > All works well. The linux box runs an old version of mandrake > uname -a > Linux dataserver.energetiq.com 2.6.11-6mdk #1 Tue Mar 22 16:04:32 CET 2005 > i686 Intel(R) Pentium(R) 4 CPU 2.80GHz unknown GNU/Linux > I have used this scheme for years, running "production" code for data > analysis. > > > Recently I decided to upgrade the linux machine to a more modern > distribution -- Mint Debian. > $ uname -a > Linux dataserver1 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC > 2013 i686 i686 i686 GNU/Linux > > I installed scilab 5.x - to get access to some of the newer atoms > toolboxes. > I should say this is the debian scilab installed via apt-get. > > $ scilab -version > Scilab version "5.4.1.1364571296" > scilab-5.4.1 > > Now, if I start up scilab, the fancy new console comes up and works until > I plot once. Or do anything to bring up a plot window. (eg, demo > > After that I can no longer type into the console. cut/paste with the > mouse works; but keyboard is dead, > when typing into the scilab window. Works fine on all other xterms. > > What can I do to fix this? > > Thanks, > Steve > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjmccann at iee.org Wed Aug 7 02:17:14 2013 From: mjmccann at iee.org (Michael J. McCann) Date: Wed, 07 Aug 2013 00:17:14 +0000 Subject: [Scilab-users] 5.4.1 Cannot create Java Main-Class Message-ID: <5201920A.5020504@iee.org> Scilab 5.4.1 was working a week or two ago on Windows XP -SP3. I came back to it and started it again and got the message: Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available). I removed Scilab, restarted the machine, down loaded it again from the website, re-installed it using defaults. Still the same message on the very first offer to start it after the installation. I don't know about Java and classes. I have not knowingly done anything with Java. I'm stuck. What do I do now? Mike. From antoine.monmayrant at laas.fr Wed Aug 7 09:15:03 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 07 Aug 2013 09:15:03 +0200 Subject: [Scilab-users] 5.4.1 Cannot create Java Main-Class In-Reply-To: <5201920A.5020504@iee.org> References: <5201920A.5020504@iee.org> Message-ID: <5201F3F7.2010801@laas.fr> Le 07/08/13 02:17, Michael J. McCann a ?crit : > Scilab 5.4.1 was working a week or two ago on Windows XP -SP3. I came > back to it and started it again and got the message: > > Scilab cannot create Scilab Java Main-Class (we have not been able to > find the main Scilab class. Check if the Scilab and thirdparty > packages are available). > > I removed Scilab, restarted the machine, down loaded it again from the > website, re-installed it using defaults. Still the same message on the > very first offer to start it after the installation. > > I don't know about Java and classes. I have not knowingly done > anything with Java. I'm stuck. What do I do now? Can you check whether other Java-based programs can run on your machine? Antoine > > Mike. > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From jasonryan57 at hotmail.com Wed Aug 7 13:09:42 2013 From: jasonryan57 at hotmail.com (cactus_jack) Date: Wed, 7 Aug 2013 04:09:42 -0700 (PDT) Subject: [Scilab-users] Copying an array In-Reply-To: <5200F36B.4010307@laas.fr> References: <1375395379405-4027149.post@n3.nabble.com> <51FFA939.5050906@laas.fr> <1375787899297-4027172.post@n3.nabble.com> <5200F36B.4010307@laas.fr> Message-ID: <1375873782081-4027178.post@n3.nabble.com> Hi Antoine, Thanks for your help, Its much appreciated. -- View this message in context: http://mailinglists.scilab.org/Copying-an-array-tp4027149p4027178.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mccannscience at comcast.net Wed Aug 7 14:11:58 2013 From: mccannscience at comcast.net (Michael J. McCann) Date: Wed, 07 Aug 2013 12:11:58 +0000 Subject: [Scilab-users] 5.4.1 Cannot create Java Main-Class In-Reply-To: <5201F3F7.2010801@laas.fr> References: <5201920A.5020504@iee.org> <5201F3F7.2010801@laas.fr> Message-ID: <5202398E.2000108@comcast.net> Antoine, Good question. I have to admit I don't know which ones, if any, are Java based. (select from Mathcad, Matlab, R, Excel etc, (my photo editing software was OK), However, it presents a clue. I once tried Net-Beans on this machine and not having used it for years, in cleaning out unused stuff, I removed it, knowing that next time I would get an up to date version anyway. That could well have happened since my last working run of Scilab. I see from looking at the installed Scilab files there is a JRE folder. I also found that while "Wscilab.exe" gets the problem, the console version comes up when I invoke Scilab.exe and it runs. Would it help to install a new version of Netbeans or some other Java software? THanks, Mike. =========================== On 07/08/2013 07:15, Antoine Monmayrant wrote: > Le 07/08/13 02:17, Michael J. McCann a ?crit : >> Scilab 5.4.1 was working a week or two ago on Windows XP -SP3. I came >> back to it and started it again and got the message: >> >> Scilab cannot create Scilab Java Main-Class (we have not been able >> to find the main Scilab class. Check if the Scilab and thirdparty >> packages are available). >> >> I removed Scilab, restarted the machine, down loaded it again from >> the website, re-installed it using defaults. Still the same message >> on the very first offer to start it after the installation. >> >> I don't know about Java and classes. I have not knowingly done >> anything with Java. I'm stuck. What do I do now? > Can you check whether other Java-based programs can run on your machine? > Antoine >> Mike. > ______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From shorne at energetiq.com Wed Aug 7 18:59:09 2013 From: shorne at energetiq.com (shorne at energetiq.com) Date: Wed, 7 Aug 2013 12:59:09 -0400 Subject: [Scilab-users] Scilab console, xwindows -- plotting kills console keyboard In-Reply-To: <52012C16.7060607@laas.fr> Message-ID: RE the bug described below.. I can't run precisely through the sequence you recommend - but I did discover this - The problem is related to the scilab console loosing focus. To produce the bug all I need to do is click outside the console window. Normally, the 4 separate windows in the console - when you click inside any of them, the title bar turns black, indicating the location of keyboard focus. I can click from pane to pane and see the title turn black. But if I click once outside the console (to this email, for instance) then I cannot get keyboard focus back to scilab. The main scilab window (Scilab 5.4.1 Console) lights up to indicate focus, but the individual panes don't get focus when I click in them. The -->| vertical cursor still blinks, if that helps.. I also tried capturing the scilab session within a separate xserver:. I tried xnest, but this worked better... Xephyr :1 -screen 1000x1000 & xterm -display :1 -e "/home/shorne/src/scilab-5.4.1/bin/scilab" This required usecanvas(%T) but otherwise worked fine. Focus could be moved around at will without getting lost. (This was the minimal case. I tried first running a window manager in the display - that worked fine as well.) Oddly, plotting seemed faster. Hope this helps find the bug - Steve Antoine Monmayrant Sent by: users-bounces at lists.scilab.org 08/06/2013 01:02 PM Please respond to antoine.monmayrant at laas.fr; Please respond to "International users mailing list for Scilab." To "International users mailing list for Scilab." cc Subject Re: [Scilab-users] Scilab console, xwindows -- plotting kills console keyboard His Steve, I think you need to run a couple of tests to see where the problem comes from. Here is what I propose: 1) Write the smallest script that raises the issue: like a script with just "scf()" or "plot()" then some other commands. 2) Try to run this script locally on the linux box to see if the problem is still present. If not this means your problem is linked with the remote use of scilab. 2bis) If the problem is due to the remote connection, try to run scilab remotely from another linux box (to rule out cygwin as a possible cause). 3) Try to run remotely scilab -nw (to avoid the fancy console as you call it). See if you script still causes an issue. 4) Try to run the last official version of scilab and also maybe the last nightly build of the master branch to see if the issue is still there. 5) Report on your progress here and we'll try to see whether it's a scilab bug, a debian bug or something else. Antoine Le 06/08/13 16:09, shorne at energetiq.com a ?crit : I work in a windows environment.(xp) I usually use scilab on a linux computer, with display set to the windows box via the cygwin xserver. I have used this configuration happily with scilab 4.0. Never an issue. Open a cygwin xterminal on the xp box log into linux box with ssh -Y in that xterminal type "scilab" into the xterminal All works well. The linux box runs an old version of mandrake uname -a Linux dataserver.energetiq.com 2.6.11-6mdk #1 Tue Mar 22 16:04:32 CET 2005 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz unknown GNU/Linux I have used this scheme for years, running "production" code for data analysis. Recently I decided to upgrade the linux machine to a more modern distribution -- Mint Debian. $ uname -a Linux dataserver1 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux I installed scilab 5.x - to get access to some of the newer atoms toolboxes. I should say this is the debian scilab installed via apt-get. $ scilab -version Scilab version "5.4.1.1364571296" scilab-5.4.1 Now, if I start up scilab, the fancy new console comes up and works until I plot once. Or do anything to bring up a plot window. (eg, demo After that I can no longer type into the console. cut/paste with the mouse works; but keyboard is dead, when typing into the scilab window. Works fine on all other xterms. What can I do to fix this? Thanks, Steve _______________________________________________ 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 vogt at centre-cired.fr Wed Aug 7 21:08:01 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 07 Aug 2013 21:08:01 +0200 Subject: [Scilab-users] problem loading environments In-Reply-To: <51FFB667.5030901@gmail.com> References: <51F90857.801@gmail.com> <51FCEAC2.9020102@limsi.fr> <51FFB667.5030901@gmail.com> Message-ID: <52029B11.6040607@centre-cired.fr> the bug does not happen in scilab 5.3.3 win64. Ezequiel, did you try to rename the argument "param" to something else? like "myparam". Maybe "param" is used internaly by some scilab function On 05/08/2013 16:27, Ezequiel Soule wrote: > clear > > function f=fiso(var,intP,param) > > fiazo=var(1); > xt=var(2); > T=var(3); > I=var(4); > > nu=intP; > chi=1; > > rp=1; > razo=param; > > f = fiazo*xt/razo*log(fiazo*xt) + fiazo*(1-xt)/razo*log(fiazo*(1-xt)) + (1-fiazo)/rp*log > (1-fiazo)+ chi*fiazo*(1-fiazo); > > endfunction > > function f=ftot(xt,p,intP,param) > var=[p(1) xt p(2) p(3)]; > f = fiso(var,intP,param); > > endfunction > > save("ejem.sav") > > load("ejem.sav") > > The error message is: > Incompatible output argument > at line 3 of function ftot called by : > at line 14 of function createMacro called by : > at line 8 of function %__convertVariable__ called by : > at line 855 of function %_sodload called by : > load("ejem.sav") > But, doing the same without the variables intP, param, this is, > defining the function fiso as fiso(var), and given some value to intP > and param within the function... works fine! > Any help will be appreciated. > > > El 03/08/2013 08:34 a.m., Mathieu Dubois escribi?: >> Could you send a simple example which creates a simple environement >> that shows the problem when saved and restored? >> >> Mathieu >> >> Le 31/07/2013 14:51, Ezequiel Soule a ?crit : >>> Hello, I keep having this problem, when I try to load a saved >>> ennironments, I get an error "incompatible output arguments" in some >>> function of the environment, and it doesn?t load anything. The function >>> that gives the error works fine, and I don?t get any error when I >>> execute or call the function, just when loading the environment. It is >>> not one particular function, it happened many times, with different >>> environements and different functions. I can load some of the variables >>> if I specifiy then, but I can?t load the whole thing. >>> This happens wiht versions 5.4.0 and 5.4.1, I haven?t try older >>> versions. >>> >>> Any ideas? >>> _______________________________________________ >>> 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 matiashs at hotmail.com Thu Aug 8 18:14:34 2013 From: matiashs at hotmail.com (matacosta) Date: Thu, 8 Aug 2013 09:14:34 -0700 (PDT) Subject: [Scilab-users] 5.4.1 Cannot create Java Main-Class In-Reply-To: <5202398E.2000108@comcast.net> References: <5201920A.5020504@iee.org> <5201F3F7.2010801@laas.fr> <5202398E.2000108@comcast.net> Message-ID: <1375978474377-4027182.post@n3.nabble.com> Hi, >From this morning I am also having the same problem in windows 7 64x. I tried uninstalling java and scilab. I also changed the versions go both software and still the same error is appearing. Any clues how to solve it? Thank you very much! Regards, Matias -- View this message in context: http://mailinglists.scilab.org/Scilab-users-5-4-1-Cannot-create-Java-Main-Class-tp4027176p4027182.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab-enterprises.com Thu Aug 8 18:15:51 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Thu, 08 Aug 2013 18:15:51 +0200 Subject: [Scilab-users] 5.4.1 Cannot create Java Main-Class In-Reply-To: <1375978474377-4027182.post@n3.nabble.com> References: <5201920A.5020504@iee.org> <5201F3F7.2010801@laas.fr> <5202398E.2000108@comcast.net> <1375978474377-4027182.post@n3.nabble.com> Message-ID: <5203C437.3050209@scilab-enterprises.com> Le 08/08/2013 18:14, matacosta a ?crit : > Hi, > > From this morning I am also having the same problem in windows 7 64x. I > tried uninstalling java and scilab. I also changed the versions go both > software and still the same error is appearing. Any clues how to solve it? Try to remove or rename the SCIHOME configuration directory http://help.scilab.org/SCIHOME Sylvestre From mjmccann at iee.org Thu Aug 8 19:32:58 2013 From: mjmccann at iee.org (Michael J. McCann) Date: Thu, 08 Aug 2013 17:32:58 +0000 Subject: [Scilab-users] 5.4.1 Cannot create Java Main-Class In-Reply-To: <5203C437.3050209@scilab-enterprises.com> References: <5201920A.5020504@iee.org> <5201F3F7.2010801@laas.fr> <5202398E.2000108@comcast.net> <1375978474377-4027182.post@n3.nabble.com> <5203C437.3050209@scilab-enterprises.com> Message-ID: <5203D64A.4020605@iee.org> Matacosta, The problem seems to be that reinstalling doesn't work because all the user application data isn't removed. The new copy picks it up but by then it's corrupted. But with your new installation you can probably get the console version to run. In the program files "bin" find Scilex.exe and activate it (double click) and you get a console. Then locate the folder by typing SCIHOME at the console prompt . Take the advice in the forum to delete the identified folder (actually I hid it by a name change), close the console and Scilab starts again via the shortcut and the windows GUI comes up. I see it has made a new folder, same name as before but I see that the windows configuration file now has 4.6kB instead of 0bytes. So Sylvestre's advice is right. This is a bit more detailed. Mike. ================ On 08/08/2013 16:15, Sylvestre Ledru wrote: > Le 08/08/2013 18:14, matacosta a ?crit : >> Hi, >> >> From this morning I am also having the same problem in windows 7 64x. I >> tried uninstalling java and scilab. I also changed the versions go both >> software and still the same error is appearing. Any clues how to solve it? > Try to remove or rename the SCIHOME configuration directory > http://help.scilab.org/SCIHOME > > Sylvestre > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From shorne at energetiq.com Thu Aug 8 20:45:52 2013 From: shorne at energetiq.com (shorne at energetiq.com) Date: Thu, 8 Aug 2013 14:45:52 -0400 Subject: [Scilab-users] Using intersci... In-Reply-To: <5203D64A.4020605@iee.org> Message-ID: I've recently installed 5.4.1 running on linux mint debian, "olivia". I posted recently about issues related to keyboard focus when running on a headless server via ssh -Y. I found a workaround and am struggling on. I cannot figure out how to get dynamic linking to work as it used to. The single most useful feature of scilab (matlab, octave, idl) is the ability to write fortran (specifically, fortran) code and link it dynamically. (Nearly every useful numerical analysis function has already been written -- in fortran.) This worked fine in 4.0; I even got it to work in 5.4.1 windows, using the ATOMs module (I forget the name -- in the Windows tools) I can't figure it out on the debian system. The examples in /scilab-5.4.1/modules/intersci/examples seem not to build anymore. 0) Does anybody actually use this functionality?? 1) Where is intersci-n? 2) Where is the Makefile.inc referred to in the /scilab-5.4.1/modules/intersci/examples/Makefile? 3) What questions should I be asking? The "help" on intersci says to use "swig". without a couple of completely worked through examples, that's not much help.... Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From boljeleel at yahoo.com Thu Aug 8 22:48:20 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Thu, 8 Aug 2013 13:48:20 -0700 (PDT) Subject: [Scilab-users] ODE Simulation Problem Initially solved with FORTRAN to be numrically solved using Scilab Message-ID: <1375994900.57164.YahooMailNeo@web160304.mail.bf1.yahoo.com> Hiall, I humbly seek kind ?assistance in solving a Simulation Problem (GRAVITY FLOW TANK) that was initially written ?with FORTRAN to numerically integrate two ODEs (to be given below, eqns 1&2). Gravity-flow tank data: Pipe: Internal Diameter = 3 ft??? Area = 7.06 ft2???? Length = 3000 ft Tank: Internal Diameter = 12ft? Area = 113 ft2????????? Height = 7 ft ? Steady State values: F = 35.1 ft3/s (15, 700 gpm) h = 4.72 ft ? = 4.97 ft/s ? d?/dt = 0.0107h ? 0.00205?2 ???????eqn(1) dh/dt = 0.311 ? 0.0624??????????eqn(2) The following FORTRAN program numerically integrates the two ODEs describing the system for two different initial conditions of flow and liquid level in the tank: (1) when the initial flow rate is 50 percent of the design rate, and (2) when the initial flow rate is 67 percent of the design flow rate. At time equal zero, the flow rate into the tank is increased to the maximum design flow rate of 35.1 ft3/s. Gravity-flow tank simulation (FORTRAN) C???????????? ??????????????? (TIME IN SECONDS) C TWO CASES ARE RUN. AT TIME EQUAL ZERO THE FEED FLOW RATE IS C???????????? ?? INCREASED TO 100% OF THE DESIGN FLOW RATE (15, 700 GPM) C???????????? ?? CASE NO.1 STARTS FROM 67% OF DESIGN FLOW RATE C???????????? ?? CASE NO.2 STARTS FROM 50% OF DESIGN FLOW RATE ??????????????? DATA V1,H1/3.40,2.05/ ??? ??? ??? ??? DATA V2,H2/2.50,1.2/ ??? ??? ??? ??? DO 200 N=1,2 ??? ??? ??? ??? IF(N.=EQ.1)THEN ??? ??? ??? ??? V=V1 ??? ??? ??? ??? H=H1 ??? ??? ??? ELSE ??? ??? ??? ??? V=V2 ??? ??? ??? ??? H=H2 ??? ??? ??? ??? ENDIF ??? ??? ??? ??? TIME=0. ??? ??? ??? ??? DELTA=1. ??? ??? ??? ??? TPRINT=0. ??? ??? ??? ??? WRITE(6,1)V,H ????????? 1 FORMAT(?INITIAL CONDITIONS: V= ?,F6.3,? H=?,F8.3) ??? ??? ??? ??? WRITE(6,2) ???????? 2 FORMAT(??????????????? TIME????? V???????????? H?) C C EVALUATE DERIVATIVES C ? 100 VDOT=0.0107*H-0.00205*V**2 ??????????? HDOT=0.311-0.0624*V ??????????? IF(TIME.LT.TPRINT)GO TO 10 ??????????? WRITE(6,3)TIME,V,H ??? ??? 3 FORMAT(3X,3F8.2) ??????????????? TPRINT=TPRINT+20. C C INTEGRATE USING EULER C ??? 10 V = V+ VDOT+VDELTA ????????? H= H+HDOT+DELTA ?????? TIME=TIME+DELTA ??????? IF(TIME.LE.200.)GO TO 100 200 CONTINUE ?????? STOP ?????? END ? The explicit first-order Euler algorithm is used. The variables that we are solving for as functions of time are V and H. the right-hand sides of eqns (1) and (3) are the derivative functions. These are called VDOT and HDOT in the program. At the nth step in time (VDOT)n = 0.0107(H)n ? 0.00205[(V)n]2 ???????????.eqn(3) (HDOT)n = 0.311 ? 0.0624(V)n??????????????.eqn(4) The new values of H and V at the (n+1)st step are calculated from the Euler algorithm with a step size of DELTA. (H)n+1 = (H)n + DELTA(HDOT)n???????????eqn(5) (V)n+1 = (V)n +DELTA(VDOT)n???????????eqn(6) A plot was equally generated to illustrate the relationship between h, ft and process time, s. Thanks as I anticipate various professional inputs. ? ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matiashs at hotmail.com Fri Aug 9 09:34:16 2013 From: matiashs at hotmail.com (matacosta) Date: Fri, 9 Aug 2013 00:34:16 -0700 (PDT) Subject: [Scilab-users] 5.4.1 Cannot create Java Main-Class In-Reply-To: <5203D64A.4020605@iee.org> References: <5201920A.5020504@iee.org> <5201F3F7.2010801@laas.fr> <5202398E.2000108@comcast.net> <1375978474377-4027182.post@n3.nabble.com> <5203C437.3050209@scilab-enterprises.com> <5203D64A.4020605@iee.org> Message-ID: <1376033656904-4027188.post@n3.nabble.com> Hi All, Thank you so much for the help now is all working fine! Cheers, Matias -- View this message in context: http://mailinglists.scilab.org/Scilab-users-5-4-1-Cannot-create-Java-Main-Class-tp4027176p4027188.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grivet at cnrs-orleans.fr Fri Aug 9 14:11:23 2013 From: grivet at cnrs-orleans.fr (grivet) Date: Fri, 09 Aug 2013 14:11:23 +0200 Subject: [Scilab-users] discrete cosine transform Message-ID: <5204DC6B.600@cnrs-orleans.fr> Hello, I have found a strange and, for me annoying, behavior of the dct funtion (discrete cosine transform). A minimal example follows. clear; imax1 = 128; imax2 = 64; sig = rand(imax1,imax2); for i1 = 1:imax1 sig1(i1,:) = fft(sig(i1,:)); end for i2 = 1:imax2 spc(:,i2) = dct(real(sig1(:,i2)),"dct1"); end This program executes without a hitch; however, it fails when I choose imax1 = imax2 (whatever the value), with error message Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "dct" function. Save your data and restart Scilab. end !--error 115 Probl?me de pile d?tect? pendant une boucle. Une fonction primitive a ?t? appel?e avec un nombre erron? d'arguments de sortie. Aucun test sur les arguments de sortie n'a pu ?tre effectu? dans cette fonction. Veuillez rapporter ce bug : http://bugzilla.scilab.org/ at line 9 of exec file called by : exec(%fileToExec); disp(msprintf(gettext("Execution done. while executing a callback i find it surprising that Scilab's behavior is somewhat random: the error message is not always the same and a fresh Scilab can behave differently than when is runs the program several times in a row. I have also seen the following message Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "dct" function. Save your data and restart Scilab. !--error 10000 L'affectation d'une cha?ne de caract?res dans une matrice de nombres n'est pas impl?ment?e. at line 7 of function %c_i_s called by : spc(:,i2) = dct(real(sig1(:,i2)),"dct1"); at line 10 of exec file called by : exec(%fileToExec); disp(msprintf(gettext("Execution done.\n")) while executing a callback I would be grateful to learn about a workaround. Thank you in advance JP Grivet From krotersv at gmail.com Fri Aug 9 16:02:52 2013 From: krotersv at gmail.com (Stanislav) Date: Fri, 9 Aug 2013 07:02:52 -0700 (PDT) Subject: [Scilab-users] discrete cosine transform In-Reply-To: <5204DC6B.600@cnrs-orleans.fr> References: <5204DC6B.600@cnrs-orleans.fr> Message-ID: <1376056972377-4027190.post@n3.nabble.com> Hello. I have no problem with your example. I use Scilab-5.4.1 on Linux 64-bit. Stanislav -- View this message in context: http://mailinglists.scilab.org/Scilab-users-discrete-cosine-transform-tp4027189p4027190.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grivet at cnrs-orleans.fr Fri Aug 9 16:56:07 2013 From: grivet at cnrs-orleans.fr (grivet) Date: Fri, 09 Aug 2013 16:56:07 +0200 Subject: [Scilab-users] discrete cosine transform In-Reply-To: <1376056972377-4027190.post@n3.nabble.com> References: <5204DC6B.600@cnrs-orleans.fr> <1376056972377-4027190.post@n3.nabble.com> Message-ID: <52050307.40003@cnrs-orleans.fr> Le 09/08/2013 16:02, Stanislav a ?crit : > Hello. > I have no problem with your example. I use Scilab-5.4.1 on Linux 64-bit. > > Stanislav > Sorry, I should have mentionned that I use Scilab 5.4.1 under winXP From boljeleel at yahoo.com Fri Aug 9 19:00:55 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Fri, 9 Aug 2013 10:00:55 -0700 (PDT) Subject: [Scilab-users] ODE Simulation Problem Initially solved with FORTRAN to be numrically solved using Scilab/MATLAB In-Reply-To: <1375994900.57164.YahooMailNeo@web160304.mail.bf1.yahoo.com> References: <1375994900.57164.YahooMailNeo@web160304.mail.bf1.yahoo.com> Message-ID: <1376067655.31907.YahooMailNeo@web160304.mail.bf1.yahoo.com> Hi All, I humbly seek kind ?assistance in solving a Simulation Problem (GRAVITY FLOW TANK) that was initially written ?with FORTRAN to numerically integrate two ODEs (to be given below, eqns 1&2). Gravity-flow tank data: Pipe: Internal Diameter = 3 ft??? Area = 7.06 ft2???? Length = 3000 ft Tank: Internal Diameter = 12ft? Area = 113 ft2????????? Height = 7 ft ? Steady State values: F = 35.1 ft3/s (15, 700 gpm) h = 4.72 ft ? = 4.97 ft/s d?/dt = 0.0107h ? 0.00205?2 ???????eqn(1) dh/dt = 0.311 ? 0.0624??????????eqn(2) The following FORTRAN program numerically integrates the two ODEs describing the system for two different initial conditions of flow and liquid level in the tank: (1) when the initial flow rate is 50 percent of the design rate, and (2) when the initial flow rate is 67 percent of the design flow rate. At time equal zero, the flow rate into the tank is increased to the maximum design flow rate of 35.1 ft3/s. Gravity-flow tank simulation (FORTRAN) C???????????? ??????????????? (TIME IN SECONDS) C TWO CASES ARE RUN. AT TIME EQUAL ZERO THE FEED FLOW RATE IS C???????????? ?? INCREASED TO 100% OF THE DESIGN FLOW RATE (15, 700 GPM) C???????????? ?? CASE NO.1 STARTS FROM 67% OF DESIGN FLOW RATE C???????????? ?? CASE NO.2 STARTS FROM 50% OF DESIGN FLOW RATE ??????????????? DATA V1,H1/3.40,2.05/ ??? ??? ??? ??? DATA V2,H2/2.50,1.2/ ??? ??? ??? ??? DO 200 N=1,2 ??? ??? ??? ??? IF(N.=EQ.1)THEN ??? ??? ??? ??? V=V1 ??? ??? ??? ??? H=H1 ??? ??? ??? ELSE ??? ??? ??? ??? V=V2 ??? ??? ??? ??? H=H2 ??? ??? ??? ??? ENDIF ??? ??? ??? ??? TIME=0. ??? ??? ??? ??? DELTA=1. ??? ??? ??? ??? TPRINT=0. ??? ??? ??? ??? WRITE(6,1)V,H ????????? 1 FORMAT(?INITIAL CONDITIONS: V= ?,F6.3,? H=?,F8.3) ??? ??? ??? ??? WRITE(6,2) ???????? 2 FORMAT(??????????????? TIME????? V???????????? H?) C C EVALUATE DERIVATIVES C ? 100 VDOT=0.0107*H-0.00205*V**2 ??????????? HDOT=0.311-0.0624*V ??????????? IF(TIME.LT.TPRINT)GO TO 10 ??????????? WRITE(6,3)TIME,V,H ??? ??? 3 FORMAT(3X,3F8.2) ??????????????? TPRINT=TPRINT+20. C C INTEGRATE USING EULER C ??? 10 V = V+ VDOT+VDELTA ????????? H= H+HDOT+DELTA ?????? TIME=TIME+DELTA ??????? IF(TIME.LE.200.)GO TO 100 200 CONTINUE ?????? STOP ?????? END ? The explicit first-order Euler algorithm is used. The variables that we are solving for as functions of time are V and H. the right-hand sides of eqns (1) and (3) are the derivative functions. These are called VDOT and HDOT in the program. At the nth step in time (VDOT)n = 0.0107(H)n ? 0.00205[(V)n]2 ???????????.eqn(3) (HDOT)n = 0.311 ? 0.0624(V)n??????????????.eqn(4) The new values of H and V at the (n+1)st step are calculated from the Euler algorithm with a step size of DELTA. (H)n+1 = (H)n + DELTA(HDOT)n???????????eqn(5) (V)n+1 = (V)n +DELTA(VDOT)n???????????eqn(6) A plot was equally generated to illustrate the relationship between h, ft and process time, s. Thanks as I anticipate various professional inputs. ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From omorr at uns.ac.rs Fri Aug 9 19:50:16 2013 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Fri, 09 Aug 2013 19:50:16 +0200 Subject: [Scilab-users] ODE Simulation Problem Initially solved with FORTRAN to be numrically solved using Scilab/MATLAB In-Reply-To: <1376067655.31907.YahooMailNeo@web160304.mail.bf1.yahoo.com> References: <1375994900.57164.YahooMailNeo@web160304.mail.bf1.yahoo.com> <1376067655.31907.YahooMailNeo@web160304.mail.bf1.yahoo.com> Message-ID: <52052BD8.9080301@uns.ac.rs> Hello, To be honest, I do not understand your problem, sorry. There are two ordinary differential equations d?/dt = 0.0107h -- 0.00205?^2 .....................eqn(1) dh/dt = 0.311 -- 0.0624?..............................eqn(2) what is the interval of integration t=[0,?] ? what are the initial conditions v, h for t=0 ? I suppose that v,h are changed somehow in t=[0,?]. In what way? Regards, Radovan On 8/9/2013 7:00 PM, Debola Abduljeleel wrote: > > Hi All, > > I humbly seek kind assistance in solving a Simulation Problem (GRAVITY > FLOW TANK) that was initially written with FORTRAN to numerically > integrate two ODEs (to be given below, eqns 1&2). > *Gravity-flow tank data:* > /Pipe:/ > Internal Diameter = 3 ftArea = 7.06 ft^2Length = 3000 ft > /Tank:/ > Internal Diameter = 12ftArea = 113 ft^2Height = 7 ft > ** > *Steady State values:* > F = 35.1 ft^3 /s (15, 700 gpm) > h = 4.72 ft > ? = 4.97 ft/s > d?/dt = 0.0107h -- 0.00205?^2 .....................eqn(1) > > dh/dt = 0.311 -- 0.0624?...........................eqn(2) > > The following FORTRAN program numerically integrates the two ODEs > describing the system for two different initial conditions of flow and > liquid level in the tank: (1) when the initial flow rate is 50 percent > of the design rate, and (2) when the initial flow rate is 67 percent > of the design flow rate. At time equal zero, the flow rate into the > tank is increased to the maximum design flow rate of 35.1 ft^3 /s. > Gravity-flow tank simulation (FORTRAN) > C(TIME IN SECONDS) > C TWO CASES ARE RUN. AT TIME EQUAL ZERO THE FEED FLOW RATE IS > CINCREASED TO 100% OF THE DESIGN FLOW RATE (15, 700 GPM) > CCASE NO.1 STARTS FROM 67% OF DESIGN FLOW RATE > CCASE NO.2 STARTS FROM 50% OF DESIGN FLOW RATE > DATA V1,H1/3.40,2.05/ > DATA V2,H2/2.50,1.2/ > DO 200 N=1,2 > IF(N.=EQ.1)THEN > V=V1 > H=H1 > ELSE > V=V2 > H=H2 > ENDIF > TIME=0. > DELTA=1. > TPRINT=0. > WRITE(6,1)V,H > 1 FORMAT('INITIAL CONDITIONS: V= ',F6.3,' H=',F8.3) > WRITE(6,2) > 2 FORMAT('TIMEVH') > C > C EVALUATE DERIVATIVES > C > 100 VDOT=0.0107*H-0.00205*V**2 > HDOT=0.311-0.0624*V > IF(TIME.LT .TPRINT)GO TO 10 > WRITE(6,3)TIME,V,H > 3 FORMAT(3X,3F8.2) > TPRINT=TPRINT+20. > C > C INTEGRATE USING EULER > C > 10 V = V+ VDOT+VDELTA > H= H+HDOT+DELTA > TIME=TIME+DELTA > IF(TIME.LE.200.)GO TO 100 > 200 CONTINUE > STOP > END > The explicit first-order Euler algorithm is used. The variables that > we are solving for as functions of time are V and H. the right-hand > sides of eqns (1) and (3) are the derivative functions. These are > called VDOT and HDOT in the program. At the nth step in time > (VDOT)_n = 0.0107(H)_n -- 0.00205[(V)_n ]^2 > ..................................eqn(3) > (HDOT)_n = 0.311 -- 0.0624(V)_n > ...........................................eqn(4) > The new values of H and V at the (n+1)st step are calculated from the > Euler algorithm with a step size of DELTA. > (H)_n+1 = (H)_n + DELTA(HDOT)_n .................................eqn(5) > (V)_n+1 = (V)_n +DELTA(VDOT)_n .................................eqn(6) > A plot was equally generated to illustrate the relationship between h, > ft and process time, s. > > Thanks as I anticipate various professional inputs. > ABDULJELEEL A. OSUNKUNLE > SCIENTIFIC OFFICER > PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, > ENUGU, NIGERIA. > +2347058408440. > > _______________________________________________ > 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 shorne at energetiq.com Fri Aug 9 21:41:18 2013 From: shorne at energetiq.com (shorne at energetiq.com) Date: Fri, 9 Aug 2013 15:41:18 -0400 Subject: [Scilab-users] Using intersci... solved, sort of In-Reply-To: Message-ID: Followup to this note: === I've recently installed 5.4.1 running on linux mint debian, "olivia". I posted recently about issues related to keyboard focus when running on a headless server via ssh -Y. I found a workaround and am struggling on. I cannot figure out how to get dynamic linking to work as it used to. === I figured out the dynamic linking intersci issues. The short answer is, use the skeleton toolbox scilab-5.4.1/contrib/toolbox_skeleton as a sample. There are various things to figure out -- the trickiest was this -- Intersci may not be officially supported, but it's there if you turn on the support. You have to use intersci manually (or maybe there's some other hack to the makefile?) and it only makes c language interfaces - which is fine. The generated code won't compile unless you utter a particular incantation -- the "setenv" line below. toradiali.c is the code generated by intersci. My code is toradial.f. (If you want to see how painful it is to do this the "new" way, poke around in the toolbox, and look at the various interface routines. Also this was somewhat useful... obviously a lot of work to write. Thank you Michael. http://perso.telecom-paristech.fr/~blanchet/FCFD/Scilab/docs/sciextensions-v0.2.pdf ) builder_gateway_fortran.sce: === // This file is released under the 3-clause BSD license. See COPYING-BSD. function builder_gw_fortran() setenv("__USE_DEPRECATED_STACK_FUNCTIONS__","YES"); libname="sfhtst1" ; // library name names= ["fortran_sum","sci_fsum"; "toradial","intstoradial"]; // subroutine, interface pairs files=["sci_fsum.c","toradiali.c"] ; // The interface sources, maybe? tbx_build_gateway(libname,names,files, .. get_absolute_file_path("builder_gateway_fortran.sce"), .. ["../../src/fortran/libfsum"]); endfunction builder_gw_fortran(); clear builder_gw_fortran; // remove builder_gw_fortran on stack === The "tbx_* routines copy everything to TMPDIR so that's where you look to see what's going on. Since the .desc file that interface.sci uses to generate the c code seems to completely define the interface, I do hope that the swig solution that is threatened for version 6 will use that file as input . Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Aug 9 22:23:49 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 09 Aug 2013 22:23:49 +0200 Subject: [Scilab-users] discrete cosine transform In-Reply-To: <52050307.40003@cnrs-orleans.fr> References: <5204DC6B.600@cnrs-orleans.fr> <1376056972377-4027190.post@n3.nabble.com> <52050307.40003@cnrs-orleans.fr> Message-ID: <52054FD5.6030102@free.fr> Le 09/08/2013 16:56, grivet a ?crit : > Le 09/08/2013 16:02, Stanislav a ?crit : >> Hello. >> I have no problem with your example. I use Scilab-5.4.1 on Linux 64-bit. >> >> Stanislav >> > Sorry, > I should have mentionned that I use Scilab 5.4.1 under winXP Hello, You may have a look at http://bugzilla.scilab.org/show_bug.cgi?id=12303 where a work-around is provided Regards Samuel From ogemgm at gmail.com Sun Aug 11 05:48:47 2013 From: ogemgm at gmail.com (oscar.espejo) Date: Sat, 10 Aug 2013 20:48:47 -0700 (PDT) Subject: [Scilab-users] problem with uicontrol "table" Message-ID: <1376192927927-4027196.post@n3.nabble.com> I'm trying to use an uicontrol style "table" in a UI to set some parameters, I used the: "get(handles...,'string')" technic and "var = handles....string" technic to retrive the string data from the table after change some values, but the answer is ever the same that are the original values of the string. In other hand, when I reasing the values of the table, the table change the values. In few words, I can assign the string values of the uicontrol table but after change the values in the control I can't retrive the data. I hope any can help me, because the other way is to build 64 text boxes... Thanks in advance for the help. PD, I have the 5.4.1 version of scilab in a fedora 19 66b plataform. -- View this message in context: http://mailinglists.scilab.org/problem-with-uicontrol-table-tp4027196.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun Aug 11 11:53:31 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 11 Aug 2013 11:53:31 +0200 Subject: [Scilab-users] problem with uicontrol "table" In-Reply-To: <1376192927927-4027196.post@n3.nabble.com> References: <1376192927927-4027196.post@n3.nabble.com> Message-ID: <52075F1B.5010405@free.fr> Hello, You may add a comment here http://bugzilla.scilab.org/show_bug.cgi?id=11625 to awake the thread and say that you also need this feature working. Regards Samuel From jrafaelbguerra at hotmail.com Sun Aug 11 18:41:58 2013 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 11 Aug 2013 09:41:58 -0700 (PDT) Subject: [Scilab-users] Standalone viewing of Scilab *.scg graphic files? Message-ID: <1376239318014-4027198.post@n3.nabble.com> Hello Scilabers, Is there a standalone/quick way of visualizing the Scilab *.scg graphic files in Scilab's graphic window (which allows zooming, etc), without having to launch Scilab? Thanks and regards Rafael G. -- View this message in context: http://mailinglists.scilab.org/Standalone-viewing-of-Scilab-scg-graphic-files-tp4027198.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun Aug 11 18:47:20 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 11 Aug 2013 18:47:20 +0200 Subject: [Scilab-users] Standalone viewing of Scilab *.scg graphic files? In-Reply-To: <1376239318014-4027198.post@n3.nabble.com> References: <1376239318014-4027198.post@n3.nabble.com> Message-ID: <5207C018.9080903@free.fr> Hello Rafael, As far as i know: no, you must run scilab to do so. Regards Samuel From pascal.buehler at ch.sauter-bc.com Mon Aug 12 07:44:12 2013 From: pascal.buehler at ch.sauter-bc.com (Pascal Buehler) Date: Mon, 12 Aug 2013 07:44:12 +0200 Subject: [Scilab-users] Antwort: Re: STEP- Datei In-Reply-To: <51FA4C87.7080403@inria.fr> References: <51FA4C87.7080403@inria.fr> Message-ID: Thank you for all your replies. I will try and look further for this point. M.f.G Pascal with best regards / mit freundlichen Gr?ssen Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. Von: Serge Steer An: "International users mailing list for Scilab." Datum: 01.08.2013 13:55 Betreff: Re: [Scilab-users] STEP- Datei Gesendet von: users-bounces at lists.scilab.org Please find attached a Scilab function which is able to translated step instructions into Scilab ones. It remains an important problem I was not able to solve yet: The step instructions are not ordered so they can be evaluated in sequence. May be it will be enough for your purpose (if you only want to get only some data) Serge Steer Le 31/07/2013 14:15, Pascal Buehler a ?crit : Hi there, my name is Pascal, i want to load a STEP file into Scilab. Now, my problem is to seperate the koordinates from the String! I tried various things but non of the is satifying. the goal ist to make the koordinates from string into a matrix of nubers and to display in a figure. Anyone who knows an elegant way? Here the files PS: Something like Opacity in the Scirendere would be nice. with best regards / mit freundlichen Gr?ssen Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users [Anhang "step2sci.sci" gel?scht von Pascal Buehler/CH/Sauter] _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From grivet at cnrs-orleans.fr Mon Aug 12 14:43:21 2013 From: grivet at cnrs-orleans.fr (grivet) Date: Mon, 12 Aug 2013 14:43:21 +0200 Subject: [Scilab-users] discrete cosine transform In-Reply-To: <52054FD5.6030102@free.fr> References: <5204DC6B.600@cnrs-orleans.fr> <1376056972377-4027190.post@n3.nabble.com> <52050307.40003@cnrs-orleans.fr> <52054FD5.6030102@free.fr> Message-ID: <5208D869.2090006@cnrs-orleans.fr> Le 09/08/2013 22:23, Samuel Gougeon a ?crit Hello, > You may have a look at http://bugzilla.scilab.org/show_bug.cgi?id=12303 > where a work-around is provided Thank you Smauel for providing this pointer. I have three additional remarks: 1. It seems that the problem has been partly solved since the original bug report. In my case (dft on the rows and dct on the columns of a 2D matrix), the bug only appears when the matrix is square. 2. The Scilab function provided as a workaround emulates the "dct2" option; unfortunately, I need the"dct1" case. However, "dct2" is almost identical to "dct1" if I shift the time points by half an interval. 3. There is a :misprint in the Scilab help for dct: the result X(k) is not a function of X(i) and X(n) but of a(1) and a(n), the input data. Thank you for your help JP Grivet From n.p.fenger at gmail.com Mon Aug 12 23:43:04 2013 From: n.p.fenger at gmail.com (Niels Peter Fenger) Date: Mon, 12 Aug 2013 23:43:04 +0200 Subject: [Scilab-users] Plot function in scilab Message-ID: <520956E8.8020800@gmail.com> Hi, I have installed scilab and most of it works all right. I have however a problem with the flot function. I can illustrate the problem by the attached file plot-1.sce. When line no 0006 is omited, the xdata and the ydata are made correct. When I include the plot command line no. 0006 and run the file, scilab disappears from my screen and I cannot see any error message. How can I produce a plot? Regards Niels Peter Fenger E-mail: n.p.fenger at gmail.com -------------- next part -------------- function f = myquadratic(x) f = x^2 endfunction xdata = linspace(1 , 10 , 50) ydata = myquadratic (xdata) plot (xdata , ydata) From krotersv at gmail.com Tue Aug 13 01:15:14 2013 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Tue, 13 Aug 2013 05:15:14 +0600 Subject: [Scilab-users] Plot function in scilab In-Reply-To: <520956E8.8020800@gmail.com> References: <520956E8.8020800@gmail.com> Message-ID: <52096C82.20105@gmail.com> 13.08.2013 03:43, Niels Peter Fenger ?????: > Hi, > > I have installed scilab and most of it works all right. I have however > a problem with the flot function. I can illustrate the problem by the > attached file plot-1.sce. When line no 0006 is omited, the xdata and > the ydata are made correct. When I include the plot command line no. > 0006 and run the file, scilab disappears from my screen and I cannot > see any error message. How can I produce a plot? > > Regards > > Niels Peter Fenger > > E-mail: n.p.fenger at gmail.com > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi. I have no problem with your script. I use Scilab-5.4.1 on Linux 64-bit. Stanislav -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocwing at verizon.net Tue Aug 13 01:27:25 2013 From: ocwing at verizon.net (OMAR WING) Date: Mon, 12 Aug 2013 16:27:25 -0700 (PDT) Subject: [Scilab-users] Plot function in scilab In-Reply-To: <520956E8.8020800@gmail.com> References: <520956E8.8020800@gmail.com> Message-ID: <1376350045.34334.YahooMailNeo@web84505.mail.ne1.yahoo.com> You have a space between the functon name and the left parenthesis. Remove it and you should be able to run your script.? Omar Wing ? ________________________________ From: Niels Peter Fenger To: users at lists.scilab.org Sent: Monday, August 12, 2013 5:43 PM Subject: [Scilab-users] Plot function in scilab Hi, I have installed scilab and most of it works all right. I have however a problem with the flot function. I can illustrate the problem by the attached file plot-1.sce. When line no 0006 is omited, the xdata and the ydata are made correct. When I include the plot command line no. 0006 and run the file, scilab disappears from my screen and I cannot see any error message. How can I produce a plot? Regards Niels Peter Fenger E-mail:? n.p.fenger at gmail.com _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Tue Aug 13 07:42:38 2013 From: arctica1963 at gmail.com (Lester Anderson) Date: Tue, 13 Aug 2013 06:42:38 +0100 Subject: [Scilab-users] Plot function in scilab In-Reply-To: <520956E8.8020800@gmail.com> References: <520956E8.8020800@gmail.com> Message-ID: Works fine on 5.4.1 (Windows 7) function f=myquadratic(x) f = x^2endfunctionxdata = linspace(1 , 10 , 50);ydata = myquadratic(xdata);plot (xdata , ydata);xlabel("X-Data");ylabel("Y-Data");title("myquadratic"); Lester On 12 August 2013 22:43, Niels Peter Fenger wrote: > Hi, > > I have installed scilab and most of it works all right. I have however a > problem with the flot function. I can illustrate the problem by the > attached file plot-1.sce. When line no 0006 is omited, the xdata and the > ydata are made correct. When I include the plot command line no. 0006 and > run the file, scilab disappears from my screen and I cannot see any error > message. How can I produce a plot? > > Regards > > Niels Peter Fenger > > E-mail: n.p.fenger at gmail.com > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From boljeleel at yahoo.com Tue Aug 13 12:44:30 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Tue, 13 Aug 2013 03:44:30 -0700 (PDT) Subject: [Scilab-users] Plot function in scilab In-Reply-To: <520956E8.8020800@gmail.com> References: <520956E8.8020800@gmail.com> Message-ID: <1376390670.26220.YahooMailNeo@web160304.mail.bf1.yahoo.com> Hi Peter, ? Your program works very well on Scilab 5.4.1 on Windows and as edited by Lester Anderson. ? Kind Regards. ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. ________________________________ From: Niels Peter Fenger To: users at lists.scilab.org Sent: Monday, August 12, 2013 10:43 PM Subject: [Scilab-users] Plot function in scilab Hi, I have installed scilab and most of it works all right. I have however a problem with the flot function. I can illustrate the problem by the attached file plot-1.sce. When line no 0006 is omited, the xdata and the ydata are made correct. When I include the plot command line no. 0006 and run the file, scilab disappears from my screen and I cannot see any error message. How can I produce a plot? Regards Niels Peter Fenger E-mail:? n.p.fenger at gmail.com _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From matiashs at hotmail.com Wed Aug 14 15:25:18 2013 From: matiashs at hotmail.com (matacosta) Date: Wed, 14 Aug 2013 06:25:18 -0700 (PDT) Subject: [Scilab-users] Changing ticks, location, and labels of a colorbar in a sgrayplot Message-ID: <1376486718851-4027216.post@n3.nabble.com> Hi All, I plot an sgrayplot of a 3d surface. I have a nice contour plot with a proper colorbar that I am adding before I plot with the sgrayplot. The problem is that I would like to change ticks, location, and labels within the colorbar. I am not so experienced, I guess it should be done with the tlist function but I am having troubles to use it. My attemp is: colorbar(cmin,cmax,,fmt="%.0f"); //actually I am not familiar neither with the fmt formatting fig = gcf(); a1 = fig.children(1); //is this ok? a1.font_size = 4; //this works fine a1.auto_ticks(3)="off"; //here I am not sure if I should take the colorbar as the z axis? a1.z_ticks=tlist(["ticks","locations","labels"]) //starting from here I always get errors since I am not familiar how to finish the tlist Thank you very much for your help. Cheers, Matias -- View this message in context: http://mailinglists.scilab.org/Changing-ticks-location-and-labels-of-a-colorbar-in-a-sgrayplot-tp4027216.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed Aug 14 21:58:35 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 14 Aug 2013 21:58:35 +0200 Subject: [Scilab-users] Changing ticks, location, and labels of a colorbar in a sgrayplot In-Reply-To: <1376486718851-4027216.post@n3.nabble.com> References: <1376486718851-4027216.post@n3.nabble.com> Message-ID: <520BE16B.9050302@free.fr> Le 14/08/2013 15:25, matacosta a ?crit : > .../... > colorbar(cmin,cmax,,fmt="%.0f"); //actually I am not familiar neither with > the fmt formatting > > fig = gcf(); > a1 = fig.children(1); //is this ok? after colorbar(..), you may rather use: cb = gce(); and then work with the cb handle. > a1.font_size = 4; //this works fine > a1.auto_ticks(3)="off"; //here I am not sure if I should take the > colorbar as the z axis? no, it is the y axis > a1.z_ticks=tlist(["ticks","locations","labels"]) //starting from here I > always get errors since I am not familiar how to finish the tlist cb.y_ticks = tlist(["ticks","locations","labels"], YL, TL) where YL is a column vector of positions (Z values), and TL is a column vector of texts: the respective labels. HTH Samuel From matiashs at hotmail.com Thu Aug 15 09:58:12 2013 From: matiashs at hotmail.com (matacosta) Date: Thu, 15 Aug 2013 00:58:12 -0700 (PDT) Subject: [Scilab-users] Changing ticks, location, and labels of a colorbar in a sgrayplot In-Reply-To: <520BE16B.9050302@free.fr> References: <1376486718851-4027216.post@n3.nabble.com> <520BE16B.9050302@free.fr> Message-ID: <1376553492373-4027229.post@n3.nabble.com> Hi Samuel, Thank you for your answer. Unfortunately, I am still having problems. The code now looks: YL=[0;1]; TL=["zero";"one"]; colorbar(cmin,cmax,,fmt="%.0f"); cb= gce(); cb = fig.children(1); cb.font_size = 4; cb.auto_ticks(2)="off"; cb.y_ticks = tlist(["ticks","locations","labels"], YL, TL); I get an error of recursive extraction (error 250). I do not get why because I am not extracting before any property, this happens at the line of the fig.children If I comment that line I have always get the error that the property does not exist for this handle. Thank again for your time. Cheers, Matias -- View this message in context: http://mailinglists.scilab.org/Changing-ticks-location-and-labels-of-a-colorbar-in-a-sgrayplot-tp4027216p4027229.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From dirk.dobkowitz at ostfalia.de Wed Aug 14 09:55:40 2013 From: dirk.dobkowitz at ostfalia.de (Dirk Dobkowitz) Date: Wed, 14 Aug 2013 09:55:40 +0200 Subject: [Scilab-users] Standalone Code Xcos Message-ID: <520B37FC.2070001@ostfalia.de> Hey, we are working on a platform for programming microcontrollers using standalone-code generated by Xcos. Are there gonna be some changes/optimizations of the code in the near future? With Kind Regards DD From sgougeon at free.fr Thu Aug 15 13:59:20 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 15 Aug 2013 13:59:20 +0200 Subject: [Scilab-users] Changing ticks, location, and labels of a colorbar in a sgrayplot In-Reply-To: <1376553492373-4027229.post@n3.nabble.com> References: <1376486718851-4027216.post@n3.nabble.com> <520BE16B.9050302@free.fr> <1376553492373-4027229.post@n3.nabble.com> Message-ID: <520CC298.5000702@free.fr> Le 15/08/2013 09:58, matacosta a ?crit : > cb= gce(); > cb = fig.children(1); The second line overwrites cb, so the first one would be useless: cb. = gce(); /instead of/ = fig.children... -------------- next part -------------- An HTML attachment was scrubbed... URL: From matiashs at hotmail.com Thu Aug 15 14:47:00 2013 From: matiashs at hotmail.com (matacosta) Date: Thu, 15 Aug 2013 05:47:00 -0700 (PDT) Subject: [Scilab-users] Changing ticks, location, and labels of a colorbar in a sgrayplot In-Reply-To: <520CC298.5000702@free.fr> References: <1376486718851-4027216.post@n3.nabble.com> <520BE16B.9050302@free.fr> <1376553492373-4027229.post@n3.nabble.com> <520CC298.5000702@free.fr> Message-ID: <1376570820383-4027232.post@n3.nabble.com> Hi, Thanks for the comment. I already tried doing that. The problem that follow is error 999 which says that the property does not exist for the handle cb = gce(). How should I modify the code then? YL=[0;1]; TL=["zero";"one"]; colorbar(cmin,cmax,,fmt="%.0f"); cb = gce(); cb.font_size = 4; cb.auto_ticks(2)="off"; cb.y_ticks = tlist(["ticks","locations","labels"], YL, TL); Thanks. Cheers, Matias -- View this message in context: http://mailinglists.scilab.org/Changing-ticks-location-and-labels-of-a-colorbar-in-a-sgrayplot-tp4027216p4027232.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Aug 15 15:56:19 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 15 Aug 2013 15:56:19 +0200 Subject: [Scilab-users] Changing ticks, location, and labels of a colorbar in a sgrayplot In-Reply-To: <1376570820383-4027232.post@n3.nabble.com> References: <1376486718851-4027216.post@n3.nabble.com> <520BE16B.9050302@free.fr> <1376553492373-4027229.post@n3.nabble.com> <520CC298.5000702@free.fr> <1376570820383-4027232.post@n3.nabble.com> Message-ID: <520CDE03.5060401@free.fr> Le 15/08/2013 14:47, matacosta a ?crit : > Hi, > > Thanks for the comment. I already tried doing that. The problem that follow > is error 999 which says that the property does not exist for the handle cb = > gce(). How should I modify the code then? You should remove the ";": cb = gce() -- to display the content of the handle -- i.e. the list of its attributes --, and target the right attribute with the right syntax. From jrafaelbguerra at hotmail.com Thu Aug 15 21:26:42 2013 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 15 Aug 2013 12:26:42 -0700 (PDT) Subject: [Scilab-users] Scilab dynamic lists and correct use of null()? Message-ID: <1376594802458-4027237.post@n3.nabble.com> Hello,Could someone explain why the following error occurs when trying to remove using null() an element from a Scilab dynamic list constructed as follows:test(1).parm1 = [ 1 2 3 4];test(1).parm2 = ones(3,3);test(2) = test(1);test(2).parm3 = "hello";test(1)=null(); !--error 10000 Incorrect assignment.\n at line 13 of function %0_i_st called by : test(1)=null();Thanks and regards,Rafael Guerra -- View this message in context: http://mailinglists.scilab.org/Scilab-dynamic-lists-and-correct-use-of-null-tp4027237.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Aug 16 10:29:27 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 16 Aug 2013 10:29:27 +0200 Subject: [Scilab-users] Scilab dynamic lists and correct use of null()? In-Reply-To: <1376594802458-4027237.post@n3.nabble.com> References: <1376594802458-4027237.post@n3.nabble.com> Message-ID: <520DE2E7.1010200@free.fr> Hello, Le 15/08/2013 21:26, Rafael Guerra a ?crit : > Hello, Could someone explain why the following error occurs when > trying to remove using null() an element from a Scilab dynamic list > constructed as follows: test(1).parm1 = [ 1 2 3 4]; test(1).parm2 = > ones(3,3); test(2) = test(1); test(2).parm3 = "hello"; test(1)=null(); The syntax to remove an element of an array of structures is the same as for any other array: with []. null() is used to remove some fields. Then, test(1) = [] // works If test was a m-by-n array of structures, test(:,2)=[] // would remove all its second column ; etc Regards Samuel From dkpcad at gmail.com Fri Aug 16 06:52:07 2013 From: dkpcad at gmail.com (dkpcad) Date: Thu, 15 Aug 2013 21:52:07 -0700 (PDT) Subject: [Scilab-users] Error with BER curve with SISO system Message-ID: <1376628727501-4027238.post@n3.nabble.com> Hi, I am trying to simulate the BER curve and trying to match the curve of simulation and analysis both. But, in my code the error = 0 so, BER simulation (bers) results zero. Also, not able to use the plot function properly. Please guide me for the same. ber_siso.sce -- View this message in context: http://mailinglists.scilab.org/Error-with-BER-curve-with-SISO-system-tp4027238.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Sun Aug 18 22:37:45 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Sun, 18 Aug 2013 22:37:45 +0200 Subject: [Scilab-users] Error with BER curve with SISO system In-Reply-To: <1376628727501-4027238.post@n3.nabble.com> References: <1376628727501-4027238.post@n3.nabble.com> Message-ID: <52113099.6030004@inria.fr> I detected at least two mistakes in your code: - you do not use xa in the noise computation so the noise level is not used - the instruction error=bitxor(uint8(data(k1)),uint8(data_detect(k1)));ry slow uses k1 outside of the loop so k1=N Moreover bitxor is very slow. it should be better to use bers(index)=size(find(data<>data_detect),"*")/N; For an efficient computation of data_detect you can use find: data_detect=zeros(1,N); data_detect(real(y)>=0)=1; Finally you can give a look at the Matlab/Octave function given at http://www.dsplog.com/db-install/wp-content/uploads/2008/01/scriptbpsk_ber.m Serge Steer INRIA Le 16/08/2013 06:52, dkpcad a ?crit : > Hi, I am trying to simulate the BER curve and trying to match the curve of > simulation and analysis both. But, in my code the error = 0 so, BER > simulation (bers) results zero. Also, not able to use the plot function > properly. Please guide me for the same. ber_siso.sce > > > > > -- > View this message in context: http://mailinglists.scilab.org/Error-with-BER-curve-with-SISO-system-tp4027238.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 tim.stauch at iwr.uni-heidelberg.de Fri Aug 16 17:28:33 2013 From: tim.stauch at iwr.uni-heidelberg.de (bruschino) Date: Fri, 16 Aug 2013 08:28:33 -0700 (PDT) Subject: [Scilab-users] Executing scilab-scripts automatically Message-ID: <1376666912937-4027240.post@n3.nabble.com> Hi everyone, I have a number of folders, called 1, 2, 3, 4 and so on. In every folder, there is a scilab script. This scilab script produces some text files as output, which I need. Since I have a lot of folders (>1000), I don't want to run the scripts in every folder manually. This is why is was wondering if I can write a simple command in scilab (something like exec(...)), with which the script in every folder is executed automatically. I am sure it should work with for loops, but how do I pass the loop-variable to the exec-command? I would appreciate your help very much! Thanks in advance. Best wishes, bruschino -- View this message in context: http://mailinglists.scilab.org/Executing-scilab-scripts-automatically-tp4027240.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tim.stauch at iwr.uni-heidelberg.de Fri Aug 16 17:37:52 2013 From: tim.stauch at iwr.uni-heidelberg.de (bruschino) Date: Fri, 16 Aug 2013 08:37:52 -0700 (PDT) Subject: [Scilab-users] Executing scilab-scripts automatically Message-ID: <1376667472909-4027241.post@n3.nabble.com> Hi everyone, I have a number of folders, called 1, 2, 3, 4 and so on. In every folder, there is a scilab script. This scilab script produces some text files as output, which I need. Since I have a lot of folders (>1000), I don't want to run the scripts in every folder manually. This is why is was wondering if I can write a simple command in scilab (something like exec(...)), with which the script in every folder is executed automatically. I am sure it should work with for loops, but how do I pass the loop-variable to the exec-command? I would appreciate your help very much! Thanks in advance. Best wishes, bruschino -- View this message in context: http://mailinglists.scilab.org/Executing-scilab-scripts-automatically-tp4027241.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rajhanschinmay at hotmail.com Sat Aug 17 09:25:28 2013 From: rajhanschinmay at hotmail.com (rajhanschinmay) Date: Sat, 17 Aug 2013 00:25:28 -0700 (PDT) Subject: [Scilab-users] How to setup Scilab on computer without internet? In-Reply-To: <003f01ca9816$246e95d0$6d4bc170$@cornet@scilab.org> References: <4B541558.5010204@limsi.fr> <003f01ca9816$246e95d0$6d4bc170$@cornet@scilab.org> Message-ID: <1376724328159-4027242.post@n3.nabble.com> Intel math kernel is not free. It comes as evaluation version. Also on the link given above, only linux version is present. Where is Windows version for the same available/ Also can anyone tell, where to download other libraries like Atlas or Reference blas libraries/ Thank you in advance. -- View this message in context: http://mailinglists.scilab.org/How-to-setup-Scilab-on-computer-without-internet-tp2616622p4027242.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rakhiwarriar at gmail.com Mon Aug 19 09:47:21 2013 From: rakhiwarriar at gmail.com (Rakhi Warriar) Date: Mon, 19 Aug 2013 13:17:21 +0530 Subject: [Scilab-users] Sequential Quadratic Programming in Scilab Message-ID: Hello How can one do SQP using Scilab? I found a pdf that explains about an fsqp toolbox in Scilab, but the link given does not work anymore. Could someone tell me of any toolboxes available for SQP in Scilab? Thanks! Rakhi -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Mon Aug 19 09:53:44 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 19 Aug 2013 09:53:44 +0200 Subject: [Scilab-users] Executing scilab-scripts automatically In-Reply-To: <1376666912937-4027240.post@n3.nabble.com> References: <1376666912937-4027240.post@n3.nabble.com> Message-ID: <5211CF08.20303@inria.fr> May be something like for k=1:n exec(msprintf("%d/script.sce",k)) end answers your need Serge Steer INRIA Le 16/08/2013 17:28, bruschino a ?crit : > Hi everyone, > > I have a number of folders, called 1, 2, 3, 4 and so on. In every folder, > there is a scilab script. This scilab script produces some text files as > output, which I need. Since I have a lot of folders (>1000), I don't want to > run the scripts in every folder manually. This is why is was wondering if I > can write a simple command in scilab (something like exec(...)), with which > the script in every folder is executed automatically. > > I am sure it should work with for loops, but how do I pass the loop-variable > to the exec-command? > > I would appreciate your help very much! Thanks in advance. > > Best wishes, > bruschino > > > > -- > View this message in context: http://mailinglists.scilab.org/Executing-scilab-scripts-automatically-tp4027240.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 rakhiwarriar at gmail.com Mon Aug 19 10:09:53 2013 From: rakhiwarriar at gmail.com (Rakhi Warriar) Date: Mon, 19 Aug 2013 13:39:53 +0530 Subject: [Scilab-users] Scinlopt toolbox - Non linear optimisation Message-ID: Hello I tried to install the Non linear Optimisation toolbox scilnlopt-1.1 from http://atoms.scilab.org/toolboxes/scinlopt I executed builder.sce. Everything went fine. But when I execute loader.sce, I get the following error: addinter: The shared archive was not loaded: /home/rakhi/Mystuff/scilab-5.4.0/lib/thirdparty/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/rakhi/Desktop/Project/optimisation/scinlopt-1.1/sci_gateway/c//libnlopt_c.so) What could be the issue? How to solve this problem? Thanks! Rakhi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.stauch at iwr.uni-heidelberg.de Mon Aug 19 10:36:32 2013 From: tim.stauch at iwr.uni-heidelberg.de (bruschino) Date: Mon, 19 Aug 2013 01:36:32 -0700 (PDT) Subject: [Scilab-users] Executing scilab-scripts automatically In-Reply-To: <5211CF08.20303@inria.fr> References: <1376666912937-4027240.post@n3.nabble.com> <5211CF08.20303@inria.fr> Message-ID: <1376901392046-4027250.post@n3.nabble.com> Thanks, Serge, this indeed did the trick :) -- View this message in context: http://mailinglists.scilab.org/Executing-scilab-scripts-automatically-tp4027240p4027250.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From michael.baudin at edf.fr Mon Aug 19 13:06:53 2013 From: michael.baudin at edf.fr (Michael BAUDIN) Date: Mon, 19 Aug 2013 13:06:53 +0200 Subject: [Scilab-users] Sequential Quadratic Programming in Scilab In-Reply-To: References: Message-ID: Hi, What kind of optimization problem are you willing to solve ? SQP is typical for nonlinear programming (with constraints), but this is just a guess an may not correspond to your specific issue. If you have a constrained optimization problem, I suggest to try : http://atoms.scilab.org/toolboxes/sci_ipopt If you are searching for a smoothier interface, please try : http://atoms.scilab.org/toolboxes/fmincon but this is still in pre-alpha state. The toolbox : http://atoms.scilab.org/toolboxes/scinlopt might be helpful. But, as far as I can see, there are packaging issues (the previous release was not available on Windows, and the latest release is not packaged on atoms). The FSQP toolbox was never released publicly for license reasons. It was available upon request to the authors, for research only. The code is simple and efficient. My guess is that it is not maintained anymore, except, perhaps, by Scilab Enterprises. Hope this helps. Best regards, Micha?l De : rakhiwarriar at gmail.com A : users at lists.scilab.org Date : 19/08/2013 09:49 Objet : [Scilab-users] Sequential Quadratic Programming in Scilab Envoy? par : users-bounces at lists.scilab.org Hello How can one do SQP using Scilab? I found a pdf that explains about an fsqp toolbox in Scilab, but the link given does not work anymore. Could someone tell me of any toolboxes available for SQP in Scilab? Thanks! Rakhi_______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont ?tablis ? l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme ? sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement l'exp?diteur par retour du message. Il est impossible de garantir que les communications par messagerie ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely secure, error or virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.p.fenger at gmail.com Mon Aug 19 22:29:09 2013 From: n.p.fenger at gmail.com (Niels Peter Fenger) Date: Mon, 19 Aug 2013 22:29:09 +0200 Subject: [Scilab-users] Plot function in scilab In-Reply-To: References: <520956E8.8020800@gmail.com> Message-ID: <52128015.4090105@gmail.com> To Lester Thank you for your mail. I have now installed Scilab 5.4.1 instead of version 5.4.0. The problem is however the same: Without the plot command in line 0006 the xdata and the ydata are shown correct. When i include the plot command and execute everything disappears from the screen. My computer has Wista, could that be the reason? Regards Niels Peter Fenger Den 13-08-2013 07:42, Lester Anderson skrev: > Works fine on 5.4.1 (Windows 7) > > function f=myquadratic(x) > f = x^2 > endfunction > xdata = linspace(1 , 10 , 50); > ydata = myquadratic(xdata); > plot (xdata , ydata); > xlabel("X-Data"); > ylabel("Y-Data"); > title("myquadratic"); > > > Lester > > > On 12 August 2013 22:43, Niels Peter Fenger > wrote: > > Hi, > > I have installed scilab and most of it works all right. I have > however a problem with the flot function. I can illustrate the > problem by the attached file plot-1.sce. When line no 0006 is > omited, the xdata and the ydata are made correct. When I include > the plot command line no. 0006 and run the file, scilab disappears > from my screen and I cannot see any error message. How can I > produce a plot? > > Regards > > Niels Peter Fenger > > E-mail: n.p.fenger at gmail.com > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Mon Aug 19 23:55:05 2013 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 19 Aug 2013 22:55:05 +0100 Subject: [Scilab-users] Plot function in scilab In-Reply-To: <52128015.4090105@gmail.com> References: <520956E8.8020800@gmail.com> <52128015.4090105@gmail.com> Message-ID: Hello Niels, I am not sure if the Windows version is the issue, but are you on 32-bit or 64-bit ? Not too familiar with Windows Vista other than it always seemed to hog loads of memory. The code you had works fine on Windows 7 at least - it is a very simple program so should run. I have attached the code as a .sci file so you can load it up in SciNotes and execute it directly, or copy straight to the console window. We need to see where you are having problems; the plot command should not cause any problems. If you can try Scilab on a different machine, with say Windows 7 then we can have a better idea as to what is going on. function f=myquadratic(x) f = x^2endfunctionxdata = linspace(1 , 10 , 50);ydata = myquadratic(xdata);plot (xdata , ydata);xlabel("X-Data");ylabel("Y-Data");title("myquadratic"); Lester On 19 August 2013 21:29, Niels Peter Fenger wrote: > To Lester > > Thank you for your mail. I have now installed Scilab 5.4.1 instead of > version 5.4.0. The problem is however the same: Without the plot command > in line 0006 the xdata and the ydata are shown correct. When i include the > plot command and execute everything disappears from the screen. My computer > has Wista, could that be the reason? > > Regards > > Niels Peter Fenger > > > > Den 13-08-2013 07:42, Lester Anderson skrev: > > Works fine on 5.4.1 (Windows 7) > > function f=myquadratic(x) > f = x^2endfunctionxdata = linspace(1 , 10 , 50);ydata = myquadratic(xdata);plot (xdata , ydata);xlabel("X-Data");ylabel("Y-Data");title("myquadratic"); > > > > Lester > > > > On 12 August 2013 22:43, Niels Peter Fenger wrote: > >> Hi, >> >> I have installed scilab and most of it works all right. I have however a >> problem with the flot function. I can illustrate the problem by the >> attached file plot-1.sce. When line no 0006 is omited, the xdata and the >> ydata are made correct. When I include the plot command line no. 0006 and >> run the file, scilab disappears from my screen and I cannot see any error >> message. How can I produce a plot? >> >> Regards >> >> Niels Peter Fenger >> >> E-mail: n.p.fenger at gmail.com >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: myquadratic.sci Type: application/octet-stream Size: 197 bytes Desc: not available URL: From stephane.mottelet at gmail.com Tue Aug 20 14:10:55 2013 From: stephane.mottelet at gmail.com (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Tue, 20 Aug 2013 14:10:55 +0200 Subject: [Scilab-users] Sequential Quadratic Programming in Scilab In-Reply-To: References: Message-ID: Hello, I have updated the fsqp toolbox for Scilab 5.4 an can provide the package (without the cfsqp.c file which has to be obtained from the authors). S. 2013/8/19 Michael BAUDIN > Hi, > > What kind of optimization problem are you willing to solve ? SQP is > typical for nonlinear programming (with constraints), but this is just a > guess an may not correspond to your specific issue. > > If you have a constrained optimization problem, I suggest to try : > > *http://atoms.scilab.org/toolboxes/sci_ipopt* > > If you are searching for a smoothier interface, please try : > > *http://atoms.scilab.org/toolboxes/fmincon* > > but this is still in pre-alpha state. > > The toolbox : > > *http://atoms.scilab.org/toolboxes/scinlopt* > > might be helpful. But, as far as I can see, there are packaging issues > (the previous release was not available on Windows, and the latest release > is not packaged on atoms). > > The FSQP toolbox was never released publicly for license reasons. It was > available upon request to the authors, for research only. The code is > simple and efficient. My guess is that it is not maintained anymore, > except, perhaps, by Scilab Enterprises. > > Hope this helps. > > Best regards, > > Micha?l > > > > De : rakhiwarriar at gmail.com > A : users at lists.scilab.org > Date : 19/08/2013 09:49 > Objet : [Scilab-users] Sequential Quadratic Programming in Scilab > Envoy? par : users-bounces at lists.scilab.org > ------------------------------ > > > > Hello > > How can one do SQP using Scilab? I found a pdf that explains about an fsqp > toolbox in Scilab, but the link given does not work anymore. Could someone > tell me of any toolboxes available for SQP in Scilab? > > Thanks! > Rakhi_______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont > ?tablis ? l'intention exclusive des destinataires et les informations qui y > figurent sont strictement confidentielles. Toute utilisation de ce Message > non conforme ? sa destination, toute diffusion ou toute publication totale > ou partielle, est interdite sauf autorisation expresse. > > Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de > le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou > partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de > votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace > sur quelque support que ce soit. Nous vous remercions ?galement d'en > avertir imm?diatement l'exp?diteur par retour du message. > > Il est impossible de garantir que les communications par messagerie > ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute > erreur ou virus. > ____________________________________________________ > > This message and any attachments (the 'Message') are intended solely for > the addressees. The information contained in this Message is confidential. > Any use of information contained in this Message not in accord with its > purpose, any dissemination or disclosure, either whole or partial, is > prohibited except formal approval. > > If you are not the addressee, you may not copy, forward, disclose or use > any part of it. If you have received this message in error, please delete > it and all copies from your system and notify the sender immediately by > return message. > > E-mail communication cannot be guaranteed to be timely secure, error or > virus-free. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Tue Aug 20 22:17:24 2013 From: arctica1963 at gmail.com (Lester Anderson) Date: Tue, 20 Aug 2013 21:17:24 +0100 Subject: [Scilab-users] Plot function in scilab In-Reply-To: References: <520956E8.8020800@gmail.com> <52128015.4090105@gmail.com> Message-ID: Hi Niels, One test to try is a very basic plot sequence, try doing the following and we can see what happens: x=[0:0.1:2*%pi]; plot(sin(x)) This should just plot a simple sine wave graphic, nothing fancy but will test input and functional output. It will not crash Scilab. Lester On 19 August 2013 22:55, Lester Anderson wrote: > Hello Niels, > > I am not sure if the Windows version is the issue, but are you on 32-bit > or 64-bit ? Not too familiar with Windows Vista other than it always seemed > to hog loads of memory. > > The code you had works fine on Windows 7 at least - it is a very simple > program so should run. > > I have attached the code as a .sci file so you can load it up in SciNotes > and execute it directly, or copy straight to the console window. We need to > see where you are having problems; the plot command should not cause any > problems. > > If you can try Scilab on a different machine, with say Windows 7 then we > can have a better idea as to what is going on. > > function f=myquadratic(x) > f = x^2endfunctionxdata = linspace(1 , 10 , 50);ydata = myquadratic(xdata);plot (xdata , ydata);xlabel("X-Data");ylabel("Y-Data");title("myquadratic"); > > > Lester > > > On 19 August 2013 21:29, Niels Peter Fenger wrote: > >> To Lester >> >> Thank you for your mail. I have now installed Scilab 5.4.1 instead of >> version 5.4.0. The problem is however the same: Without the plot command >> in line 0006 the xdata and the ydata are shown correct. When i include the >> plot command and execute everything disappears from the screen. My computer >> has Wista, could that be the reason? >> >> Regards >> >> Niels Peter Fenger >> >> >> >> Den 13-08-2013 07:42, Lester Anderson skrev: >> >> Works fine on 5.4.1 (Windows 7) >> >> function f=myquadratic(x) >> f = x^2endfunctionxdata = linspace(1 , 10 , 50);ydata = myquadratic(xdata);plot (xdata , ydata);xlabel("X-Data");ylabel("Y-Data");title("myquadratic"); >> >> >> >> Lester >> >> >> >> On 12 August 2013 22:43, Niels Peter Fenger wrote: >> >>> Hi, >>> >>> I have installed scilab and most of it works all right. I have however a >>> problem with the flot function. I can illustrate the problem by the >>> attached file plot-1.sce. When line no 0006 is omited, the xdata and the >>> ydata are made correct. When I include the plot command line no. 0006 and >>> run the file, scilab disappears from my screen and I cannot see any error >>> message. How can I produce a plot? >>> >>> Regards >>> >>> Niels Peter Fenger >>> >>> E-mail: n.p.fenger at gmail.com >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >>> >> >> >> _______________________________________________ >> users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.p.fenger at gmail.com Tue Aug 20 23:49:47 2013 From: n.p.fenger at gmail.com (Niels Peter Fenger) Date: Tue, 20 Aug 2013 23:49:47 +0200 Subject: [Scilab-users] Plot function in scilab In-Reply-To: References: <520956E8.8020800@gmail.com> <52128015.4090105@gmail.com> Message-ID: <5213E47B.2000301@gmail.com> To Lester Thank you for mails and thank you for your patience. I am on 32- bit. I tryed to reinstal Scilab to the 64-bit version, but my computer will not accept the 64-bit version. I also tryed to copy your scripts to the console and run it. The result was the same: Scilab closed down immeadly and disappered from the screen. I also tryed the sine function suggested in your last mail, same result. Something wrong with my computer? A soon as possibleI will try to find a person having a machine with Windows 7 and being willing to help me. Regards Niels Peter Fenger Den 19-08-2013 23:55, Lester Anderson skrev: > Hello Niels, > > I am not sure if the Windows version is the issue, but are you on > 32-bit or 64-bit ? Not too familiar with Windows Vista other than it > always seemed to hog loads of memory. > > The code you had works fine on Windows 7 at least - it is a very > simple program so should run. > > I have attached the code as a .sci file so you can load it up in > SciNotes and execute it directly, or copy straight to the console > window. We need to see where you are having problems; the plot command > should not cause any problems. > > If you can try Scilab on a different machine, with say Windows 7 then > we can have a better idea as to what is going on. > function f=myquadratic(x) > f = x^2 > endfunction > xdata = linspace(1 , 10 , 50); > ydata = myquadratic(xdata); > plot (xdata , ydata); > xlabel("X-Data"); > ylabel("Y-Data"); > title("myquadratic"); > > Lester > > > On 19 August 2013 21:29, Niels Peter Fenger > wrote: > > To Lester > > Thank you for your mail. I have now installed Scilab 5.4.1 instead > of version 5.4.0. The problem is however the same: Without the > plot command in line 0006 the xdata and the ydata are shown > correct. When i include the plot command and execute everything > disappears from the screen. My computer has Wista, could that be > the reason? > > Regards > > Niels Peter Fenger > > > > Den 13-08-2013 07:42, Lester Anderson skrev: >> Works fine on 5.4.1 (Windows 7) >> >> function f=myquadratic(x) >> f = x^2 >> endfunction >> xdata = linspace(1 , 10 , 50); >> ydata = myquadratic(xdata); >> plot (xdata , ydata); >> xlabel("X-Data"); >> ylabel("Y-Data"); >> title("myquadratic"); >> >> >> Lester >> >> >> On 12 August 2013 22:43, Niels Peter Fenger > > wrote: >> >> Hi, >> >> I have installed scilab and most of it works all right. I >> have however a problem with the flot function. I can >> illustrate the problem by the attached file plot-1.sce. When >> line no 0006 is omited, the xdata and the ydata are made >> correct. When I include the plot command line no. 0006 and >> run the file, scilab disappears from my screen and I cannot >> see any error message. How can I produce a plot? >> >> Regards >> >> Niels Peter Fenger >> >> E-mail: n.p.fenger at gmail.com >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > 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 krotersv at gmail.com Wed Aug 21 01:21:49 2013 From: krotersv at gmail.com (Stanislav) Date: Tue, 20 Aug 2013 16:21:49 -0700 (PDT) Subject: [Scilab-users] Plot function in scilab In-Reply-To: <5213E47B.2000301@gmail.com> References: <520956E8.8020800@gmail.com> <52128015.4090105@gmail.com> <5213E47B.2000301@gmail.com> Message-ID: <1377040909780-4027259.post@n3.nabble.com> Hi. Do you have any installed ATOMS-modules? Some modules can be the reason of strange behavior of Scilab and even crash it. Try remove all ATOMS-modules. Then try plot() or mesh(). These commands will plot demo-graphics. Stanislav -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Plot-function-in-scilab-tp4027208p4027259.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From belanger at seidel.ca Wed Aug 21 02:25:31 2013 From: belanger at seidel.ca (tamtam) Date: Tue, 20 Aug 2013 17:25:31 -0700 (PDT) Subject: [Scilab-users] Develop an hydraulic heat exchanger Message-ID: <1377044731277-4027260.post@n3.nabble.com> Hi, I do not know if it is the right place for resource request. I am aware that there is a link for hiring professional resources on another scilab site, but I want to try it here first. Please tell me so, if my request is not appropriate. I wish to hire a resource to develop a hydraulic heat exchanger and display the temperature in color gradient. Thanks, -- View this message in context: http://mailinglists.scilab.org/Develop-an-hydraulic-heat-exchanger-tp4027260.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mariajovera at icloud.com Wed Aug 21 04:57:10 2013 From: mariajovera at icloud.com (samaelkreutz) Date: Tue, 20 Aug 2013 19:57:10 -0700 (PDT) Subject: [Scilab-users] Help re-designing a code Message-ID: <1377053830656-4027261.post@n3.nabble.com> Hello people, If you can help me would be awesome. It's very simple (unfourtunaly not for me). I have a data set, and... then I have to select only specifics subsets. I design an algorithm... that is repetitive and simple. I must re-sign (if possible with for cycles) and then save the subsets in a txt file. This is my code: ___________________________________________________________________ clear all clc A=fscanfMat('search.txt') // Load the matrix lat=A(:,8); //Latitude lon=A(:,9); //Longitude depth=A(:,10); //Data must be divided in 3 subsections: // SUBCTIONS 1, 2 AND 3: le= -34 ; //required start latitude ls= -35 ; // required stop latitude a_in=find(A(:,8)>=(ls) & A(:,8)<=(le)); // Evaluating and creating new matrix for specific latitude: mat1=A(a_in,:); clear ls le a_in // Now i have to divide in 3 portions: //__________________________________________________________ //section: 1 le= -73.0 ; // start longitude ls= -74.0 ; // stop longitude a_in=find(mat1(:,9)>=(ls) & mat1(:,9)<=(le)); C1=A(a_in,:); clear le ls a_in //%__________________________________________________________ //%Section 2 le= -72.0 ; // start longitude ls= -73.0 ; // stop longitude a_in=find(mat1(:,9)>=(ls) & mat1(:,9)<=(le)); C2=A(a_in,:); clear le ls a_in //%__________________________________________________________ //%section 3 le= -71.0 ; // start longitude ls= -72.0 ; // stop longitude a_in=find(mat1(:,9)>=(ls) & mat1(:,9)<=(le)); C3=A(a_in,:); clear le ls a_in *How can I export the data C1,C2,C3 in a txt file? (separated to each other, of course)* search.txt Thank u very much!! -- View this message in context: http://mailinglists.scilab.org/Help-re-designing-a-code-tp4027261.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From n.p.fenger at gmail.com Wed Aug 21 10:04:59 2013 From: n.p.fenger at gmail.com (Niels Peter Fenger) Date: Wed, 21 Aug 2013 10:04:59 +0200 Subject: [Scilab-users] Plot function in scilab In-Reply-To: <1377040909780-4027259.post@n3.nabble.com> References: <520956E8.8020800@gmail.com> <52128015.4090105@gmail.com> <5213E47B.2000301@gmail.com> <1377040909780-4027259.post@n3.nabble.com> Message-ID: <521474AB.7020907@gmail.com> To Stanislaw Thank you for your mail. I have tryed to remove Atoms. I have studied Help and I use the command atomsRemove(["toolbox_1"]) in the console. Then I check by means of the command atomsList(). It shows that toolbox_1 is still existing. The same with toolboxes 2, 3 and 4. How can I remove Atoms? Best regards Niels Peter Fenger Den 21-08-2013 01:21, Stanislav skrev: > Hi. > Do you have any installed ATOMS-modules? Some modules can be the reason of > strange behavior of Scilab and even crash it. > Try remove all ATOMS-modules. Then try plot() or mesh(). These commands will > plot demo-graphics. > > Stanislav > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Plot-function-in-scilab-tp4027208p4027259.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 krotersv at gmail.com Wed Aug 21 14:32:28 2013 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Wed, 21 Aug 2013 18:32:28 +0600 Subject: [Scilab-users] Plot function in scilab In-Reply-To: <521474AB.7020907@gmail.com> References: <520956E8.8020800@gmail.com> <52128015.4090105@gmail.com> <5213E47B.2000301@gmail.com> <1377040909780-4027259.post@n3.nabble.com> <521474AB.7020907@gmail.com> Message-ID: <5214B35C.1080103@gmail.com> Hi. I suppose atomsGetInstalled() is better to use in this situation than atomsList() (because you want to remove only what you have installed). You may remove your modules by: atomsRemove("module_name",'allusers',%t). Or you may manage your modules with toolbar of Scilab (see 'Applications' > 'Module Manager - ATOMS', or the icon in toolbar). I prefer toolbar because it gives a convenient GUI. Stanislav 21.08.2013 14:04, Niels Peter Fenger ?????: > To Stanislaw > > Thank you for your mail. I have tryed to remove Atoms. I have studied > Help and I use the command atomsRemove(["toolbox_1"]) in the console. > Then I check by means of the command atomsList(). It shows that > toolbox_1 is still existing. The same with toolboxes 2, 3 and 4. How > can I remove Atoms? > > Best regards > > Niels Peter Fenger > > > From W.Schulz at ove.at Wed Aug 21 15:00:03 2013 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Wed, 21 Aug 2013 13:00:03 +0000 Subject: [Scilab-users] Reading a matrix - variable number of lines, columns Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56E7E3F4@OVEKBG.ove.at> Hello, I have a file with different matrices inside. This matrices have a line with a certain keyword before the data. I can read the data with the following code if I have nlat rows and 5 columns. fid=mopen(datafile,'r'); // open the file for reading //Skip data till the data part: line=mgetl(fid,1); while(strcmp(line, " Avg Num Sensors: ")~=0) line=mgetl(fid,1); end //Read the data ANSR=mfscanf(nlat,fid,'%f %f %f %f %f '); mclose(fid); My problem is the following: I searched but I didn't find a way to make the number of columns a variable. I tried to read the data line by line and wanted to use msscanf to scan the string but that didn't work. In the following example I tried to analyze 5 values of the string line but it didn't work. -->line line = 0.0 2.8 5.7 4.2 3.5 a= msscanf(5,line,'%f') Thanks for your help Wolfgang Example data file: Stroke Count: 0 77 246 24937 8 0 5862 7895 318 300 2387 15871 1151 3166 2057 5099 1721 1 27 80 Median Semimajor: 0.0 >= 0.9 0.3 0.5 >= 0.9 0.0 0.1 0.2 >= 0.9 >= 0.9 0.4 0.2 0.3 >= 0.9 >= 0.9 0.2 >= 0.9 0.1 >= 0.9 >= 0.9 Avg Num Sensors: 0.0 2.8 5.7 4.2 3.5 0.0 7.9 6.6 5.0 5.7 4.5 6.7 6.5 6.3 7.3 7.4 5.1 2.0 5.0 5.8 From krotersv at gmail.com Wed Aug 21 17:40:11 2013 From: krotersv at gmail.com (Stanislav) Date: Wed, 21 Aug 2013 08:40:11 -0700 (PDT) Subject: [Scilab-users] Reading a matrix - variable number of lines, columns In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56E7E3F4@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56E7E3F4@OVEKBG.ove.at> Message-ID: <1377099611681-4027265.post@n3.nabble.com> Hi. I do not understand what do you want to get: one matrix of three? Here is script to get one matrix. read_matrix.sce 'test.txt' is your text file. Stanislav. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Reading-a-matrix-variable-number-of-lines-columns-tp4027264p4027265.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From W.Schulz at ove.at Thu Aug 22 08:02:21 2013 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Thu, 22 Aug 2013 06:02:21 +0000 Subject: [Scilab-users] Reading a matrix - variable number of lines, columns In-Reply-To: <1377099611681-4027265.post@n3.nabble.com> References: <07A8AF089844A549B0F0CCC727AF31AA56E7E3F4@OVEKBG.ove.at> <1377099611681-4027265.post@n3.nabble.com> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56E7E928@OVEKBG.ove.at> Hello, thanks for the hint. I solved it with the following code: Stroke_count=zeros(nlat,nlon); for i=1:nlat line=mgetl(fid,1); Stroke_count(i,:)=strtod(tokens(line))'; end Wolfgang > -----Urspr?ngliche Nachricht----- > Von: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] Im > Auftrag von Stanislav > Gesendet: Mittwoch, 21. August 2013 17:40 > An: users at lists.scilab.org > Betreff: Re: [Scilab-users] Reading a matrix - variable number of lines, columns > > Hi. > > I do not understand what do you want to get: one matrix of three? > Here is script to get one matrix. > > read_matrix.sce > > > 'test.txt' is your text file. > > Stanislav. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users- > Reading-a-matrix-variable-number-of-lines-columns-tp4027264p4027265.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 c17 at gmx.net Fri Aug 23 10:44:38 2013 From: c17 at gmx.net (chrisd87) Date: Fri, 23 Aug 2013 01:44:38 -0700 (PDT) Subject: [Scilab-users] ilib_for_link problems using c++ Message-ID: <1377247478280-4027270.post@n3.nabble.com> Hi! I have some c++ files that i want to link in scilab for better testing. I first tried using the example on the ilib_for_link help page ( http://help.scilab.org/docs/5.4.1/en_US/ilib_for_link.html ). It worked with c. When i changed the filename to .cpp, following error occured: ----------------------------------------------------------------------- -->exec('D:\test_sci2.sce', -1) erzeuge eine Laderdatei erzeuge ein Makefile F?hre Makefile aus Kompilation von fun1.obj erzeuge eine gemeisame Bibliothek (habe Sie Geduld) erzeuge eine Cleanerdatei -->// This file is released under the 3-clause BSD license. See COPYING-BSD. -->// Generated by builder.sce : Please, do not edit this file -->// ---------------------------------------------------------------------------- -->// -->if ~win64() then --> warning(_("This module requires a Windows x64 platform.")); --> return -->end -->// -->ext1c_path = get_absolute_file_path('loader.sce'); -->// -->// ulink previous function with same name -->[bOK, ilib] = c_link('ext1c'); -->if bOK then --> ulink(ilib); -->end -->// -->link(ext1c_path + 'libext1c' + getdynlibext(), ['ext1c'],'c'); gemeinsame Bibliothek geladen. Verkettung durchgef?hrt. ext1c ist kein Eingangspunkt. dynlibext(), ['ext1c'],'c') !--error 235 link: Problem mit einer der Eingangspunkte. at line 18 of exec file called by : exec loader.sce at line 19 of exec file called by : exec('D:\test_sci2.sce', -1) --------------------------------------------------------------------------- My System: Windows 7 x64 Scilab 5.4.0 64-Bit MinGw toolbox 0.9.3 I use the recommended Compiler for MinGW Toolbox: gcc-4.6.3-64 --------------------------------------------------------------------------- The code i ran is: if haveacompiler() then chdir(TMPDIR) f1=['int ext1c(int *n, double *a, double *b, double *c)' '{int k;' ' for (k = 0; k < *n; ++k) ' ' c[k] = a[k] + b[k];' ' return(0);}']; mputl(f1,'fun1.cpp') //creating the shared library (a gateway, a Makefile and a loader are //generated. ilib_for_link('ext1c','fun1.cpp',[],"c") // load the shared library exec loader.sce //using the new primitive a=[1,2,3];b=[4,5,6];n=3; c=call('ext1c',n,1,'i',a,2,'d',b,3,'d','out',[1,3],4,'d'); if norm(c-(a+b)) > %eps then pause,end end ---------------------------------------------------------------------- Thank you very much for your help in advance! Best regards, Christopher -- View this message in context: http://mailinglists.scilab.org/ilib-for-link-problems-using-c-tp4027270.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Fri Aug 23 21:48:26 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 23 Aug 2013 15:48:26 -0400 Subject: [Scilab-users] open a .dta file with scilab Message-ID: <5217BC8A.9090508@centre-cired.fr> Hi Does anybody know a toolkit or any other way to read a .dta file with scilab? Cheers -- Adrien Vogt-Schilb (Cired) +33 (0) 1 43 94 73 83 From mathieu.dubois at limsi.fr Fri Aug 23 22:05:39 2013 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 23 Aug 2013 22:05:39 +0200 Subject: [Scilab-users] open a .dta file with scilab In-Reply-To: <5217BC8A.9090508@centre-cired.fr> References: <5217BC8A.9090508@centre-cired.fr> Message-ID: <10be35aa7a3f981c03b4a5a932b69b0e@limsi.fr> I have never used it but searching for "scilab stata file" points to the Nan-toolbox (http://forge.scilab.org/index.php/p/nan-toolbox/). Apparently there is a xtopen function. HTH, Mathieu Le 23/08/2013 21:48, Adrien Vogt-Schilb a ?crit : > Hi > > Does anybody know a toolkit or any other way to read a .dta file with > scilab? > > > > Cheers > From vogt at centre-cired.fr Fri Aug 23 22:26:02 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 23 Aug 2013 16:26:02 -0400 Subject: [Scilab-users] open a .dta file with scilab In-Reply-To: <10be35aa7a3f981c03b4a5a932b69b0e@limsi.fr> References: <5217BC8A.9090508@centre-cired.fr> <10be35aa7a3f981c03b4a5a932b69b0e@limsi.fr> Message-ID: <5217C55A.4010605@centre-cired.fr> thank you for your answer. i did not find any xtopen function in the nana toolbox. Where did you see it? On 23/08/2013 16:05, Mathieu Dubois wrote: > I have never used it but searching for "scilab stata file" points to > the Nan-toolbox (http://forge.scilab.org/index.php/p/nan-toolbox/). > Apparently there is a xtopen function. > > HTH, > Mathieu > > Le 23/08/2013 21:48, Adrien Vogt-Schilb a ?crit : >> Hi >> >> Does anybody know a toolkit or any other way to read a .dta file with >> scilab? >> >> >> >> Cheers >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb (Cired) +33 (0) 1 43 94 73 83 From mathieu.dubois at limsi.fr Fri Aug 23 23:16:49 2013 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 23 Aug 2013 23:16:49 +0200 Subject: [Scilab-users] open a .dta file with scilab In-Reply-To: <5217C55A.4010605@centre-cired.fr> References: <5217BC8A.9090508@centre-cired.fr> <10be35aa7a3f981c03b4a5a932b69b0e@limsi.fr> <5217C55A.4010605@centre-cired.fr> Message-ID: In fact I just found this help file: http://forge.scilab.org/index.php/p/nan-toolbox/source/tree/master/help/en_US/file_io/xptopen.xml (the function is xptopen). There seems to be a source file in sci_gateway/c/xptopen.cpp. Le 23/08/2013 22:26, Adrien Vogt-Schilb a ?crit : > thank you for your answer. > > i did not find any xtopen function in the nana toolbox. Where did you > see it? > > > On 23/08/2013 16:05, Mathieu Dubois wrote: >> I have never used it but searching for "scilab stata file" points to >> the Nan-toolbox (http://forge.scilab.org/index.php/p/nan-toolbox/). >> Apparently there is a xtopen function. >> >> HTH, >> Mathieu >> >> Le 23/08/2013 21:48, Adrien Vogt-Schilb a ?crit : >>> Hi >>> >>> Does anybody know a toolkit or any other way to read a .dta file >>> with >>> scilab? >>> >>> >>> >>> Cheers >>> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > From johannes.eha at web.de Sun Aug 25 11:01:54 2013 From: johannes.eha at web.de (cpt_nemo) Date: Sun, 25 Aug 2013 02:01:54 -0700 (PDT) Subject: [Scilab-users] Problem with get_scicos_time() discrete time c block Message-ID: <1377421314334-4027276.post@n3.nabble.com> I am trying to create a discrete time block in c that is used inside Xcos. When using the "get_scicos_time()" - function the result is always zero. Can this function only be used in continuous time systems? Is there another possibility to access the simulation time from a c source. My Scilab version is 5.4.1, 64 bit on Windows 7 -- View this message in context: http://mailinglists.scilab.org/Problem-with-get-scicos-time-discrete-time-c-block-tp4027276.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arctica1963 at gmail.com Sun Aug 25 12:45:47 2013 From: arctica1963 at gmail.com (Lester Anderson) Date: Sun, 25 Aug 2013 11:45:47 +0100 Subject: [Scilab-users] Code problem fft-ifft Message-ID: Hi all, I am attempting to code up a Mathcad file into Scilab and it should be straightforward, but for some reason it is not working as it should. And checking the variable values, some are still complex as output from the fft/ifft runs - the inputs look right as far as I can see. If someone can see what the issue is and a solution, that would be great. Attached my quick attempt at converting the Mathcad code (see PDF) and the input profile data (*.prn files) Cheers Lester -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: haw_grv.prn Type: application/octet-stream Size: 2011 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: haw_topo.prn Type: application/octet-stream Size: 2172 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ex4_1.sce Type: application/octet-stream Size: 1708 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Flexure_Hawaii.pdf Type: application/pdf Size: 123660 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Mon Aug 26 10:24:17 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 26 Aug 2013 10:24:17 +0200 Subject: [Scilab-users] Code problem fft-ifft In-Reply-To: References: Message-ID: <521B10B1.8040801@laas.fr> On 25/08/2013 12:45, Lester Anderson wrote: > Hi all, > > I am attempting to code up a Mathcad file into Scilab and it should be > straightforward, but for some reason it is not working as it should. And > checking the variable values, some are still complex as output from the > fft/ifft runs - the inputs look right as far as I can see. I cannot open the prn files and it's thus difficult for me to check your data. What do you mean by still complex? When you run fft or ifft on a real dataset, the output is complex, that's to be expected. Maybe (it's just a wild guess) you ended up with complex values that have an imaginary part that is zero. Scilab still consider these values to be complex. Antoine > > If someone can see what the issue is and a solution, that would be great. > > Attached my quick attempt at converting the Mathcad code (see PDF) and the > input profile data (*.prn files) > > Cheers > > Lester > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Mon Aug 26 11:03:38 2013 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 26 Aug 2013 10:03:38 +0100 Subject: [Scilab-users] Code problem fft-ifft In-Reply-To: <521B10B1.8040801@laas.fr> References: <521B10B1.8040801@laas.fr> Message-ID: Hi Antoine, The prn files are just plain text files, no idea why they were given prn as an extension, that's how they came with the Mathcad code. They can be loaded into Notepad with no problem) The complex issue is coming from the forward and inverse fft as you say. I am kind of suspicious if it is actually loading the data files properly? c = fft(obs_topo1); = COMPLEX k = 0:1:npts-1; phik = (D*(k*XKint)^4/(g*(rho_m-rho_c))+1)^-1;Zflexure = (2*%pi*G*1e5)*(rho_c-rho_w).*exp(-k*XKint*mean_depth).*(1-phik.*exp(-XKint*ocean_thick)); factork = Zflexure * c; = COMPLEX (single value eg -4.490857598202565E-10-8.427771813321494E-11*%i) calc_grv = ifft(factork) = COMPLEX - this should be a real set of values. Cheers Lester On 26 August 2013 09:24, Antoine Monmayrant wrote: > On 25/08/2013 12:45, Lester Anderson wrote: > > Hi all, > > I am attempting to code up a Mathcad file into Scilab and it should be > straightforward, but for some reason it is not working as it should. And > checking the variable values, some are still complex as output from the > fft/ifft runs - the inputs look right as far as I can see. > > I cannot open the prn files and it's thus difficult for me to check your > data. > What do you mean by still complex? > When you run fft or ifft on a real dataset, the output is complex, that's > to be expected. > Maybe (it's just a wild guess) you ended up with complex values that have > an imaginary part that is zero. > Scilab still consider these values to be complex. > > Antoine > > > If someone can see what the issue is and a solution, that would be great. > > Attached my quick attempt at converting the Mathcad code (see PDF) and the > input profile data (*.prn files) > > Cheers > > Lester > > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Mon Aug 26 14:29:00 2013 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 26 Aug 2013 13:29:00 +0100 Subject: [Scilab-users] Code problem fft-ifft In-Reply-To: <521B3E90.6010108@laas.fr> References: <521B10B1.8040801@laas.fr> <521B3E90.6010108@laas.fr> Message-ID: I am not sure about the logic with some of these Mathcad files, have a number to deal with in various forms. The result for calc_grv is invalid because it should compute all values on the profiel to npts The PDF I loaded before shows what it is meant to generate Checked the loading and plotting of the inputs: //Read in topography and free-air gravity filesnpts=128Topo = read('C:\Users\Lester\Documents\Scilab_functions\Geoscience\'+'haw_topo.prn',-1,2);Grav = read('C:\Users\Lester\Documents\Scilab_functions\Geoscience\'+'haw_grv.prn',-1,2);Topo(:,1)=Topo(:,1)*1000; Grav(:,1)=Grav(:,1)*1000; dx = (Grav($,1)-Grav(1,1))/(npts-1);XKint = 2*%pi/((npts-1)*dx);Xint = (Grav($,1)-Grav(1,1))/(npts-1); for i=1:npts x1(i) = Topo(1,1)+(i-1)*Xint;end obs_topo = interp1(Topo(:,1),Topo(:,2),x1,'linear');obs_grav = interp1(Grav(:,1),Grav(:,2),x1,'linear'); k = 0:1:npts-1; //Plot input files - ignore labels/scalescf(0)clf(0)xlabel("Distance (km)");ylabel("gravity"); set(gca(),"auto_clear","off")a=gca();a.x_location="bottom";a.axes_reverse=["off","off","off"];plot(k.*Xint/1000,obs_grav,'m');plot(k.*Xint/1000,obs_topo,'b');legend(['bathymetry';'gravity'],4); The plots of the input data (attached) show the data is read in fine. The issue is somewhere in the computation, which at least narrows the problem. Cheers Lester On 26 August 2013 12:40, Antoine Monmayrant wrote: > On 26/08/2013 11:03, Lester Anderson wrote: > >> Hi Antoine, >> >> The prn files are just plain text files, no idea why they were given prn >> as >> an extension, that's how they came with the Mathcad code. They can be >> loaded into Notepad with no problem) >> >> The complex issue is coming from the forward and inverse fft as you say. I >> am kind of suspicious if it is actually loading the data files properly? >> >> c = fft(obs_topo1); = COMPLEX >> k = 0:1:npts-1; >> phik = (D*(k*XKint)^4/(g*(rho_m-rho_**c))+1)^-1;Zflexure = >> (2*%pi*G*1e5)*(rho_c-rho_w).***exp(-k*XKint*mean_depth).*(1-** >> phik.*exp(-XKint*ocean_thick))**; >> factork = Zflexure * c; = COMPLEX (single value eg >> -4.490857598202565E-10-8.**427771813321494E-11*%i) >> > Well, I don't know exactly what this means : > > calc_grv = ifft(factork) = COMPLEX - this should be a real set of values. >> > factork is a constant ie a 1x1 matrix and I don't see what it means to > take the fft or the ifft of a constant! > > Antoine > >> >> >> Cheers >> Lester >> >> >> >> >> On 26 August 2013 09:24, Antoine Monmayrant * >> *wrote: >> >> On 25/08/2013 12:45, Lester Anderson wrote: >>> >>> Hi all, >>> >>> I am attempting to code up a Mathcad file into Scilab and it should be >>> straightforward, but for some reason it is not working as it should. And >>> checking the variable values, some are still complex as output from the >>> fft/ifft runs - the inputs look right as far as I can see. >>> >>> I cannot open the prn files and it's thus difficult for me to check >>> your >>> data. >>> What do you mean by still complex? >>> When you run fft or ifft on a real dataset, the output is complex, that's >>> to be expected. >>> Maybe (it's just a wild guess) you ended up with complex values that have >>> an imaginary part that is zero. >>> Scilab still consider these values to be complex. >>> >>> Antoine >>> >>> >>> If someone can see what the issue is and a solution, that would be great. >>> >>> Attached my quick attempt at converting the Mathcad code (see PDF) and >>> the >>> input profile data (*.prn files) >>> >>> Cheers >>> >>> Lester >>> >>> >>> >>> ______________________________**_________________ >>> users mailing listusers at lists.scilab.**orghttp://lists.scilab.org/** >>> mailman/listinfo/users >>> >>> >>> >>> >>> >>> ______________________________**_________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/**mailman/listinfo/users >>> >>> >>> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 4_1b.jpeg Type: image/jpeg Size: 35021 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 4_1a.jpeg Type: image/jpeg Size: 35514 bytes Desc: not available URL: From boljeleel at yahoo.com Mon Aug 26 16:14:42 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Mon, 26 Aug 2013 07:14:42 -0700 (PDT) Subject: [Scilab-users] Advantages of Scilab over MATLAB Message-ID: <1377526482.98357.YahooMailNeo@web160302.mail.bf1.yahoo.com> Hi All, I write to know the advantages of Scilab over MATLAB. ? ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Aug 26 16:48:31 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 26 Aug 2013 16:48:31 +0200 Subject: [Scilab-users] Advantages of Scilab over MATLAB In-Reply-To: <1377526482.98357.YahooMailNeo@web160302.mail.bf1.yahoo.com> References: <1377526482.98357.YahooMailNeo@web160302.mail.bf1.yahoo.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31ED17B89@301EX00100.sidel.com> Hello, > De la part de Debola Abduljeleel > Envoy? : lundi 26 ao?t 2013 16:15 > > I write to know the advantages of Scilab over MATLAB. You might have some elements in Alan Edelman, /Open Source and Traditional Technical Computing/ www.scilab.org/content/download/395/2850/file/ScilabTec_Keynote.pdf Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From omorr at uns.ac.rs Mon Aug 26 16:52:07 2013 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Mon, 26 Aug 2013 16:52:07 +0200 Subject: [Scilab-users] CompoundSplitter Help In-Reply-To: <51FA1657.6040101@amsterchem.com> References: <1654234877-1375198493-cardhu_decombobulator_blackberry.rim.net-1529393317-@b16.c11.bise7.blackberry> <3B5FFC67498DFF49AE7271A584867D16F31E9C1A2A@301EX00100.sidel.com> <51F9463B.2090503@amsterchem.com> <3B5FFC67498DFF49AE7271A584867D16F31E9C1CC9@301EX00100.sidel.com> <51FA1657.6040101@amsterchem.com> Message-ID: <521B6B97.3090902@uns.ac.rs> Hello Jasper, One of my students reported me a minor bug/problem. When you invoke a CompoundSplitter UO, and press Help button from the GUI dialog window, then Help window about it does not appear but a warning message - see the picture please. I suppose there might be a wrong link there. Regards, Radovan -------------- next part -------------- A non-text attachment was scrubbed... Name: compoundsplitter.png Type: image/png Size: 90029 bytes Desc: not available URL: From jasper at amsterchem.com Tue Aug 27 10:09:10 2013 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 27 Aug 2013 10:09:10 +0200 Subject: [Scilab-users] CompoundSplitter Help In-Reply-To: <521B6B97.3090902@uns.ac.rs> References: <1654234877-1375198493-cardhu_decombobulator_blackberry.rim.net-1529393317-@b16.c11.bise7.blackberry> <3B5FFC67498DFF49AE7271A584867D16F31E9C1A2A@301EX00100.sidel.com> <51F9463B.2090503@amsterchem.com> <3B5FFC67498DFF49AE7271A584867D16F31E9C1CC9@301EX00100.sidel.com> <51FA1657.6040101@amsterchem.com> <521B6B97.3090902@uns.ac.rs> Message-ID: <521C5EA6.1040004@amsterchem.com> Hello Radovan, Thank you for pointing out this problem. I believe you mistakenly sent it to the scilab mailing list. In any case, the problem is fixed and available from the COCO update program. Best wishes, Jasper. On 8/26/2013 16:52, Radovan Omorjan wrote: > Hello Jasper, > > One of my students reported me a minor bug/problem. > When you invoke a CompoundSplitter UO, and press Help button from the > GUI dialog window, then Help window about it does not appear but a > warning message - see the picture please. > I suppose there might be a wrong link there. > > Regards, > Radovan > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From omorr at uns.ac.rs Tue Aug 27 10:22:20 2013 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Tue, 27 Aug 2013 10:22:20 +0200 Subject: [Scilab-users] CompoundSplitter Help In-Reply-To: <521C5EA6.1040004@amsterchem.com> References: <1654234877-1375198493-cardhu_decombobulator_blackberry.rim.net-1529393317-@b16.c11.bise7.blackberry> <3B5FFC67498DFF49AE7271A584867D16F31E9C1A2A@301EX00100.sidel.com> <51F9463B.2090503@amsterchem.com> <3B5FFC67498DFF49AE7271A584867D16F31E9C1CC9@301EX00100.sidel.com> <51FA1657.6040101@amsterchem.com> <521B6B97.3090902@uns.ac.rs> <521C5EA6.1040004@amsterchem.com> Message-ID: <521C61BC.10500@uns.ac.rs> My mistake. Sorry once again. I could see this was fixed, as usual. Thank you :-) By the way, I managed to introduce Scilab in one of my courses since last year. One of my younger colleagues started with the course in which I was using COCO before, but unfortunately he skip COCO because he did not feel ready yet. Regards, Radovan On 8/27/2013 10:09 AM, jasper van baten wrote: > Hello Radovan, > > Thank you for pointing out this problem. I believe you mistakenly sent > it to the scilab mailing list. In any case, the problem is fixed and > available from the COCO update program. > > Best wishes, > > Jasper. > > On 8/26/2013 16:52, Radovan Omorjan wrote: >> Hello Jasper, >> >> One of my students reported me a minor bug/problem. >> When you invoke a CompoundSplitter UO, and press Help button from the >> GUI dialog window, then Help window about it does not appear but a >> warning message - see the picture please. >> I suppose there might be a wrong link there. >> >> Regards, >> Radovan >> >> >> >> >> >> _______________________________________________ >> 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 boljeleel at yahoo.com Tue Aug 27 10:53:35 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Tue, 27 Aug 2013 01:53:35 -0700 (PDT) Subject: [Scilab-users] Simulation Problem in Scilab to be converted to MATLAB Message-ID: <1377593615.90519.YahooMailNeo@web160304.mail.bf1.yahoo.com> Hi Everyone, I seek an assistance to convert the following program to MATLAB. It was originally written in FORTRAN and now in Scilab. Thanks as I anticipate your kind response/asssistance. // //Right hand side of ODE // function y=D(t, u) V=u(1) H=u(2) VDOT=0.0107*H-0.00205*V^2 HDOT=0.311-0.0624*V y=[VDOT;HDOT] endfunction t0=0; t=[0:20:1200]; // //First initial condition // V1=3.40; H1=2.05; y0=[V1;H1]; mprintf('INITIAL CONDITIONS: V= %f, H=%f',V1,H1) u=ode(y0,t0,t,D); mprintf('TIME V H') disp([t',u']) scf(1001); plot2d(t,u(1,:)); xtitle("Gravity-Flow Tank Simulation V1,H1", "Process time, s", "h, ft") scf(1001); plot2d(t,u(2,:)); // //Second initial condition // V2=2.50; H2=1.2; y0=[V2;H2]; mprintf('INITIAL CONDITIONS: V= %f, H=%f',V2,H2) u=ode(y0,t0,t,D); mprintf('TIME V H') disp([t',u']) scf(1002); plot2d(t,u(1,:)); xtitle("Gravity-Flow Tank Simulation V2,H2", "Process time, s", "h, ft") scf(1002); plot2d(t,u(2,:)); //end ? ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Aug 27 17:49:55 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 27 Aug 2013 17:49:55 +0200 Subject: [Scilab-users] Scilab compilation Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF3F@exchsrv.auxitrol.ad> Dear All The nightly build release binary (Linux OS) asks for glibc-2.14 whereas only the 2.12 is installed under my CentOS ... I've a doubt : if I try (once again) to compile scilab (with all the dependencies) , will it work using this library of the 2.14 is absolutely requested ? Thanks Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Tue Aug 27 17:53:41 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 27 Aug 2013 17:53:41 +0200 Subject: [Scilab-users] Scilab compilation In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF3F@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF3F@exchsrv.auxitrol.ad> Message-ID: <521CCB85.50305@scilab-enterprises.com> On 27/08/2013 17:49, Carrico, Paul wrote: > Dear All > > > > The nightly build release binary (Linux OS) asks for glibc-2.14 whereas > only the 2.12 is installed under my CentOS ... I've a doubt : if I try > (once again) to compile scilab(with all the dependencies) , will it work > using this library of the 2.14 is absolutely requested ? No. It is not at all require. Sylvestre PS: you should ask the -dev mailing list for such question. From paul.carrico at esterline.com Wed Aug 28 09:04:05 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 28 Aug 2013 09:04:05 +0200 Subject: [Scilab-users] Scilab compilation In-Reply-To: <521CCB85.50305@scilab-enterprises.com> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF3F@exchsrv.auxitrol.ad> <521CCB85.50305@scilab-enterprises.com> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF44@exchsrv.auxitrol.ad> Hi Sounds good ... Thanks NB: I've some warnings I would like to swich off, but it seems to work scilab-cli-bin: /opt/scilab-master-1377263957/lib/thirdparty/libcurl.so.4: no version information available (required by /opt/scilab-master-1377263957/lib/scilab/libscilab-cli.so.0) scilab-cli-bin: /opt/scilab-master-1377263957/lib/thirdparty/libcrypto.so.0.9.8: no version information available (required by /opt/scilab-master-1377263957/lib/thirdparty/libcurl.so.4) Paul PS: I didn't know for the different mailing list -----Message d'origine----- De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Sylvestre Ledru Envoy? : mardi 27 ao?t 2013 17:54 ? : users at lists.scilab.org Objet : Re: [Scilab-users] Scilab compilation On 27/08/2013 17:49, Carrico, Paul wrote: > Dear All > > > > The nightly build release binary (Linux OS) asks for glibc-2.14 whereas > only the 2.12 is installed under my CentOS ... I've a doubt : if I try > (once again) to compile scilab(with all the dependencies) , will it work > using this library of the 2.14 is absolutely requested ? No. It is not at all require. Sylvestre PS: you should ask the -dev mailing list for such question. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From akhorshidi at live.com Wed Aug 28 09:50:58 2013 From: akhorshidi at live.com (A Khorshidi) Date: Wed, 28 Aug 2013 00:50:58 -0700 (PDT) Subject: [Scilab-users] Protecting a new variable by using predef() Message-ID: <1377676258819-4027293.post@n3.nabble.com> Hi; the help says: "predef(n) sets the max(n,7) last defined variables as protected" So, predef(n) doesn't protect my new defined variables. In fact this syntax is equivalent to predef('clear') ! -->predef() ans = 75. -->a1=1;a2=2;a3=3;a4=4; -->predef(4) ans = 75. 13. So my question is, how to protect only one variable? for example "a1" Merci Mehran -- View this message in context: http://mailinglists.scilab.org/Protecting-a-new-variable-by-using-predef-tp4027293.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.becu at maya-technologies.com Wed Aug 28 13:17:47 2013 From: stephane.becu at maya-technologies.com (Stephane BECU) Date: Wed, 28 Aug 2013 11:17:47 +0000 Subject: [Scilab-users] Convert scilab sce files into executable files Message-ID: <7f07ba4f0c4648069daa22165aa5dfe9@EXCHSRV.maya-technologies.local> Hello, I'd like to compile .sce scilab files into .exe files in order to create a program which does not need the scilab software to be installed (standalone program). I've read many different ways to do that based on implementation of a c++ code using call_scilab or api_scilab libraries or simply using the 'scetoexe' ATOMS module. Can anybody tells me what the best way shall be to insure perennity and robustness of my application? Thanks in advance, St?phane B?cu [Maya Technologies] Stephane BECU Tel: 0438495901 Mobile: www.maya-technologies.com Maya Technologies La Petite Halle ZAC Bouchayer Viallet 31, rue Gustave Eiffel 38 000 Grenoble -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Wed Aug 28 13:34:04 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 28 Aug 2013 13:34:04 +0200 Subject: [Scilab-users] Protecting a new variable by using predef() In-Reply-To: <1377676258819-4027293.post@n3.nabble.com> References: <1377676258819-4027293.post@n3.nabble.com> Message-ID: <521DE02C.1080406@inria.fr> Le 28/08/2013 09:50, A Khorshidi a ?crit : > Hi; > > the help says: "predef(n) sets the max(n,7) last defined variables as > protected" > So, predef(n) doesn't protect my new defined variables. In fact this syntax > is equivalent to predef('clear') ! > > -->predef() > ans = > > 75. > > -->a1=1;a2=2;a3=3;a4=4; > > -->predef(4) > ans = > > 75. 13. > > > > So my question is, how to protect only one variable? for example "a1" It is not possible yet. Serge > Merci > Mehran > > > > > -- > View this message in context: http://mailinglists.scilab.org/Protecting-a-new-variable-by-using-predef-tp4027293.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 Wed Aug 28 15:13:42 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Aug 2013 15:13:42 +0200 Subject: [Scilab-users] Convert scilab sce files into executable files In-Reply-To: <7f07ba4f0c4648069daa22165aa5dfe9@EXCHSRV.maya-technologies.local> References: <7f07ba4f0c4648069daa22165aa5dfe9@EXCHSRV.maya-technologies.local> Message-ID: <521DF786.7000704@free.fr> Hello, Le 28/08/2013 13:17, Stephane BECU a ?crit : > I'd like to compile .sce scilab files into .exe files in order to > create a program which does not need the scilab software to be > installed (standalone program). I've read many different ways to do > that based on implementation of a c++ code using call_scilab or > api_scilab libraries or simply using the 'scetoexe' ATOMS module. executables made through /scetoexe/ need Scilab to be installed. Equalis is proposing a product fullfilling your requirements: http://www.equalis.com/?page=CoderAndCompiler As far as i know, it is the only possibility to do that. Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Wed Aug 28 18:45:27 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 28 Aug 2013 12:45:27 -0400 Subject: [Scilab-users] (no subject) Message-ID: <521E2927.1030802@centre-cired.fr> Hi everyone Is there a way to clear the crrent line in th console? In most consoloes, [ESC] does that, but not in scilab -- Adrien Vogt-Schilb (Cired) +33 (0) 1 43 94 73 83 From antoine.monmayrant at laas.fr Wed Aug 28 21:05:15 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 28 Aug 2013 21:05:15 +0200 Subject: [Scilab-users] (no subject) In-Reply-To: <521E2927.1030802@centre-cired.fr> References: <521E2927.1030802@centre-cired.fr> Message-ID: <521E49EB.7030707@laas.fr> Le 28/08/13 18:45, Adrien Vogt-Schilb a ?crit : > Hi everyone > > Is there a way to clear the crrent line in th console? In most > consoloes, [ESC] does that, but not in scilab > > Ctrl+U to clear from the beginning of the line to the cursor. Ctrl+E then Ctrl+U to clear the whole line (Ctrl+E moves to the end of line and Ctrl+A to the beginning). It's the same in tcsh, bash and many others (comes from emacs I think). Antoine From papriwalprateek at gmail.com Wed Aug 28 21:18:12 2013 From: papriwalprateek at gmail.com (prateek papriwal) Date: Thu, 29 Aug 2013 00:48:12 +0530 Subject: [Scilab-users] (no subject) In-Reply-To: <521E49EB.7030707@laas.fr> References: <521E2927.1030802@centre-cired.fr> <521E49EB.7030707@laas.fr> Message-ID: Check out more at http://help.scilab.org/docs/5.4.1/en_US/console.html On Thu, Aug 29, 2013 at 12:35 AM, Antoine Monmayrant < antoine.monmayrant at laas.fr> wrote: > Le 28/08/13 18:45, Adrien Vogt-Schilb a ?crit : > > Hi everyone >> >> Is there a way to clear the crrent line in th console? In most consoloes, >> [ESC] does that, but not in scilab >> >> >> Ctrl+U to clear from the beginning of the line to the cursor. > Ctrl+E then Ctrl+U to clear the whole line (Ctrl+E moves to the end of > line and Ctrl+A to the beginning). > It's the same in tcsh, bash and many others (comes from emacs I think). > > Antoine > > ______________________________**_________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/**mailman/listinfo/users > -- Thanks and Regards Prateek Papriwal B.Tech, Electrical IIT Delhi -------------- next part -------------- An HTML attachment was scrubbed... URL: From rakhiwarriar at gmail.com Thu Aug 29 07:58:04 2013 From: rakhiwarriar at gmail.com (Rakhi Warriar) Date: Thu, 29 Aug 2013 11:28:04 +0530 Subject: [Scilab-users] Sequential Quadratic Programming in Scilab In-Reply-To: References: Message-ID: Thanks for the info! I shall revert back if I have any further queries. Rakhi On Tue, Aug 20, 2013 at 5:40 PM, St?phane Mottelet < stephane.mottelet at gmail.com> wrote: > Hello, > > I have updated the fsqp toolbox for Scilab 5.4 an can provide the package > (without the cfsqp.c file which has to be obtained from the authors). > > S. > > > 2013/8/19 Michael BAUDIN > >> Hi, >> >> What kind of optimization problem are you willing to solve ? SQP is >> typical for nonlinear programming (with constraints), but this is just a >> guess an may not correspond to your specific issue. >> >> If you have a constrained optimization problem, I suggest to try : >> >> *http://atoms.scilab.org/toolboxes/sci_ipopt* >> >> If you are searching for a smoothier interface, please try : >> >> *http://atoms.scilab.org/toolboxes/fmincon* >> >> but this is still in pre-alpha state. >> >> The toolbox : >> >> *http://atoms.scilab.org/toolboxes/scinlopt* >> >> might be helpful. But, as far as I can see, there are packaging issues >> (the previous release was not available on Windows, and the latest release >> is not packaged on atoms). >> >> The FSQP toolbox was never released publicly for license reasons. It was >> available upon request to the authors, for research only. The code is >> simple and efficient. My guess is that it is not maintained anymore, >> except, perhaps, by Scilab Enterprises. >> >> Hope this helps. >> >> Best regards, >> >> Micha?l >> >> >> >> De : rakhiwarriar at gmail.com >> A : users at lists.scilab.org >> Date : 19/08/2013 09:49 >> Objet : [Scilab-users] Sequential Quadratic Programming in Scilab >> Envoy? par : users-bounces at lists.scilab.org >> ------------------------------ >> >> >> >> Hello >> >> How can one do SQP using Scilab? I found a pdf that explains about an >> fsqp toolbox in Scilab, but the link given does not work anymore. Could >> someone tell me of any toolboxes available for SQP in Scilab? >> >> Thanks! >> Rakhi_______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> >> Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont >> ?tablis ? l'intention exclusive des destinataires et les informations qui y >> figurent sont strictement confidentielles. Toute utilisation de ce Message >> non conforme ? sa destination, toute diffusion ou toute publication totale >> ou partielle, est interdite sauf autorisation expresse. >> >> Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de >> le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou >> partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de >> votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace >> sur quelque support que ce soit. Nous vous remercions ?galement d'en >> avertir imm?diatement l'exp?diteur par retour du message. >> >> Il est impossible de garantir que les communications par messagerie >> ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute >> erreur ou virus. >> ____________________________________________________ >> >> This message and any attachments (the 'Message') are intended solely for >> the addressees. The information contained in this Message is confidential. >> Any use of information contained in this Message not in accord with its >> purpose, any dissemination or disclosure, either whole or partial, is >> prohibited except formal approval. >> >> If you are not the addressee, you may not copy, forward, disclose or use >> any part of it. If you have received this message in error, please delete >> it and all copies from your system and notify the sender immediately by >> return message. >> >> E-mail communication cannot be guaranteed to be timely secure, error or >> virus-free. >> >> _______________________________________________ >> 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 paul.carrico at esterline.com Thu Aug 29 08:19:46 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Thu, 29 Aug 2013 08:19:46 +0200 Subject: [Scilab-users] Sequential Quadratic Programming in Scilab In-Reply-To: References: Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF4A@exchsrv.auxitrol.ad> maybe have a look to NLOPT including SQP algorithm (among others) ... but it's not linked to Scilab so far ________________________________ De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Rakhi Warriar Envoy? : jeudi 29 ao?t 2013 07:58 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Sequential Quadratic Programming in Scilab Thanks for the info! I shall revert back if I have any further queries. Rakhi On Tue, Aug 20, 2013 at 5:40 PM, St?phane Mottelet wrote: Hello, I have updated the fsqp toolbox for Scilab 5.4 an can provide the package (without the cfsqp.c file which has to be obtained from the authors). S. 2013/8/19 Michael BAUDIN Hi, What kind of optimization problem are you willing to solve ? SQP is typical for nonlinear programming (with constraints), but this is just a guess an may not correspond to your specific issue. If you have a constrained optimization problem, I suggest to try : http://atoms.scilab.org/toolboxes/sci_ipopt If you are searching for a smoothier interface, please try : http://atoms.scilab.org/toolboxes/fmincon but this is still in pre-alpha state. The toolbox : http://atoms.scilab.org/toolboxes/scinlopt might be helpful. But, as far as I can see, there are packaging issues (the previous release was not available on Windows, and the latest release is not packaged on atoms). The FSQP toolbox was never released publicly for license reasons. It was available upon request to the authors, for research only. The code is simple and efficient. My guess is that it is not maintained anymore, except, perhaps, by Scilab Enterprises. Hope this helps. Best regards, Micha?l De : rakhiwarriar at gmail.com A : users at lists.scilab.org Date : 19/08/2013 09:49 Objet : [Scilab-users] Sequential Quadratic Programming in Scilab Envoy? par : users-bounces at lists.scilab.org ________________________________ Hello How can one do SQP using Scilab? I found a pdf that explains about an fsqp toolbox in Scilab, but the link given does not work anymore. Could someone tell me of any toolboxes available for SQP in Scilab? Thanks! Rakhi_______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont ?tablis ? l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme ? sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement l'exp?diteur par retour du message. Il est impossible de garantir que les communications par messagerie ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely secure, error or virus-free. _______________________________________________ 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 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rakhiwarriar at gmail.com Thu Aug 29 08:33:13 2013 From: rakhiwarriar at gmail.com (Rakhi Warriar) Date: Thu, 29 Aug 2013 12:03:13 +0530 Subject: [Scilab-users] Sequential Quadratic Programming in Scilab In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF4A@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF4A@exchsrv.auxitrol.ad> Message-ID: Hi, I could install scinlopt through atomsInstall(scinlopt). I am not sure if this is the latest version. The atoms page says that it is still being packaged. But am still trying to figure out how to use it. There aren't any help files. Rakhi On Thu, Aug 29, 2013 at 11:49 AM, Carrico, Paul wrote: > ** > maybe have a look to NLOPT including SQP algorithm (among others) ... but > it's not linked to Scilab so far > > > ------------------------------ > *De :* users-bounces at lists.scilab.org [mailto: > users-bounces at lists.scilab.org] *De la part de* Rakhi Warriar > *Envoy? :* jeudi 29 ao?t 2013 07:58 > *? :* International users mailing list for Scilab. > *Objet :* Re: [Scilab-users] Sequential Quadratic Programming in Scilab > > Thanks for the info! I shall revert back if I have any further queries. > > Rakhi > > > On Tue, Aug 20, 2013 at 5:40 PM, St?phane Mottelet < > stephane.mottelet at gmail.com> wrote: > >> Hello, >> >> I have updated the fsqp toolbox for Scilab 5.4 an can provide the package >> (without the cfsqp.c file which has to be obtained from the authors). >> >> S. >> >> >> 2013/8/19 Michael BAUDIN >> >>> Hi, >>> >>> What kind of optimization problem are you willing to solve ? SQP is >>> typical for nonlinear programming (with constraints), but this is just a >>> guess an may not correspond to your specific issue. >>> >>> If you have a constrained optimization problem, I suggest to try : >>> >>> *http://atoms.scilab.org/toolboxes/sci_ipopt* >>> >>> If you are searching for a smoothier interface, please try : >>> >>> *http://atoms.scilab.org/toolboxes/fmincon* >>> >>> but this is still in pre-alpha state. >>> >>> The toolbox : >>> >>> *http://atoms.scilab.org/toolboxes/scinlopt* >>> >>> might be helpful. But, as far as I can see, there are packaging issues >>> (the previous release was not available on Windows, and the latest release >>> is not packaged on atoms). >>> >>> The FSQP toolbox was never released publicly for license reasons. It was >>> available upon request to the authors, for research only. The code is >>> simple and efficient. My guess is that it is not maintained anymore, >>> except, perhaps, by Scilab Enterprises. >>> >>> Hope this helps. >>> >>> Best regards, >>> >>> Micha?l >>> >>> >>> >>> De : rakhiwarriar at gmail.com >>> A : users at lists.scilab.org >>> Date : 19/08/2013 09:49 >>> Objet : [Scilab-users] Sequential Quadratic Programming in Scilab >>> Envoy? par : users-bounces at lists.scilab.org >>> ------------------------------ >>> >>> >>> >>> Hello >>> >>> How can one do SQP using Scilab? I found a pdf that explains about an >>> fsqp toolbox in Scilab, but the link given does not work anymore. Could >>> someone tell me of any toolboxes available for SQP in Scilab? >>> >>> Thanks! >>> Rakhi_______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >>> >>> Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont >>> ?tablis ? l'intention exclusive des destinataires et les informations qui y >>> figurent sont strictement confidentielles. Toute utilisation de ce Message >>> non conforme ? sa destination, toute diffusion ou toute publication totale >>> ou partielle, est interdite sauf autorisation expresse. >>> >>> Si vous n'?tes pas le destinataire de ce Message, il vous est interdit >>> de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou >>> partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de >>> votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace >>> sur quelque support que ce soit. Nous vous remercions ?galement d'en >>> avertir imm?diatement l'exp?diteur par retour du message. >>> >>> Il est impossible de garantir que les communications par messagerie >>> ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute >>> erreur ou virus. >>> ____________________________________________________ >>> >>> This message and any attachments (the 'Message') are intended solely for >>> the addressees. The information contained in this Message is confidential. >>> Any use of information contained in this Message not in accord with its >>> purpose, any dissemination or disclosure, either whole or partial, is >>> prohibited except formal approval. >>> >>> If you are not the addressee, you may not copy, forward, disclose or use >>> any part of it. If you have received this message in error, please delete >>> it and all copies from your system and notify the sender immediately by >>> return message. >>> >>> E-mail communication cannot be guaranteed to be timely secure, error or >>> virus-free. >>> >>> _______________________________________________ >>> 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 >> >> > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrien.vogt.schilb at gmail.com Wed Aug 28 18:44:37 2013 From: adrien.vogt.schilb at gmail.com (Adrien Vogt-Schilb) Date: Wed, 28 Aug 2013 12:44:37 -0400 Subject: [Scilab-users] clear current line in the console Message-ID: <521E28F5.7030609@gmail.com> Hi everyone Is there a way to clear the crrent line in th console? In most consoloes, [ESC] does that, but not in scilab From paul.carrico at esterline.com Thu Aug 29 11:22:00 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Thu, 29 Aug 2013 11:22:00 +0200 Subject: [Scilab-users] Sequential Quadratic Programming in Scilab In-Reply-To: References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF4A@exchsrv.auxitrol.ad> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9AF4D@exchsrv.auxitrol.ad> I downloaded the latest nlopt-2.3 tarball, unpacked scinlopt in a temporary repertory, updated the loader.sce file and executed it directly in scilab ... the compilation seemed to run fine ... While help files exist in the unpacked repertory, i do not figure out how to have access to it in the help browser ???? neither nlopt nor slsqp leads to any help page Am I mistaken ? Paul ________________________________ De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Rakhi Warriar Envoy? : jeudi 29 ao?t 2013 08:33 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Sequential Quadratic Programming in Scilab Hi, I could install scinlopt through atomsInstall(scinlopt). I am not sure if this is the latest version. The atoms page says that it is still being packaged. But am still trying to figure out how to use it. There aren't any help files. Rakhi On Thu, Aug 29, 2013 at 11:49 AM, Carrico, Paul wrote: maybe have a look to NLOPT including SQP algorithm (among others) ... but it's not linked to Scilab so far ________________________________ De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Rakhi Warriar Envoy? : jeudi 29 ao?t 2013 07:58 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Sequential Quadratic Programming in Scilab Thanks for the info! I shall revert back if I have any further queries. Rakhi On Tue, Aug 20, 2013 at 5:40 PM, St?phane Mottelet wrote: Hello, I have updated the fsqp toolbox for Scilab 5.4 an can provide the package (without the cfsqp.c file which has to be obtained from the authors). S. 2013/8/19 Michael BAUDIN Hi, What kind of optimization problem are you willing to solve ? SQP is typical for nonlinear programming (with constraints), but this is just a guess an may not correspond to your specific issue. If you have a constrained optimization problem, I suggest to try : http://atoms.scilab.org/toolboxes/sci_ipopt If you are searching for a smoothier interface, please try : http://atoms.scilab.org/toolboxes/fmincon but this is still in pre-alpha state. The toolbox : http://atoms.scilab.org/toolboxes/scinlopt might be helpful. But, as far as I can see, there are packaging issues (the previous release was not available on Windows, and the latest release is not packaged on atoms). The FSQP toolbox was never released publicly for license reasons. It was available upon request to the authors, for research only. The code is simple and efficient. My guess is that it is not maintained anymore, except, perhaps, by Scilab Enterprises. Hope this helps. Best regards, Micha?l De : rakhiwarriar at gmail.com A : users at lists.scilab.org Date : 19/08/2013 09:49 Objet : [Scilab-users] Sequential Quadratic Programming in Scilab Envoy? par : users-bounces at lists.scilab.org ________________________________ Hello How can one do SQP using Scilab? I found a pdf that explains about an fsqp toolbox in Scilab, but the link given does not work anymore. Could someone tell me of any toolboxes available for SQP in Scilab? Thanks! Rakhi_______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont ?tablis ? l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme ? sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement l'exp?diteur par retour du message. Il est impossible de garantir que les communications par messagerie ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely secure, error or virus-free. _______________________________________________ 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 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.crete at thalesgroup.com Thu Aug 29 11:25:14 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Thu, 29 Aug 2013 11:25:14 +0200 Subject: [Scilab-users] clear current line in the console In-Reply-To: <521E28F5.7030609@gmail.com> References: <521E28F5.7030609@gmail.com> Message-ID: <25567_1377768317_521F137D_25567_8146_1_8F1D40232A0E68409E3FC23A30C326620168CE8CD310@THSONEA01CMS04P.one.grp> If cursor is at the end of the line, Shift Home + Del ? That is not really quick... Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Adrien Vogt-Schilb Envoy??: mercredi 28 ao?t 2013 18:45 ??: International users mailing list for Scilab. Objet?: [Scilab-users] clear current line in the console Hi everyone Is there a way to clear the crrent line in th console? In most consoloes, [ESC] does that, but not in scilab _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From jasper at amsterchem.com Thu Aug 29 13:15:46 2013 From: jasper at amsterchem.com (jasper van baten) Date: Thu, 29 Aug 2013 13:15:46 +0200 Subject: [Scilab-users] clear current line in the console In-Reply-To: <521E28F5.7030609@gmail.com> References: <521E28F5.7030609@gmail.com> Message-ID: <521F2D62.7050709@amsterchem.com> Ctrl+U Best wishes, Jasper. On 8/28/2013 18:44, Adrien Vogt-Schilb wrote: > Hi everyone > > Is there a way to clear the crrent line in th console? In most > consoloes, [ESC] does that, but not in scilab > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Thu Aug 29 15:20:55 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 29 Aug 2013 09:20:55 -0400 Subject: [Scilab-users] clear current line in the console In-Reply-To: <521F2D62.7050709@amsterchem.com> References: <521E28F5.7030609@gmail.com> <521F2D62.7050709@amsterchem.com> Message-ID: <521F4AB7.70405@centre-cired.fr> Ctrl+U Works. Thank you very much! On 29/08/2013 07:15, jasper van baten wrote: > Ctrl+U > > Best wishes, > > Jasper. > > On 8/28/2013 18:44, Adrien Vogt-Schilb wrote: >> Hi everyone >> >> Is there a way to clear the crrent line in th console? In most >> consoloes, [ESC] does that, but not in scilab >> _______________________________________________ >> 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 -- Adrien Vogt-Schilb (Cired) +33 (0) 1 43 94 73 83 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.becu at maya-technologies.com Thu Aug 29 15:41:38 2013 From: stephane.becu at maya-technologies.com (Stephane BECU) Date: Thu, 29 Aug 2013 13:41:38 +0000 Subject: [Scilab-users] Convert scilab sce files into executable files In-Reply-To: <521DF786.7000704@free.fr> References: <7f07ba4f0c4648069daa22165aa5dfe9@EXCHSRV.maya-technologies.local>, <521DF786.7000704@free.fr> Message-ID: Thanks Samuel for reply, I've tried using scetoexe but it did seem that straightforward. Some error messages appeared in the windows console when running the generated .exe file"CAN NOT LOAD DLLS". When copying from the SCI/bin directory to my application directory the following dll libraries the same error mesages appeared: * call_scilab.dll * api_scilab.dll * output_stream.dll * libscilab.dll * fileio.dll * MALLOC.dll ________________________________ De : users-bounces at lists.scilab.org de la part de Samuel Gougeon Envoy? : mercredi 28 ao?t 2013 15:13 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Convert scilab sce files into executable files Hello, Le 28/08/2013 13:17, Stephane BECU a ?crit : I'd like to compile .sce scilab files into .exe files in order to create a program which does not need the scilab software to be installed (standalone program). I've read many different ways to do that based on implementation of a c++ code using call_scilab or api_scilab libraries or simply using the 'scetoexe' ATOMS module. executables made through scetoexe need Scilab to be installed. Equalis is proposing a product fullfilling your requirements: http://www.equalis.com/?page=CoderAndCompiler As far as i know, it is the only possibility to do that. Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Thu Aug 29 16:48:45 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 29 Aug 2013 10:48:45 -0400 Subject: [Scilab-users] clear current line in the console In-Reply-To: <521F4AB7.70405@centre-cired.fr> References: <521E28F5.7030609@gmail.com> <521F2D62.7050709@amsterchem.com> <521F4AB7.70405@centre-cired.fr> Message-ID: <521F5F4D.9050004@centre-cired.fr> For the record, the following page: http://bugzilla.scilab.org/show_bug.cgi?id=12228 explains how to configure Scilab such that [ESC] clears the current line in the console. On 29/08/2013 09:20, Adrien Vogt-Schilb wrote: > Ctrl+U Works. Thank you very much! > > > On 29/08/2013 07:15, jasper van baten wrote: >> Ctrl+U >> >> Best wishes, >> >> Jasper. >> >> On 8/28/2013 18:44, Adrien Vogt-Schilb wrote: >>> Hi everyone >>> >>> Is there a way to clear the crrent line in th console? In most >>> consoloes, [ESC] does that, but not in scilab >>> _______________________________________________ >>> 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 > > > -- > Adrien Vogt-Schilb (Cired) > +33 (0) 1 43 94 73 83 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb (Cired) +33 (0) 1 43 94 73 83 -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Fri Aug 30 09:27:15 2013 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Fri, 30 Aug 2013 00:27:15 -0700 (PDT) Subject: [Scilab-users] scinotes command line option to handle different encoding Message-ID: <1377847635516-4027314.post@n3.nabble.com> Hello, I come into troubles while importing text files with UTF16 litlle endian original encoding formats that is not managed by mgetl : workaround used until now is to manually change the encoding using anotyher editor notepadd++. it would be nice to be able to do that directly through an option from the command line call to scinotes, like the feature introduced with 'trail', indent, quote option. Does any of you have a more efficient way of doing that ? Thanks, David -- View this message in context: http://mailinglists.scilab.org/scinotes-command-line-option-to-handle-different-encoding-tp4027314.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab-enterprises.com Fri Aug 30 11:38:43 2013 From: communication at scilab-enterprises.com (Scilab Communications) Date: Fri, 30 Aug 2013 11:38:43 +0200 Subject: [Scilab-users] [Tutorial] Xcos for very beginners Message-ID: <52206823.6070004@scilab-enterprises.com> Dear Scilab users and new users, *We are pleased to inform you that a new tutorial is available: Xcos for real beginners.* Available for download at http://www.scilab.org/en/resources/documentation/tutorials, this tutorial guides you step by step in exploring the various basic features of Xcos for a user who has never used a hybrid dynamic systems modeler and simulator. Wishing you a good reading Sincerely, -- SE Communications and Public Relations Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France)- http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 8210 bytes Desc: not available URL: