From delaleau at enib.fr Thu Jun 1 08:18:08 2017 From: delaleau at enib.fr (Emmanuel Delaleau) Date: Thu, 1 Jun 2017 08:18:08 +0200 Subject: [Scilab-users] Closing popup windwos Message-ID: Hi every body, I would like to know if there exist a function to close dialog windows (like messagebox, progressionbar, waitbar...), as 'xdel' does for regular graphic window(s). Best regards Emmanuel From akshayks at vt.edu Thu Jun 1 18:33:07 2017 From: akshayks at vt.edu (akshaykshas3) Date: Thu, 1 Jun 2017 09:33:07 -0700 (MST) Subject: [Scilab-users] builder.sce throws up errors for example cppmex. Unable to recognize cpp files. Scilab 5.5.2 Message-ID: <1496334787962-4036517.post@n3.nabble.com> Hi, In the cppmex, builder.sce is throwing up errors that i am unable to resolve. I am new to scilab and needed help with building a wrapper for translating cpp library into scilab. The given example is not working. I am using Scilab 5.5.2 on windows 7. I am unable to find any resources that point to developing cppmex wrappers online with scilab 5.5.2. The example given in scilab-5.5.2\modules\mexlib\examples\cppmex throws up the following errors: !--error 999 ilib_mex_build: Wrong value for input argument #3: existing file(s) expected. at line 23 of function ilib_mex_build called by : ilib_mex_build(ilib_name,table,files,libs,"",ldflags,cflags,fflags) at line 50 of exec file called by : exec('C:\Program Files\scilab-5.5.2\modules\mexlib\examples\cppmex\builder.sce', -1) even though the files do exist. Is it unable to recognize c++ files? kindly help me out! Thanks in advance! Regards Akshay -- View this message in context: http://mailinglists.scilab.org/builder-sce-throws-up-errors-for-example-cppmex-Unable-to-recognize-cpp-files-Scilab-5-5-2-tp4036517.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Jun 1 20:05:35 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 1 Jun 2017 20:05:35 +0200 (CEST) Subject: [Scilab-users] Closing popup windwos In-Reply-To: Message-ID: <1724365175.8422295.1496340335397.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >Hi every body, > >I would like to know if there exist a function to close dialog windows >(like messagebox, progressionbar, waitbar...), as 'xdel' does for >regular graphic window(s). winH = waitbar(37,"Can it be closed before completion?"); close(winH); id = progressionbar("Work in progress..."); close(id); messagebox(): AFAIK, it's only interactive: http://bugzilla.scilab.org/7157 HTH Samuel From ajteeder at v-twin.org.uk Fri Jun 2 00:34:58 2017 From: ajteeder at v-twin.org.uk (Alan Teeder) Date: Thu, 1 Jun 2017 23:34:58 +0100 Subject: [Scilab-users] evans() - sgrid(), scilab 6 Message-ID: <8B9C807773F14C69A6C36F822D2325F3@AlanPC> When I add sgrid to my evans plot the root locus plot is not useable. The vertical scale is scaled by e+10 or more. I am using scilab-branch-6.0-1493471536 Any ideas, or is this a bug? Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Fri Jun 2 18:31:51 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 2 Jun 2017 09:31:51 -0700 (MST) Subject: [Scilab-users] VIM syntax script for Scilab 6 ? In-Reply-To: <1494845568327-4036390.post@n3.nabble.com> References: <1494845568327-4036390.post@n3.nabble.com> Message-ID: <1496421111226-4036524.post@n3.nabble.com> some adjustments in scilab.vim from me: scilab.vim -- View this message in context: http://mailinglists.scilab.org/VIM-syntax-script-for-Scilab-6-tp4036390p4036524.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri Jun 2 20:58:27 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 2 Jun 2017 20:58:27 +0200 Subject: [Scilab-users] VIM syntax script for Scilab 6 ? In-Reply-To: <1496421111226-4036524.post@n3.nabble.com> References: <1494845568327-4036390.post@n3.nabble.com> <1496421111226-4036524.post@n3.nabble.com> Message-ID: <2296796e-03e4-c0cf-13c3-7868f1b8356e@free.fr> Le 02/06/2017 ? 18:31, Erhy a ?crit : > some adjustments in scilab.vim from me: > scilab.vim Great. Your post on FileExchange in the /Editors/ category will be certainly welcome :) https://fileexchange.scilab.org/categories/editor_styles -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Mon Jun 5 02:12:21 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Mon, 05 Jun 2017 02:12:21 +0200 Subject: [Scilab-users] xmlXPath with count Message-ID: <5934A1E5.4030107@hslmg.de> Hi, Ex. 0 and 2 are o.k.. But what I want is Ex. 1. What is wrong there? //Ex. 0 doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml"); // Count the nodes with name equal to"note" xp0 = xmlXPath(doc, "count(//note)") xmlDelete(doc) //Ex. 1 t=[''+.. ''+.. ''+.. 'City (Small)'+.. ''+.. ''] doc = xmlReadStr(t); xmlDump(doc) xp1 = xmlXPath(doc, "count(//wpt)") xmlDelete(doc) //Ex. 2 t=[''+.. ''+.. ' '+.. ' City (Small)'+.. ' '+.. '']; write(%io(2),t,'(A)') doc = xmlReadStr(t); xmlDump(doc) xp2 = xmlXPath(doc, "count(//wpt)") xmlDelete(doc) Kind regards, Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.David at esi-group.com Mon Jun 5 14:54:21 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Mon, 5 Jun 2017 12:54:21 +0000 Subject: [Scilab-users] GUI start up stalls because of unreachable scilab.io (specified in newsfeed.xml) In-Reply-To: References: Message-ID: <1496667259.3561.8.camel@esi-group.com> Hello Luc, scilab.io is used to retrieve Scilab news ; if the current behavior does not feel your needs please open a bug on bugzilla.scilab.org . Regards, -- Cl?ment Le mardi 30 mai 2017 ? 10:46 +0000, Hermitte Luc (CS SI) a ?crit?: > Hi, > > I'm trying to install scilab on our cluster, but before fine tuning the compilation, I've tried > the binaries you've packaged. > > When I simply run `path/to/scilab`, I end up with: > > 1- java.net.ConnectException: Connection timed out > 2- eventually, **minutes later**, the GUI pops up > > If I execute the cli version, I've no troubles. > > With a strace -f, I see a? > ???[pid 43009] 1496135543.190668 connect(64, {sa_family=AF_INET, sin_port=htons(80), > sin_addr=inet_addr("213.186.33.16")}, 16 > > Looks like a good culprit as I'm behind a firewall. It appears to be the IP address of scilab.io. > I've found an occurrence of it in newsfeed.xml, and indeed, this is the culprit. > > It'll be nice to : > - print a more precise error message like: "Cannot connect to news.scilab.io, see the related > documentation XXX" > - document the issue, how to fix it, the file syntax (for instance, I'd like to clear it, but a > entry is expected, and it cannot be empty) > - not stall for so long for something definitively not critical (from an end-user point of view) > - support proxies with authentication configured with $http(s)_proxy variables. > > > Regards, From Alexis.Cros at promes.cnrs.fr Tue Jun 6 10:25:26 2017 From: Alexis.Cros at promes.cnrs.fr (Alexis Cros) Date: Tue, 6 Jun 2017 10:25:26 +0200 Subject: [Scilab-users] ?==?utf-8?q? Exporting graphic figure and its calcs In-Reply-To: References: <4780-592e8300-13-70064180@127662925> Message-ID: Hi. IrfanView does the job (under Windows)! It's a nice command line based graphic editor. Grand thank you your all your responses. Have a nice week Alexis Le 31/05/2017 ? 18:09, Philipp M?hlmann a ?crit : > Hallo, > I understand you want to export a GUI-surface with all entities > (buttons, etc) as an image. > > For windows machines one can use the dos() command, connected with > irfanView to create screen shots and save them as an image. > > Have a look at the irfanView i_options.txt to see what can be done by > calling irfanView. > > Here an example: > you might exchange the path-variables to your needs > > > h = figure('position', [50 50 400 400], 'backgroundcolor', [0.7 0.9 1], .. > "figure_name", 'WHAT DAY WERE YOU BORN?'); > > T1 = uicontrol(h, 'style', 'text', 'string', 'Type year:', .. > 'position', [20 340 200 50], 'backgroundcolor', [0.7 0.9 1]); > > E1 = uicontrol(h, 'style', 'edit', 'string', '2000', .. > 'position', [150 350 70 30], 'fontsize', 15, 'backgroundcolor', [1 1 1]); > > T2 = uicontrol(h, 'style', 'text', 'string', 'Select month:', .. > 'position', [20 260 200 50], 'backgroundcolor', [0.7 0.9 1]); > > L1 = uicontrol(h, 'style', 'listbox', 'position', [150 130 120 170], .. > 'fontsize', 15, 'backgroundcolor', [1 1 1]); > set(L1, 'string', 'January | February | March | April | May | June | .. > July | August | September | October | November | December'); > set(L1, 'value', [1:12]); > > T3 = uicontrol(h, 'style', 'text', 'string', 'Type date:', .. > 'position', [20 60 200 50], 'backgroundcolor', [0.7 0.9 1]); > > E2 = uicontrol(h, 'style', 'edit', 'string', '15', .. > 'position', [150 70 70 30], 'fontsize', 15, 'backgroundcolor', [1 1 1]); > > function birthday(guientries) > y = eval(get(E1, 'string')) > m = get(L1, 'value') > d = eval(get(E2, 'string')) > num = datenum(y, m, d); > [n, s] = weekday(num); > disp('You were born on '+s) > endfunction > > P1 = uicontrol(h, 'position', [300 70 80 30], 'style', 'pushbutton', .. > 'string', 'Submit', 'callback', 'birthday', 'backgroundcolor', [1 1 0]); > > // access IrfanView and try to make a screen shot of the GUI > IV_PATH = 'C:\Program Files (x86)\IrfanView'; > > OUT_PATH = 'E:\Scilab_Uebungen\031_call_software' > > // capture the GUI crop it, so that figure borders are not visible > anymore and save it as a png file > dos('i_view32.exe /capture=3 /crop=(0,47,0,420,0) > /convert='+OUT_PATH+'\test.png '); > > > Good luck, > Philipp > > > > > > 2017-05-31 14:54 GMT+02:00 Alexis Cros >: > > Hi, > > nice trick. May be interesting to transcode it to other OSs and to > integrate into the Scilab built-in functions. > > Thank you for the tip > > A. > > > > Le 31/05/2017 ? 10:47, Antoine Monmayrant a ?crit : > > Hello again, > > To add more details to my previous answer, here is the > function I hastily hacked together to workaround the bug that > prevent exporting uicontrols: > > > function exportHack() > // Export figure with uicontrols to png using X server & > import (imagemagick) > // Horrible hack that should only work on my machine > (linux 64bits) > // get around bug > http://bugzilla.scilab.org/show_bug.cgi?id=14836 > > https://bugzilla.scilab.org/show_bug.cgi?id=14502 > > h=gcbo; > //current figure name > figname=h.parent.parent.figure_name; > //getting X server id for current window > ret=unix_g("xwininfo -int -name " +""""+figname+""""); > //hackish, depends directly on the syntax of xwininfo outputs > tok=tokens(ret(2),':'); > tok=tokens(tok(3)," ") > winid=tok(1);//X server windows id, as a string > // File save dialog parameters > file_mask=["*.png"]; > boxTitle="Export"; > //If previous filename is present, use it to start in the > corresponding directory > if h.userdata~="" then > dir=h.userdata; > else > dir=pwd(); > end > dir > PathFileName=uiputfile(file_mask,dir,boxTitle); > // LD_LIBRARY_PATH required to get around bug: > http://bugzilla.scilab.org/show_bug.cgi?id=14143 > > > unix_s("LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH > ; import -window "+winid +" "+PathFileName) > // keep savec filename for future reference. > h.userdata=PathFileName; > endfunction > > It only works on a linux system with X server and imagemagick. > It will not run out of the box on your system, but it might > inspire you to find your own workaround. > > Hope it helps, > > Antoine > > > > Le Mardi, Mai 30, 2017 15:58 CEST, Alexis Cros > > a ?crit: > > Hello, > > I have created a graphic figure which contains several > things : > > - uicontrol frames which contain axes > (polarplot, plot2d...) > > - uicontrol texts > > gui_sumup = figure(55, 'Position', [0 0 > my_screen_size(1)-H_BORDERS_THICK > my_screen_size(2)-START_BAR_THICK],.. > // Position x, y and size x, y > 'BackgroundColor', BLUE,.. > 'Figure_name', 'Emissivity compute utility') > > I would like to export the full figure containing all > entities. When I > execute the folowing instruction, only the background > figure is exported : > > xs2png(gui_sumup, computed_folder_path + > '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') > > or > > xs2png(55 , computed_folder_path + '\Graphs\SUM_UP-' + > csv_main_header_edit.String + '.png') > > Is there a way to encapsulate all entities into the > general figure (like > merging?) to export it ? > > Thanks > > Alexis > > _______________________________________________ > 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 > > > > > > -- > In Kanada is' ka' na' da. Sonst w?r' Kanada Jemanda. > > There we have the salad. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From fachbueroniedermaier at bayern-mail.de Tue Jun 6 10:27:50 2017 From: fachbueroniedermaier at bayern-mail.de (=?utf-8?Q?Sachverst=C3=A4ndigenb=C3=BCro_Niedermaier_Holger?=) Date: Tue, 6 Jun 2017 10:27:50 +0200 Subject: [Scilab-users] unable to find my mistake in the function Message-ID: <766BC3BC-DC69-4182-9BCE-5A25999EDD35@bayern-mail.de> Dear all, may anybody be able to explain why I get the error message "invalid index in line 12? by running the following function? function [Wert]=Berechnungsfunktion(von, bis, schrittweite, y0, y2, t0, t2) for n=1:3 t(1)=t0; y(1,n)=y0; schritte=(bis-von)/schrittweite; for i=1:schritte t(i+1)=t(i)+schrittweite; y(i+1,n)=10^(log10(y0*Faktor(n))+log10(y2/y0)/log10(t2/t0)*log10(t(i+1)/t0)) end disp(n) for i=1:schritte Energie(n)=Energie(n)+y(i)*y(i)*schrittweite*10^(-3); end disp(Energie(n)) end //disp("1 Polig",Energie(3),"2 Polig", Energie(1),"3 Polig", Energie(2)) //Wert=[Energie]; endfunction I myself be to blind to find my mistake Thanks a lot Holger -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Yves.Baudais at insa-rennes.fr Tue Jun 6 11:06:08 2017 From: Jean-Yves.Baudais at insa-rennes.fr (Jean-Yves Baudais) Date: Tue, 6 Jun 2017 11:06:08 +0200 Subject: [Scilab-users] unable to find my mistake in the function In-Reply-To: <766BC3BC-DC69-4182-9BCE-5A25999EDD35@bayern-mail.de> References: <766BC3BC-DC69-4182-9BCE-5A25999EDD35@bayern-mail.de> Message-ID: <6534a907-d88a-391e-5ec1-d7d5feed7bd8@insa-rennes.fr> Hallo, Le 06/06/2017 ? 10:27, Sachverst?ndigenb?ro Niedermaier Holger a ?crit : > may anybody be able to explain why I get the error message "invalid index in line 12? by running the following function? > > [...] Energie(n)=Energie(n)+y(i)*y(i)*schrittweite*10^(-3); Maybe because the vector "Energie" is used but not defined so the index is not valid. Jean-Yves From mjmccann at ieee.org Tue Jun 6 14:53:08 2017 From: mjmccann at ieee.org (Michael J McCann) Date: Tue, 6 Jun 2017 12:53:08 +0000 Subject: [Scilab-users] unable to find my mistake in the function In-Reply-To: <766BC3BC-DC69-4182-9BCE-5A25999EDD35@bayern-mail.de> References: <766BC3BC-DC69-4182-9BCE-5A25999EDD35@bayern-mail.de> Message-ID: <62f53abf-a1b6-18c0-dd7c-2ebee9109a65@ieee.org> Looks a bit strange to me : in loop n=1:3, t(1) is defined three times (may be OK) but schritte could be non integer so a bit odd for an index into an array. Is the t() array being grown (size not previously defined)? Mike. On 06/06/2017 08:27, Sachverst?ndigenb?ro Niedermaier Holger wrote: > Dear all, > may anybody be able to explain why I get the error message "invalid > index in line 12? by running the following function? > > function [Wert]=Berechnungsfunktion(von,bis,schrittweite,y0,y2,t0,t2) > for n=1:3 > t(1)=t0; > y(1,n)=y0; > schritte=(bis-von)/schrittweite; > for i=1:schritte > t(i+1)=t(i)+schrittweite; > y(i+1,n)=10^(log10(y0*Faktor(n))+log10(y2/y0)/log10(t2/t0)*log10(t(i+1)/t0)) > end > disp(n) > for i=1:schritte > Energie(n)=Energie(n)+y(i)*y(i)*schrittweite*10^(-3); > end > disp(Energie(n)) > end > //disp("1 Polig",Energie(3),"2 Polig", Energie(1),"3 Polig", Energie(2)) > //Wert=[Energie]; > endfunction > I myself be to blind to find my mistake > Thanks a lot > Holger > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Dr.M.J.McCann,MJMcCann-Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: From cynthia.daniel at unn.edu.ng Tue Jun 6 15:04:57 2017 From: cynthia.daniel at unn.edu.ng (Cynthia Daniel) Date: Tue, 6 Jun 2017 06:04:57 -0700 Subject: [Scilab-users] (no subject) Message-ID: What is scilab? -- C.C. DANIEL-MKPUME -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasper at amsterchem.com Tue Jun 6 15:13:11 2017 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 6 Jun 2017 15:13:11 +0200 Subject: [Scilab-users] (no subject) In-Reply-To: References: Message-ID: <1e85f0db-13ff-e2a5-181c-c0d559dc66d4@amsterchem.com> http://www.scilab.org/scilab/about Best wishes, Jasper. On 6/6/2017 15:04, Cynthia Daniel wrote: > What is scilab? > > -- > C.C. DANIEL-MKPUME > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From adelson.oliveira at gmail.com Tue Jun 6 15:30:49 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Tue, 6 Jun 2017 10:30:49 -0300 Subject: [Scilab-users] Changes in command "abort" Message-ID: In Scilab 6.0.0, the command "abort" seems to have changed its action. Now, "abort" interrupts a script but do not return to level 0, that is, it does not return the prompt to the user to take other actions... Is this a bug? Here RHEL 6.5, Linux. Using the binary downloaded from scilab's home page. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Tue Jun 6 16:12:04 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Tue, 06 Jun 2017 16:12:04 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBDaGFuZ2VzIGluIGNvbW1h?= =?utf-8?q?nd_=22abort=22?= In-Reply-To: Message-ID: <76ff-5936b800-19-6f86ee00@18094049> Hello, Could you provide us with a minimum working example of this behavior? Because on my setups (Win7 or Ubuntu 16.04->17.04), the abort command of scilab 6.0 seems to work like it used to on scilab 5.x. Cheers, Antoine Le Mardi, Juin 06, 2017 15:30 CEST, Adelson Oliveira a ?crit: > In Scilab 6.0.0, the command "abort" seems to have changed its action. Now, > "abort" interrupts a script but do not return to level 0, that is, it does > not return the prompt to the user to take other actions... > > Is this a bug? > > Here RHEL 6.5, Linux. Using the binary downloaded from scilab's home page. > > Thanks From adelson.oliveira at gmail.com Tue Jun 6 16:37:36 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Tue, 6 Jun 2017 11:37:36 -0300 Subject: [Scilab-users] ?==?utf-8?q? Changes in command "abort" In-Reply-To: <76ff-5936b800-19-6f86ee00@18094049> References: <76ff-5936b800-19-6f86ee00@18094049> Message-ID: Looking for a simple example, I realize there must be some more complex reason for the observed behaviour with command "abort". Attempts with very simple scripts did not reproduce the problem. As soon as I have more information I'll post it here (plus examples). Thanks in advance, 2017-06-06 11:12 GMT-03:00 Antoine Monmayrant : > Hello, > > Could you provide us with a minimum working example of this behavior? > Because on my setups (Win7 or Ubuntu 16.04->17.04), the abort command of > scilab 6.0 seems to work like it used to on scilab 5.x. > > Cheers, > > Antoine > > > Le Mardi, Juin 06, 2017 15:30 CEST, Adelson Oliveira < > adelson.oliveira at gmail.com> a ?crit: > > > In Scilab 6.0.0, the command "abort" seems to have changed its action. > Now, > > "abort" interrupts a script but do not return to level 0, that is, it > does > > not return the prompt to the user to take other actions... > > > > Is this a bug? > > > > Here RHEL 6.5, Linux. Using the binary downloaded from scilab's home > page. > > > > Thanks > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Tue Jun 6 17:13:01 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Tue, 6 Jun 2017 23:13:01 +0800 Subject: [Scilab-users] ?==?utf-8?q? Changes in command "abort" In-Reply-To: References: <76ff-5936b800-19-6f86ee00@18094049> Message-ID: <06ee3df5-2ff6-0084-4767-f043dbb506af@tritytech.com> I noticed similar behavior under windows randomly. When it happened, the cursor will stay close together w/o line break and I could not continue using the session. I will try to see whether I could reproduce this behavior. CL On 6/6/2017 10:37 PM, Adelson Oliveira wrote: > Looking for a simple example, I realize there must be some more > complex reason for the observed behaviour with command "abort". > Attempts with very simple scripts did not reproduce the problem. As > soon as I have more information I'll post it here (plus examples). > > Thanks in advance, > > > > 2017-06-06 11:12 GMT-03:00 Antoine Monmayrant >: > > Hello, > > Could you provide us with a minimum working example of this behavior? > Because on my setups (Win7 or Ubuntu 16.04->17.04), the abort > command of scilab 6.0 seems to work like it used to on scilab 5.x. > > Cheers, > > Antoine > > > Le Mardi, Juin 06, 2017 15:30 CEST, Adelson Oliveira > > a > ?crit: > > > In Scilab 6.0.0, the command "abort" seems to have changed its > action. Now, > > "abort" interrupts a script but do not return to level 0, that > is, it does > > not return the prompt to the user to take other actions... > > > > Is this a bug? > > > > Here RHEL 6.5, Linux. Using the binary downloaded from scilab's > home page. > > > > Thanks > > _______________________________________________ > 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 erhard.glueck.austria at gmail.com Tue Jun 6 17:41:59 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 6 Jun 2017 08:41:59 -0700 (MST) Subject: [Scilab-users] VIM syntax script for Scilab 6 ? In-Reply-To: <2296796e-03e4-c0cf-13c3-7868f1b8356e@free.fr> References: <1494845568327-4036390.post@n3.nabble.com> <1496421111226-4036524.post@n3.nabble.com> <2296796e-03e4-c0cf-13c3-7868f1b8356e@free.fr> Message-ID: <1496763719508-4036547.post@n3.nabble.com> Samuel GOUGEON wrote > Le 02/06/2017 ? 18:31, Erhy a ?crit : >> some adjustments in scilab.vim from me: >> scilab.vim >> <http://mailinglists.scilab.org/file/n4036524/scilab.vim> > Great. Your post on FileExchange in the /Editors/ category will be > certainly welcome :) > https://fileexchange.scilab.org/categories/editor_styles Sorry I'm not able to login or create a new account in https://fileexchange.scilab.org/newaccount Erhy -- View this message in context: http://mailinglists.scilab.org/VIM-syntax-script-for-Scilab-6-tp4036390p4036547.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue Jun 6 20:59:18 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Jun 2017 20:59:18 +0200 Subject: [Scilab-users] VIM syntax script for Scilab 6 ? In-Reply-To: <1496763719508-4036547.post@n3.nabble.com> References: <1494845568327-4036390.post@n3.nabble.com> <1496421111226-4036524.post@n3.nabble.com> <2296796e-03e4-c0cf-13c3-7868f1b8356e@free.fr> <1496763719508-4036547.post@n3.nabble.com> Message-ID: <7889c824-edb1-33a2-3582-8a6903af7286@free.fr> Le 06/06/2017 ? 17:41, Erhy a ?crit : > Samuel GOUGEON wrote >> Le 02/06/2017 ? 18:31, Erhy a ?crit : >>> some adjustments in scilab.vim from me: >>> scilab.vim >>> <http://mailinglists.scilab.org/file/n4036524/scilab.vim> >> Great. Your post on FileExchange in the /Editors/ category will be >> certainly welcome :) >> https://fileexchange.scilab.org/categories/editor_styles > Sorry I'm not able to login or create a new account in > https://fileexchange.scilab.org/newaccount On my side, login to my existing FE account works. Could anyone else try to create an FileExchange account to confirm? If it is not possible to create any account, this service should be moved out of the S/E-ESI scope/management. There are too recurrent unsolved blocking issues with it. Thanks Samuel From sgougeon at free.fr Tue Jun 6 22:25:17 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Jun 2017 22:25:17 +0200 Subject: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count In-Reply-To: <5934A1E5.4030107@hslmg.de> References: <5934A1E5.4030107@hslmg.de> Message-ID: Hello Jens, Le 05/06/2017 ? 02:12, Jens Simon Strom a ?crit : > Hi, Ex. 0 and 2 are o.k.. But what I want is Ex. 1. What is wrong > there? //Ex. 0 doc = > xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml"); > // Count the nodes with name equal to "note" xp0 = xmlXPath(doc, > "count(//note)") xmlDelete(doc) //Ex. 1 t=[' encoding=""UTF-8"" standalone=""no""?>'+.. ' xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" > xmlns=""http://www.topografix.com/GPX/1/1"" creator=""WTracks"" > version=""1.1"" xsi:schemaLocation=""http://www.topografix.com/GPX/1/1 > http://www.topografix.com/GPX/1/1/gpx.xsd"">'+.. ' lon=""8.0"">'+.. 'City (Small)'+.. ''+.. ''] > doc = xmlReadStr(t); xmlDump(doc) xp1 = xmlXPath(doc, "count(//wpt)") > xmlDelete(doc) Apparently, the xmlns attribute (alone) is not supported out of the initial header. When we remove it, tags are counted as expected: t=[''+.. ''+.. ''+.. 'City (Small)'+.. ''+.. '']; doc = xmlReadStr(t); xp1 = xmlXPath(doc, "count(//wpt)") xmlDelete(doc); --> xp1 = xmlXPath(doc, "count(//wpt)") xp1 = 1. Since this attribute looks to be legal here (https://www.w3schools.com/xml/xml_namespaces.asp), the wrong result is likely a bug: http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab software&component=XML Best regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From fachbueroniedermaier at bayern-mail.de Wed Jun 7 08:03:36 2017 From: fachbueroniedermaier at bayern-mail.de (=?utf-8?Q?Sachverst=C3=A4ndigenb=C3=BCro_Niedermaier_Holger?=) Date: Wed, 7 Jun 2017 08:03:36 +0200 Subject: [Scilab-users] unable to find my mistake in the function In-Reply-To: <62f53abf-a1b6-18c0-dd7c-2ebee9109a65@ieee.org> References: <766BC3BC-DC69-4182-9BCE-5A25999EDD35@bayern-mail.de> <62f53abf-a1b6-18c0-dd7c-2ebee9109a65@ieee.org> Message-ID: Hello Mike, thanks and yes you are right. First it makes no sense to define t(1) three times and schritte could be non integer in general. Because schrittweite is selected as 1/n times of (bis-von) it causes no problem. But it?s not really good programming, I agree. Despite from that I can not realize why y(i+1) and t(i+n) can be used but Energie(n) causes an error? Non of them defined previously. I?m obviously far from being an expert (to be honest I?m a newcomer using such powerful tool), so please accept my excuse if the question seems to be ?stupide? to you. t() grows depending on schritte but the size is not previously defined. Holger > Am 06.06.2017 um 14:53 schrieb Michael J McCann : > > Looks a bit strange to me : in loop n=1:3, t(1) is defined three times (may be OK) > but schritte could be non integer so a bit odd for an index into an array. > Is the t() array being grown (size not previously defined)? > Mike. > > On 06/06/2017 08:27, Sachverst?ndigenb?ro Niedermaier Holger wrote: >> Dear all, >> may anybody be able to explain why I get the error message "invalid index in line 12? by running the following function? >> >> function [Wert]=Berechnungsfunktion(von, bis, schrittweite, y0, y2, t0, t2) >> for n=1:3 >> t(1)=t0; >> y(1,n)=y0; >> schritte=(bis-von)/schrittweite; >> for i=1:schritte >> t(i+1)=t(i)+schrittweite; >> y(i+1,n)=10^(log10(y0*Faktor(n))+log10(y2/y0)/log10(t2/t0)*log10(t(i+1)/t0)) >> end >> disp(n) >> for i=1:schritte >> Energie(n)=Energie(n)+y(i)*y(i)*schrittweite*10^(-3); >> end >> disp(Energie(n)) >> end >> //disp("1 Polig",Energie(3),"2 Polig", Energie(1),"3 Polig", Energie(2)) >> //Wert=[Energie]; >> endfunction >> I myself be to blind to find my mistake >> Thanks a lot >> Holger >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Dr.M.J.McCann,MJMcCann-Consulting > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Wed Jun 7 09:49:10 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Wed, 07 Jun 2017 09:49:10 +0200 Subject: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count In-Reply-To: References: <5934A1E5.4030107@hslmg.de> Message-ID: <5937AFF6.5050109@hslmg.de> Hallo Samuel, So I better count with something like this: wpt_pos=grep(XmlDump,' Hello Jens, > > Le 05/06/2017 ? 02:12, Jens Simon Strom a ?crit : >> Hi, >> Ex. 0 and 2 are o.k.. But what I want is Ex. 1. What is wrong there? >> >> >> //Ex. 0 >> doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml"); >> // Count the nodes with name equal to"note" >> xp0 = xmlXPath(doc, "count(//note)") >> xmlDelete(doc) >> >> //Ex. 1 >> t=[''+.. >> ''+.. >> ''+.. >> 'City (Small)'+.. >> ''+.. >> ''] >> doc = xmlReadStr(t); >> xmlDump(doc) >> xp1 = xmlXPath(doc, "count(//wpt)") >> xmlDelete(doc) > > Apparently, the xmlns attribute (alone) is not supported out of the > initial header. > When we remove it, tags are counted as expected: > > t=[''+.. > ' creator=""WTracks"" version=""1.1"" '+.. > ' xsi:schemaLocation=""http://www.topografix.com/GPX/1/1 > http://www.topografix.com/GPX/1/1/gpx.xsd"">'+.. > ''+.. > 'City (Small)'+.. > ''+.. '']; > doc = xmlReadStr(t); > xp1 = xmlXPath(doc, "count(//wpt)") > xmlDelete(doc); > > --> xp1 = xmlXPath(doc, "count(//wpt)") > xp1 = > 1. > > Since this attribute looks to be legal here > (https://www.w3schools.com/xml/xml_namespaces.asp), the wrong result > is likely a bug: > http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab > software&component=XML > > Best regards > Samuel Gougeon > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonas.vieira.de.souza at gmail.com Wed Jun 7 18:14:15 2017 From: jonas.vieira.de.souza at gmail.com (Jonas) Date: Wed, 7 Jun 2017 13:14:15 -0300 Subject: [Scilab-users] Problem to create file .Jar, is getting empty Message-ID: I have a doubt. How do you create .jar used in help. When I have create, the .jar file is getting empty I do this: [1]Help_from_sci, [2]Xmltojar // first generate the .xml files Help_from_sci (dirname, helpdir); // then generate the .jar file My_english_help_dir = my_module_path + '/ help / en_US'; My_english_help_title = 'toolbox_test'; Xmltojar (my_english_help_dir, my_english_help_title, 'en_US'); Add_help_chapter (my_english_help_title, my_module_path + "/ jar"); Del_help_chapter (my_english_help_title); Jonas Vieira de Souza ** **Graduating in electronic engineering* jonas.vieira.de.souza at gmail.com +55(48)9.9944-3117 Sent with Mailtrack -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Jun 7 23:04:08 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 7 Jun 2017 23:04:08 +0200 Subject: [Scilab-users] Problem to create file .Jar, is getting empty In-Reply-To: References: Message-ID: <79c55076-9efa-e546-fcbf-ff762f801344@free.fr> Le 07/06/2017 ? 18:14, Jonas a ?crit : > I have a doubt. > How do you create .jar used in help. > > When I have create, the .jar file is getting empty > > I do this: [1]Help_from_sci, [2]Xmltojar > > // first generate the .xml files > Help_from_sci (dirname, helpdir); Unless you have renamed functions, this does not work. The Scilab function is help_from_sci(), without capital. > > // then generate the .jar file > My_english_help_dir = my_module_path + '/ help / en_US'; > My_english_help_title = 'toolbox_test'; > > Xmltojar (my_english_help_dir, my_english_help_title, 'en_US'); Same remark. Independently of loading (successfully or not) the chapter, you are reporting that the .jar file is created but empty: when you open it, there is no file in it. Is that right ? If so: a common reason is that a compilation error occurred when building the help. If you are running Scilab on MSWindows, compilation errors are sent to an external terminal named the "consolebox", instead to the Scilab console. To get them in order to debug your pages, you may type: --> consolebox on and then see and take into account messages displayed in it. HTH Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Jun 7 23:09:26 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 7 Jun 2017 23:09:26 +0200 Subject: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count In-Reply-To: <5937AFF6.5050109@hslmg.de> References: <5934A1E5.4030107@hslmg.de> <5937AFF6.5050109@hslmg.de> Message-ID: <31480103-2246-26ce-eedf-079bce77113d@free.fr> Hello Jens, Le 07/06/2017 ? 09:49, Jens Simon Strom a ?crit : > Hallo Samuel, > So I better count with something like this: > wpt_pos=grep(XmlDump,' ' From cynthia.daniel at unn.edu.ng Tue Jun 6 14:10:45 2017 From: cynthia.daniel at unn.edu.ng (Cynthia Daniel) Date: Tue, 6 Jun 2017 05:10:45 -0700 Subject: [Scilab-users] (no subject) Message-ID: What is scilab? -- C.C. DANIEL-MKPUME -------------- next part -------------- An HTML attachment was scrubbed... URL: From delaleau at enib.fr Wed Jun 7 07:55:02 2017 From: delaleau at enib.fr (Emmanuel Delaleau) Date: Wed, 7 Jun 2017 07:55:02 +0200 Subject: [Scilab-users] Closing popup windwos In-Reply-To: <1724365175.8422295.1496340335397.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1724365175.8422295.1496340335397.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Thank you Samuel. I also would know if there is a possibility to close all those windows in the mean time as it is possible with "xdel(winsid())" for graphic windows, that is without knowing the explicit reference to each window individually. Best regards. Emmanuel Le 01/06/2017 ? 20:05, sgougeon at free.fr a ?crit : > Hello, > >> Hi every body, >> >> I would like to know if there exist a function to close dialog windows >> (like messagebox, progressionbar, waitbar...), as 'xdel' does for >> regular graphic window(s). > winH = waitbar(37,"Can it be closed before completion?"); > close(winH); > > id = progressionbar("Work in progress..."); > close(id); > > messagebox(): AFAIK, it's only interactive: http://bugzilla.scilab.org/7157 > > HTH > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From nigamakashkumar at gmail.com Thu Jun 8 13:13:38 2017 From: nigamakashkumar at gmail.com (nigamakashkumar) Date: Thu, 8 Jun 2017 04:13:38 -0700 (MST) Subject: [Scilab-users] Element Wise multipliication in Scilab Message-ID: <1496920418920-4036562.post@n3.nabble.com> During Image Processing, I have an extracted small matrix Mat = 152 149 151 159 151 147 158 152 152 and a simple flipped sobel mask Gy = - 1. - 2. - 1. 0. 0. 0. 1. 2. 1. To calculate the gradient in y-direction, I multiply elementwise (and would sum later if the values were right) Gy.*Mat, which funnily gives 104 214 105 0 0 0 158 48 152 Why aren't the first row values negative (They even appear morphed somehow). Scilab help shows that .* may calculate the kronecker product of the two matrices. How do I calculate the real element wise multiplication? Kindly help. -- View this message in context: http://mailinglists.scilab.org/Element-Wise-multipliication-in-Scilab-tp4036562.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Jun 8 14:19:55 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 8 Jun 2017 14:19:55 +0200 (CEST) Subject: [Scilab-users] Element Wise multipliication in Scilab In-Reply-To: <1496920418920-4036562.post@n3.nabble.com> Message-ID: <1986539349.3042383.1496924395103.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >----- Mail original ----- > > During Image Processing, I have an extracted small matrix > > Mat = > > 152 149 151 > 159 151 147 > 158 152 152 > > and a simple flipped sobel mask > > Gy = > > - 1. - 2. - 1. > 0. 0. 0. > 1. 2. 1. > > To calculate the gradient in y-direction, I multiply elementwise (and would > sum later if the values were right) > > Gy.*Mat, which funnily gives > > 104 214 105 > 0 0 0 > 158 48 152 > > Why aren't the first row values negative (They even appear morphed somehow). > Because a) numbers in Mat are encoded as unsigned integers (they are displayed without decimal dot), + b)in Scilab, integers win over floats. + c) in Scilab, overflowing integers are wrapped, not ceiled nor floored. You will get want you likely expect with Gy .* double(Mat) >Scilab help shows that .* may calculate the kronecker product of the two >matrices. Could you give us a pointer where this is written? The kronecker operator is .*. >How do I calculate the real element wise multiplication? With .*, after casting Mat to decimal encoding. HTH Samuel Gougeon From sgougeon at free.fr Thu Jun 8 19:51:56 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 8 Jun 2017 19:51:56 +0200 Subject: [Scilab-users] Replacing predef() with an actual varprot(): a top-5 priority for Scilab 6.1 <= At last, protecting user variables one by one Message-ID: Hello, Scilab 6.0 is released. With respect to previous major releases, the storage and management of variables have been completely changed. This was one of the major purposes for this release. Yet, after 30 years of development of this high level software, we are still unable to protect any user variable against clearing, and there are no news on this side. There are many oitlying developments, whereas this central feature is still unavailable. The pseudo function predef() is still here, alone, never ever actually usable. Indeed, predef() is unable to protect variables one by one, at any moment after the session startup. As its name states it, predef() has been designed exclusively to protect *predef*ined variables %i, %pi, etc during the startup process. It is a startup *internal*, and we could wonder why it has been documented. One of the most disturbing and buggy consequences of this missing feature is that it is still impossible to protect a library that has been loaded during the session, i.e. not autoloaded at startup. Any /clear/ instruction -- so loved by many former Matlabers in their scripts -- kills all such libraries. The need for a true customizable function to protect/unprotect variables was reported as soon as 2004 -- and likely even before --, so 13 years ago. For the only bugzilla reports, please see for instance: http://bugzilla.scilab.org/686 http://bugzilla.scilab.org/8634 http://bugzilla.scilab.org/10988 Scilab has still some central weaknesses like this one. IMO, implementing varprot() should be a top priority. Don't you need this feature as well? Best regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Thu Jun 8 21:08:52 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Thu, 08 Jun 2017 21:08:52 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBSZXBsYWNpbmcgcHJlZGVm?= =?utf-8?q?=28=29_with_an_actual_varprot=28=29=3A_a_top-5_priority_for_Sci?= =?utf-8?b?bGFiIDYuMT89PT91dGYtOD9xPyA8PSBBdCBsYXN0LCBwcm90ZWN0aW5nIHVz?= =?utf-8?q?er_variables_one_by_one?= In-Reply-To: Message-ID: <4637-5939a100-d-65511900@213781566> Le Jeudi, Juin 08, 2017 19:51 CEST, Samuel Gougeon a ?crit: > Hello, > > Scilab 6.0 is released. With respect to previous major releases, the > storage and management of variables have been completely changed. This > was one of the major purposes for this release. > > Yet, after 30 years of development of this high level software, we are > still unable to protect any user variable against clearing, and there > are no news on this side. There are many oitlying developments, whereas > this central feature is still unavailable. The pseudo function predef() > is still here, alone, never ever actually usable. > > Indeed, predef() is unable to protect variables one by one, at any > moment after the session startup. As its name states it, predef() has > been designed exclusively to protect *predef*ined variables %i, %pi, etc > during the startup process. It is a startup *internal*, and we could > wonder why it has been documented. > > One of the most disturbing and buggy consequences of this missing > feature is that it is still impossible to protect a library that has > been loaded during the session, i.e. not autoloaded at startup. Any > /clear/ instruction -- so loved by many former Matlabers in their > scripts -- kills all such libraries. > > The need for a true customizable function to protect/unprotect variables > was reported as soon as 2004 -- and likely even before --, so 13 years > ago. For the only bugzilla reports, please see for instance: > > http://bugzilla.scilab.org/686 > http://bugzilla.scilab.org/8634 > http://bugzilla.scilab.org/10988 > > Scilab has still some central weaknesses like this one. > IMO, implementing varprot() should be a top priority. > > Don't you need this feature as well? Oh, yes I do, like many of my colleagues! Antoine > > Best regards > > Samuel Gougeon > From j.s.strom at hslmg.de Thu Jun 8 22:38:19 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Thu, 08 Jun 2017 22:38:19 +0200 Subject: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count In-Reply-To: <31480103-2246-26ce-eedf-079bce77113d@free.fr> References: <5934A1E5.4030107@hslmg.de> <5937AFF6.5050109@hslmg.de> <31480103-2246-26ce-eedf-079bce77113d@free.fr> Message-ID: <5939B5BB.7060800@hslmg.de> Hallo Samuel, I reported the case as Bug 15179 "xmlXPath failing with count". >>May i suggest adding a space to ' ' ' be even better? Regards Jens --------------------------------------------------------------------------------------------------- Am 07.06.2017 23:09, schrieb Samuel Gougeon: > Hello Jens, > > Le 07/06/2017 ? 09:49, Jens Simon Strom a ?crit : >> Hallo Samuel, >> So I better count with something like this: >> wpt_pos=grep(XmlDump,'> wpt_n=length(wpt_pos); >> Thanks again, Jens > > This is a useful workaround. > May i suggest adding a space to ' ' > Reporting the bug would be actually the best way to thanks, i think. > > Best regards > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Jun 9 09:16:31 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 9 Jun 2017 09:16:31 +0200 Subject: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count In-Reply-To: <5939B5BB.7060800@hslmg.de> References: <5934A1E5.4030107@hslmg.de> <5937AFF6.5050109@hslmg.de> <31480103-2246-26ce-eedf-079bce77113d@free.fr> <5939B5BB.7060800@hslmg.de> Message-ID: <3c363b75-34cc-fafe-a586-acb805a6fa57@free.fr> Hello Jens, Le 08/06/2017 ? 22:38, Jens Simon Strom a ?crit : > Hallo Samuel, > I reported the case as Bug 15179 "xmlXPath failing with count". Great > > >>May i suggest adding a space to ' ' ' ' be even better? You have caught the reason. "" would be even better/clearer. Best regards Samuel From sgougeon at free.fr Mon Jun 12 14:57:32 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 12 Jun 2017 14:57:32 +0200 Subject: [Scilab-users] "removed": a new package gathering help pages of > 120 removed functions Message-ID: Dear co-scilabers, You are updating some old Scilab codes, and you are wondering what a function met in the code and no longer available in Scilab really did? You don't want to download and install N old Scilab releases before finding the right one where the function was still documented? Then, the new ATOMS package named /*removed*/ *//*should answer to your needs: https://atoms.scilab.org/toolboxes/removed In this package, the pages describing all 126 known public Scilab functions removed from Scilab 4.1.2 to Scilab 6.0 are gathered and sorted. The /removed /package is a good complement to the new /*slint *()/ function that can detect deprecated entries, and to the /uman/ package. The forthcoming version of */uman/* has been upgraded in order to apply as well on /removed/ pages. Hope this may help other users, Best regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigamakashkumar at gmail.com Wed Jun 14 07:49:51 2017 From: nigamakashkumar at gmail.com (nigamakashkumar) Date: Tue, 13 Jun 2017 22:49:51 -0700 (MST) Subject: [Scilab-users] Installing SIVP and IPD upon Scilab Installation Message-ID: <1497419391909-4036579.post@n3.nabble.com> Hi folks, I am currently working on application development through labview, which uses the Labview to Scilab Gateway (1.31) to run scilab scripts. Also, my scilab scripts require the toolboxes SIVP (0.5.3) and IPD(8.2) for Image Processing. I intend to make an installer for my application that installs my program, labview runtime engine and scilab (5.3.3). These part may be done automatically with the user just clicking next (for my program, runtime engine and scilab) which would be fairly obvious for them. However, I want scilab to install SIVP and IPD too. I would need atoms for that, since I use the command atomsLoad in my scilab script for labview (Since scilab GUI is not open in my application). This would require the user to open up scilab and install SIVP and IPD manually either through GUI or atomsInstall command. I was wondering whether we can save the user from this (and me from writing detailed instructions and constantly answering queries). Can SIVP and IPD be installed by calling scilab backend just after installation and installing the toolboxes. Or better still, by showing the user we are installing something but doing it programmatically. The only way I can think of that is writing a C-code to first execute Scilab installer, then call scilab engine and install both the toolboxes using atomsInstall, thereafter converting this whole process into an executable. However, I know C very less and it may take a lot of time for me. Is there any simpler method?? -- View this message in context: http://mailinglists.scilab.org/Installing-SIVP-and-IPD-upon-Scilab-Installation-tp4036579.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From richard.llom at gmail.com Sun Jun 18 23:10:01 2017 From: richard.llom at gmail.com (Richard llom) Date: Sun, 18 Jun 2017 14:10:01 -0700 (MST) Subject: [Scilab-users] Advice needed on file parsing Message-ID: <1497820201592-4036587.post@n3.nabble.com> Hello fellow scilab-users, I'm writing a script to read and process files, which are constructed as follows: PCB: 007 ASM: 000 LOT: 00000 FW: 1477971088 CH1: AMPS 10A CH2: VOLT 60V SMPL: 0064 0125Hz DESC: 12V CU LOG UTC TIME SEC ,CH1 AMPS DC ,CH2 VOLT DC 1497812372.910, 8.609146E-03, 1.210613E001 1497812373.895, 1.577809E-01, 1.207540E001 1497812374.578, 1.010268E000, 1.193087E001 ... [snip] To process this file further, I need: 1) the first eight lines stored in pairs, e.g. info(1,1) should yield "PCB" and info(1,2) should yield "007" (string is ok) 2) line #9 (header), should be available as header(1)="UTC TIME SEC", etc... 3) line 10+ these should be scanned in as a matrix. I already tried csvread and msscanf (?), however with no luck so far... So if someone could just point me to the apropiates function for each task. I hopefully can take it then from there. Thanks & cheers richard -- View this message in context: http://mailinglists.scilab.org/Advice-needed-on-file-parsing-tp4036587.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From cfuttrup at gmail.com Mon Jun 19 06:42:53 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 19 Jun 2017 06:42:53 +0200 Subject: [Scilab-users] Advice needed on file parsing In-Reply-To: <1497820201592-4036587.post@n3.nabble.com> References: <1497820201592-4036587.post@n3.nabble.com> Message-ID: <0bde6965-4d0a-137c-6c29-3e3edf3b621d@gmail.com> Hi Richard You read the file, first the header and then the matrix, like this: rtf=mopen(fname,"r"); headr=mgetl(rtf,9); // reads 9-line header coords=mfscanf(-1,rtf,"%f %f %f\n"); mclose(fname); Best regards, Claus On 18-06-2017 23:10, Richard llom wrote: > Hello fellow scilab-users, > I'm writing a script to read and process files, which are constructed as > follows: > > PCB: 007 > ASM: 000 > LOT: 00000 > FW: 1477971088 > CH1: AMPS 10A > CH2: VOLT 60V > SMPL: 0064 0125Hz > DESC: 12V CU LOG > UTC TIME SEC ,CH1 AMPS DC ,CH2 VOLT DC > 1497812372.910, 8.609146E-03, 1.210613E001 > 1497812373.895, 1.577809E-01, 1.207540E001 > 1497812374.578, 1.010268E000, 1.193087E001 > ... [snip] > > > To process this file further, I need: > 1) > the first eight lines stored in pairs, e.g. > info(1,1) should yield "PCB" and info(1,2) should yield "007" (string is ok) > > 2) > line #9 (header), should be available as header(1)="UTC TIME SEC", etc... > > 3) > line 10+ > these should be scanned in as a matrix. > > > I already tried csvread and msscanf (?), however with no luck so far... > > > So if someone could just point me to the apropiates function for each task. > I hopefully can take it then from there. > Thanks & cheers > richard > > > > -- > View this message in context: http://mailinglists.scilab.org/Advice-needed-on-file-parsing-tp4036587.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Mon Jun 19 08:23:51 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Mon, 19 Jun 2017 08:23:51 +0200 Subject: [Scilab-users] Advice needed on file parsing In-Reply-To: <1497820201592-4036587.post@n3.nabble.com> References: <1497820201592-4036587.post@n3.nabble.com> Message-ID: Hi I cannot say if the following is the best way to proceed, but when the number of columns differs, I always have a look to such functions in order to get the data: mopen/mgetl/grep/strindex and so on ... it need a bit of work. The previous method work when the file size is not huge because mgetl loads in memory all the file first - in case of huge files (I mean with millions of lines), I need to adopt another strategy (bash file using awk - grep - seb and so on tool) in order to have a text/matrix file in a right format ... nevertheless I do not get strings so the previous method may not work. Just a feedback Paul Le 2017-06-18 23:10, Richard llom a ?crit : > Hello fellow scilab-users, > I'm writing a script to read and process files, which are constructed as > follows: > > PCB: 007 > ASM: 000 > LOT: 00000 > FW: 1477971088 > CH1: AMPS 10A > CH2: VOLT 60V > SMPL: 0064 0125Hz > DESC: 12V CU LOG > UTC TIME SEC ,CH1 AMPS DC ,CH2 VOLT DC > 1497812372.910, 8.609146E-03, 1.210613E001 > 1497812373.895, 1.577809E-01, 1.207540E001 > 1497812374.578, 1.010268E000, 1.193087E001 > ... [snip] > > > To process this file further, I need: > 1) > the first eight lines stored in pairs, e.g. > info(1,1) should yield "PCB" and info(1,2) should yield "007" (string is ok) > > 2) > line #9 (header), should be available as header(1)="UTC TIME SEC", etc... > > 3) > line 10+ > these should be scanned in as a matrix. > > I already tried csvread and msscanf (?), however with no luck so far... > > So if someone could just point me to the apropiates function for each task. > I hopefully can take it then from there. > Thanks & cheers > richard > > -- > View this message in context: > http://mailinglists.scilab.org/Advice-needed-on-file-parsing-tp4036587.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Alexis.Cros at promes.cnrs.fr Mon Jun 19 09:48:27 2017 From: Alexis.Cros at promes.cnrs.fr (Alexis Cros) Date: Mon, 19 Jun 2017 09:48:27 +0200 Subject: [Scilab-users] Advice needed on file parsing In-Reply-To: References: <1497820201592-4036587.post@n3.nabble.com> Message-ID: Hello, you may use csvTextScan function where you can pass the CSV separator as parameter. You can reach what you want calling ':' and ',' as separator parameter. As it was said, all lines must have the same number of columns and all columns must have the same number of lines. It may look like somethings like this : my_file = mgetl('your_file_path') first_eight_lines = csvTextScan(my_file(1:8), ':') header = csvTextScan(my_file(9), ',') // ',' is set by default data = csvTextScan(my_file(10:$), ',') Cheers, Alexis Le 19/06/2017 ? 08:23, paul.carrico at free.fr a ?crit : > Hi > > I cannot say if the following is the best way to proceed, but when the > number of columns differs, I always have a look to such functions in > order to get the data: mopen/mgetl/grep/strindex and so on ... it need > a bit of work. > > The previous method work when the file size is not huge because mgetl > loads in memory all the file first - in case of huge files (I mean > with millions of lines), I need to adopt another strategy (bash file > using awk - grep - seb and so on tool) in order to have a text/matrix > file in a right format ... nevertheless I do not get strings so the > previous method may not work. > > Just a feedback > Paul > Le 2017-06-18 23:10, Richard llom a ?crit : >> Hello fellow scilab-users, >> I'm writing a script to read and process files, which are constructed as >> follows: >> >> PCB: 007 >> ASM: 000 >> LOT: 00000 >> FW: 1477971088 >> CH1: AMPS 10A >> CH2: VOLT 60V >> SMPL: 0064 0125Hz >> DESC: 12V CU LOG >> UTC TIME SEC ,CH1 AMPS DC ,CH2 VOLT DC >> 1497812372.910, 8.609146E-03, 1.210613E001 >> 1497812373.895, 1.577809E-01, 1.207540E001 >> 1497812374.578, 1.010268E000, 1.193087E001 >> ... [snip] >> >> >> To process this file further, I need: >> 1) >> the first eight lines stored in pairs, e.g. >> info(1,1) should yield "PCB" and info(1,2) should yield "007" (string >> is ok) >> >> 2) >> line #9 (header), should be available as header(1)="UTC TIME SEC", etc... >> >> 3) >> line 10+ >> these should be scanned in as a matrix. >> >> >> I already tried csvread and msscanf (?), however with no luck so far... >> >> >> So if someone could just point me to the apropiates function for each >> task. >> I hopefully can take it then from there. >> Thanks & cheers >> richard >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/Advice-needed-on-file-parsing-tp4036587.html >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Jun 19 10:47:03 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 19 Jun 2017 10:47:03 +0200 Subject: [Scilab-users] Advice needed on file parsing In-Reply-To: <1497820201592-4036587.post@n3.nabble.com> References: <1497820201592-4036587.post@n3.nabble.com> Message-ID: Helle Richard, Le 18/06/2017 ? 23:10, Richard llom a ?crit : > Hello fellow scilab-users, > I'm writing a script to read and process files, which are constructed as > follows: > > PCB: 007 > ASM: 000 > LOT: 00000 > FW: 1477971088 > CH1: AMPS 10A > CH2: VOLT 60V > SMPL: 0064 0125Hz > DESC: 12V CU LOG > UTC TIME SEC ,CH1 AMPS DC ,CH2 VOLT DC > 1497812372.910, 8.609146E-03, 1.210613E001 > 1497812373.895, 1.577809E-01, 1.207540E001 > 1497812374.578, 1.010268E000, 1.193087E001 > ... [snip] > > > To process this file further, I need: > 1) > the first eight lines stored in pairs, e.g. > info(1,1) should yield "PCB" and info(1,2) should yield "007" (string is ok) > > 2) > line #9 (header), should be available as header(1)="UTC TIME SEC", etc... > > 3) > line 10+ > these should be scanned in as a matrix. > > > I already tried csvread and msscanf (?), however with no luck so far... You may use the following: [M, comments] = csvRead("data.txt", ",", ".", "double",[], "/^[^0-9\-]/"); M header = tokens(comments($), ",")' params = csvTextScan(comments(1:$-1), ":", [], "string") -->[M, comments] = csvRead("data.txt", ",", ".", "double",[], "/^[^0-9\-]/"); M M = 1.498D+09 0.0086091 12.10613 1.498D+09 0.1577809 12.0754 1.498D+09 1.010268 11.93087 -->header = tokens(comments($), ",")' header = !UTC TIME SEC CH1 AMPS DC CH2 VOLT DC ! -->params = csvTextScan(comments(1:$-1), ":", [], "string") params = !PCB 007 ! !ASM 000 ! !LOT 00000 ! !FW 1477971088 ! !CH1 AMPS 10A ! !CH2 VOLT 60V ! !SMPL 0064 0125Hz ! !DESC 12V CU LOG ! HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Mon Jun 19 13:23:14 2017 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Mon, 19 Jun 2017 08:23:14 -0300 Subject: [Scilab-users] Advice needed on file parsing In-Reply-To: References: , <1497820201592-4036587.post@n3.nabble.com> Message-ID: An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Mon Jun 19 20:20:41 2017 From: richard.llom at gmail.com (Richard llom) Date: Mon, 19 Jun 2017 11:20:41 -0700 (MST) Subject: [Scilab-users] Advice needed on file parsing In-Reply-To: <1497820201592-4036587.post@n3.nabble.com> References: <1497820201592-4036587.post@n3.nabble.com> Message-ID: <1497896441031-4036608.post@n3.nabble.com> Hello All, thank you all for the quick and numerous replies! I went with Samuels version. However while trying to understand the syntax and looking at the help: https://help.scilab.org/docs/6.0.0/en_US/csvRead.html I stumbled over: regexpcomments a string: a regexp to remove lines which match. (default: []) which I found misleading / incomplete description. I suggest instead (or similar) a string: a regexp to match lines to 'comments' or to be ignored if 'comments' is omitted. (default: []) cheers richard -- View this message in context: http://mailinglists.scilab.org/Advice-needed-on-file-parsing-tp4036587p4036608.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From nigamakashkumar at gmail.com Tue Jun 20 07:46:20 2017 From: nigamakashkumar at gmail.com (nigamakashkumar) Date: Mon, 19 Jun 2017 22:46:20 -0700 (MST) Subject: [Scilab-users] Element Wise multipliication in Scilab In-Reply-To: <1986539349.3042383.1496924395103.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1496920418920-4036562.post@n3.nabble.com> <1986539349.3042383.1496924395103.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1497937580193-4036609.post@n3.nabble.com> Thanks. The gradient works fine now. Yes the kronecker multiplication is .*. . Apologies for my mistake. -- View this message in context: http://mailinglists.scilab.org/Element-Wise-multipliication-in-Scilab-tp4036562p4036609.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rouxph.22 at gmail.com Wed Jun 21 23:36:18 2017 From: rouxph.22 at gmail.com (philippe) Date: Wed, 21 Jun 2017 23:36:18 +0200 Subject: [Scilab-users] scilab -> Segmentation fault Message-ID: Hi, since today, I can't run scilab on ubuntu : OS: Ubuntu 16.04 xenial Kernel: x86_64 Linux 4.4.0-81-generic CPU: Intel Core i3-4000M CPU @ 2.4GHz RAM: 1681MB / 7896MB Launching scilab from the terminal I et a "seg fault" error message: roux at jenny-a-03:~$ scilab Segmentation fault (core dumped) Although scilab-cli seems to work : roux at jenny-a-03:~$ scilab-cli Scilab 5.5.2 (Apr 6 2016, 20:24:15) -->rand(2,2) ans = 0.2113249 0.0002211 0.7560439 0.3303271 --> exit the problem affect all scilab version installed roux at jenny-a-03:/usr/share/scilab-6.0.0/bin$ ./scilab Segmentation fault (core dumped) The problem persist after restarting ubuntu . What can I do ? Philippe roux at jenny-a-03:/usr/share/scilab-6.0.0/bin$ ./scilab-cli Scilab 6.0.0 (Feb 14 2017, 12:49:55) From n.strelkov at gmail.com Thu Jun 22 01:46:03 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Thu, 22 Jun 2017 02:46:03 +0300 Subject: [Scilab-users] scilab -> Segmentation fault In-Reply-To: References: Message-ID: Dear Phillipe and all! I got the same behavior on my laptop. It has Ubuntu Xenial Xerus 16.04.2 LTS, kernel 4.4.0-81-generic. nikolay at nikolay-UX32A:~$ dpkg -S `which scilab` scilab: /usr/bin/scilab nikolay at nikolay-UX32A:~$ apt-cache policy scilab scilab: Installed: 5.5.2-2ubuntu3 Candidate: 5.5.2-2ubuntu3 Version table: *** 5.5.2-2ubuntu3 500 500 http://mirror.switch.ch/ftp/mirror/ubuntu xenial/universe amd64 Packages 500 http://mirror.switch.ch/ftp/mirror/ubuntu xenial/universe i386 Packages 100 /var/lib/dpkg/status nikolay at nikolay-UX32A:~$ scilab /usr/bin/scilab: line 935: 6525 Segmentation fault (core dumped) "$SCILABBIN" "$@" nikolay at nikolay-UX32A:~$ scilab-cli Scilab 5.5.2 (Apr 6 2016, 20:24:15) -->rand(2,2) ans = 0.2113249 0.0002211 0.7560439 0.3303271 -->exit nikolay at nikolay-UX32A:~$ scilab-adv-cli /usr/bin/scilab-adv-cli: line 935: 10257 Segmentation fault (core dumped) "$SCILABBIN" "$@" nikolay at nikolay-UX32A:~$ nikolay at nikolay-UX32A:~$ cd Software/scilab-6.0.0/ nikolay at nikolay-UX32A:~/Software/scilab-6.0.0$ ./bin/scilab ./bin/scilab: line 957: 10305 Segmentation fault (core dumped) "$SCILABBIN" "$@" nikolay at nikolay-UX32A:~$ scilab -nouserstartup -noatomsautoload /usr/bin/scilab: line 935: 10692 Segmentation fault (core dumped) "$SCILABBIN" "$@" nikolay at nikolay-UX32A:~$ There are errors with scilab package on Ubuntu 16.04 (see https://errors.ubuntu.com/?release=Ubuntu%2016.04&package=scilab&period=year&version=5.5.2-2ubuntu3 ), but I do not know which are our. Our should be named like "scilab-bin crashed with SIGSEGV". Dear Phillipe, please try to send apport report with $ apport-cli /var/crash/_usr_bin_scilab-bin.1000.crash to launchpad. I can't send it. What should *we* do? -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-06-22 0:36 GMT+03:00 philippe : > Hi, > > since today, I can't run scilab on ubuntu : > > OS: Ubuntu 16.04 xenial > Kernel: x86_64 Linux 4.4.0-81-generic > CPU: Intel Core i3-4000M CPU @ 2.4GHz > RAM: 1681MB / 7896MB > > > Launching scilab from the terminal I et a "seg fault" error message: > > roux at jenny-a-03:~$ scilab > Segmentation fault (core dumped) > > > Although scilab-cli seems to work : > > roux at jenny-a-03:~$ scilab-cli > Scilab 5.5.2 (Apr 6 2016, 20:24:15) > > > -->rand(2,2) > ans = > > 0.2113249 0.0002211 > 0.7560439 0.3303271 > > --> exit > > > the problem affect all scilab version installed > > roux at jenny-a-03:/usr/share/scilab-6.0.0/bin$ ./scilab > Segmentation fault (core dumped) > > > The problem persist after restarting ubuntu . What can I do ? > > Philippe > > roux at jenny-a-03:/usr/share/scilab-6.0.0/bin$ ./scilab-cli > Scilab 6.0.0 (Feb 14 2017, 12:49:55) > > > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigamakashkumar at gmail.com Thu Jun 22 06:05:11 2017 From: nigamakashkumar at gmail.com (nigamakashkumar) Date: Wed, 21 Jun 2017 21:05:11 -0700 (MST) Subject: [Scilab-users] Imresize function in SIVP Message-ID: <1498104311179-4036626.post@n3.nabble.com> Hi everyone, Does imresize function in the SIVP module affect the clarity of the image. There is nothing of this sort written in the documentation. Are there any functions in any other toolboxes that might resize without loss of image information? I need to resize images for my application, without loss of clarity, i.e using vector graphics (otherwise it would hurt the accuracy of image processing, and there is also user interaction). Is it possible? I also need it to be reasonably fast on a normal machine, like 3-4 seconds maximum for color images of resolution 2592*1944 (around 2 MB). Is it reasonable to go after this. Or should I leave the user to scroll on and on and get to the desired part of the image (I am using scilab in labview which allows scrolling of images bigger than the indicator window size, but that is inconvenient. Hence I wish to resize). Regards Akash Kumar Nigam -- View this message in context: http://mailinglists.scilab.org/Imresize-function-in-SIVP-tp4036626.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From shamika.i.nair at gmail.com Thu Jun 22 09:24:06 2017 From: shamika.i.nair at gmail.com (Shamika Mohanan) Date: Thu, 22 Jun 2017 12:54:06 +0530 Subject: [Scilab-users] Scilab error Message-ID: Hello, I use Scilab 5.5.0 on Ubuntu 14.04, 64 bit architecture. I installed Scilab using apt-get. I updated Ubuntu yesterday and since then I'm unable to start Scilab. I get the error 'Segmentation fault (core dumped)'. The same error occurs on Scilab 5.5.2 and Scilab 6.0 for scilab and scilab-adv-cli mode. Only scilab-cli seems to be working. As we require graphics features of Scilab, is there any solution to this problem? Regards, Shamika -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Thu Jun 22 09:28:37 2017 From: rouxph.22 at gmail.com (philippe) Date: Thu, 22 Jun 2017 09:28:37 +0200 Subject: [Scilab-users] scilab -> Segmentation fault In-Reply-To: References: Message-ID: Le 22/06/2017 ? 01:46, Nikolay Strelkov a ?crit : >[...] > > Dear Phillipe, please try to send apport report with > $ apport-cli /var/crash/_usr_bin_scilab-bin.1000.crash > to launchpad. I can't send it. done > > What should *we* do? > I've searched on bugzilla, the problem seems to be associated with some change in the 4.8.0-56 kernel so restarting ubuntu with previous kernel 4.8.0-54 may solve it until the next release . See Roger Manson comment at the bottom of the page : http://bugzilla.scilab.org/show_bug.cgi?id=15141 they are two order recent bugs reports in bugzilla about "seg fault" problem : http://bugzilla.scilab.org/show_bug.cgi?id=15192 http://bugzilla.scilab.org/show_bug.cgi?id=15194 Thank you Nikolay, Philippe > From faa1976 at rambler.ru Thu Jun 22 09:35:39 2017 From: faa1976 at rambler.ru (faa1976) Date: Thu, 22 Jun 2017 00:35:39 -0700 (MST) Subject: [Scilab-users] Scilab freezed Message-ID: <1498116939692-4036629.post@n3.nabble.com> Hi, I am using scilab 6.1.0.0 (scilab-branch-master). The compilation was carried out according to the manual http://sampig.github.io/tutorial/2016/05/30/compiling-scilab-in-ubuntu-16.04. The compilation passed without errors. Scilab (command in terminal: bin/scilab) hangs on startup. The terminal after that does not react to anything. The "LIBGL_ALWAYS_SOFTWARE = 1 bin/scilab" call does not solve the problem. ?ommand "bin/scilab-cli" works correctly. My system information: OS - Ubuntu 16.04(64), Video - GeForce GTX 1050 Ti, video drivier - Nvidia 381.22 -- View this message in context: http://mailinglists.scilab.org/Scilab-freezed-tp4036629.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rouxph.22 at gmail.com Thu Jun 22 09:38:20 2017 From: rouxph.22 at gmail.com (philippe) Date: Thu, 22 Jun 2017 09:38:20 +0200 Subject: [Scilab-users] Scilab error In-Reply-To: References: Message-ID: Le 22/06/2017 ? 09:24, Shamika Mohanan a ?crit : > > I updated Ubuntu yesterday and since then I'm unable to start Scilab. I > get the error 'Segmentation fault (core dumped)'. > > The same error occurs on Scilab 5.5.2 and Scilab 6.0 for scilab and > scilab-adv-cli mode. Only scilab-cli seems to be working. As we require > graphics features of Scilab, is there any solution to this problem? has said in the other thread "scilab -> Segmentation fault" restart ubuntu with previous kernel (before yesterday update, kernel 4.4.0-79 for me . Philippe From n.strelkov at gmail.com Thu Jun 22 09:39:48 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Thu, 22 Jun 2017 10:39:48 +0300 Subject: [Scilab-users] Scilab error In-Reply-To: References: Message-ID: Dear Shamika! You can join other thread - http://mailinglists.scilab.org/Scilab-users-scilab-gt-Segmentation-fault-td4036624.html . Here we discuss scilab crash on Ubuntu Xenial 16.04 LTS. Which kernel do you use (post "uname -a" )? -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-06-22 10:24 GMT+03:00 Shamika Mohanan : > Hello, > > I use Scilab 5.5.0 on Ubuntu 14.04, 64 bit architecture. I installed > Scilab using apt-get. > > I updated Ubuntu yesterday and since then I'm unable to start Scilab. I > get the error 'Segmentation fault (core dumped)'. > > The same error occurs on Scilab 5.5.2 and Scilab 6.0 for scilab and > scilab-adv-cli mode. Only scilab-cli seems to be working. As we require > graphics features of Scilab, is there any solution to this problem? > > Regards, > Shamika > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shamika.i.nair at gmail.com Thu Jun 22 11:35:11 2017 From: shamika.i.nair at gmail.com (shamikam) Date: Thu, 22 Jun 2017 02:35:11 -0700 (MST) Subject: [Scilab-users] Scilab error In-Reply-To: References: Message-ID: <1498124111203-4036632.post@n3.nabble.com> Hello, Booting with the older version of the kernel worked for me. The older kernel version is 4.4.0-79. Thanks, Shamika -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-error-tp4036627p4036632.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ogasawaraissei at gmail.com Fri Jun 23 05:57:45 2017 From: ogasawaraissei at gmail.com (Issei Ogasawara) Date: Thu, 22 Jun 2017 20:57:45 -0700 (MST) Subject: [Scilab-users] Keyboard shortcut to switch scinote and console Message-ID: <1498190265819-4036640.post@n3.nabble.com> Hi everyone, Dose anyone know a keyboard shortcut to switch between scinotes and console? Are there such function of scilab ? If such shortcut works, we don't need to use mouse while coding. Thank you in advance, -- View this message in context: http://mailinglists.scilab.org/Keyboard-shortcut-to-switch-scinote-and-console-tp4036640.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From saumyadoshi at gmail.com Fri Jun 23 08:11:02 2017 From: saumyadoshi at gmail.com (saumya_doshi) Date: Thu, 22 Jun 2017 23:11:02 -0700 (MST) Subject: [Scilab-users] Transfer Data Real Time to Scilab. Message-ID: <1498198262784-4036642.post@n3.nabble.com> Hello, I am trying to transfer data to Scilab from Terminal of a process that generates data continuously over real time. As far as the data is static, there is no issue. I'm using Scilab-C API for the same. Through Scilab, I pass a command to the Terminal in String format which gets executed and the output is stored in a column matrix of string data type which is then transferred to the output argument of Scilab. Now, for normal commands, for example, "ls", which has a static output, it works fine. The problem arises for a process which generates varying real time data for eg.: "top", for which even in Terminal I have to use Ctrl+C or Ctrl+Z, to interrupt/stop the process. For such commands, I get a Segmentation Fault, and Scilab crashes. I just need to know how to store data at any particular point of time of such a process and if possible, in a way that it keeps getting updated in the background, through the Scilab-C API. Any help would be appreciated. Thanks in advance! -- View this message in context: http://mailinglists.scilab.org/Transfer-Data-Real-Time-to-Scilab-tp4036642.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ogasawaraissei at gmail.com Fri Jun 23 10:12:12 2017 From: ogasawaraissei at gmail.com (Issei Ogasawara) Date: Fri, 23 Jun 2017 01:12:12 -0700 (MST) Subject: [Scilab-users] Keyboard shortcut to switch scinote and console In-Reply-To: <0ae575c8-e1e4-6fcc-3d0f-85ad5031b059@free.fr> References: <1498190265819-4036640.post@n3.nabble.com> <0ae575c8-e1e4-6fcc-3d0f-85ad5031b059@free.fr> Message-ID: <1498205532437-4036646.post@n3.nabble.com> Hi Denisq, Thank you for your reply. Now I'm using Mac OS, not Linux. But got an idea from your replay that the window manager of Mac version may solve my problem. Thank you! issei -- View this message in context: http://mailinglists.scilab.org/Keyboard-shortcut-to-switch-scinote-and-console-tp4036640p4036646.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From amonmayr at laas.fr Fri Jun 23 11:05:36 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 23 Jun 2017 11:05:36 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBLZXlib2FyZCBzaG9ydGN1?= =?utf-8?q?t_to_switch_scinote_and_console?= In-Reply-To: <1498190265819-4036640.post@n3.nabble.com> Message-ID: <7b8f-594cda00-d-70f8d380@24223541> Le Vendredi, Juin 23, 2017 05:57 CEST, Issei Ogasawara a ?crit: > Hi everyone, > > Dose anyone know a keyboard shortcut to switch between scinotes and console? > Are there such function of scilab ? > If such shortcut works, we don't need to use mouse while coding. If you are on MacOS, I think the standard shortcut to cycle through windows of the current app (Command+> if I remember correctly) should work. On Ubuntu with the default windows manager it's Ctrl+?. Antoine > > Thank you in advance, > > > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Keyboard-shortcut-to-switch-scinote-and-console-tp4036640.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 n.strelkov at gmail.com Sat Jun 24 13:24:00 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sat, 24 Jun 2017 14:24:00 +0300 Subject: [Scilab-users] scilab -> Segmentation fault In-Reply-To: References: Message-ID: After some googling I can summarize the following: This is not Scilab bug, it's bad attempt to fix CVE-2017-1000364 security bug in Linux kernel. Debian 7, 8, 9; Ubuntu 14.04 LTS and 16.04 LTS are affected (see https://bugs.launchpad.net/bugs/1699772). The *temporary* solution is to reboot with previous kernel versions: * Debian 7 (wheezy): <= 3.2.78-1 * Debian 8 (jessie): <= 3.16.43-2 * Debian 9 (stretch): <= 4.9.30-2 * Ubuntu 14.04 LTS (trusty): <= 3.13.0-119 * Ubuntu 16.04 LTS (xenial): <= 4.4.0-79 Phillipe, please update your Google+ post with aforementioned kernel versions. All corresponding bugs in Scilab should be closed as INVALID with reason "not Scilab bug", I think. -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-06-22 10:28 GMT+03:00 philippe : > > Le 22/06/2017 ? 01:46, Nikolay Strelkov a ?crit : > >[...] > > > > Dear Phillipe, please try to send apport report with > > $ apport-cli /var/crash/_usr_bin_scilab-bin.1000.crash > > to launchpad. I can't send it. > > done > > > > What should *we* do? > > > > I've searched on bugzilla, the problem seems to be associated with some > change in the 4.8.0-56 kernel so restarting ubuntu with previous kernel > 4.8.0-54 may solve it until the next release . See Roger Manson comment > at the bottom of the page : > > http://bugzilla.scilab.org/show_bug.cgi?id=15141 > > they are two order recent bugs reports in bugzilla about "seg fault" > problem : > > http://bugzilla.scilab.org/show_bug.cgi?id=15192 > http://bugzilla.scilab.org/show_bug.cgi?id=15194 > > Thank you Nikolay, > > Philippe > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rlandersen at gmail.com Sun Jun 25 19:21:43 2017 From: rlandersen at gmail.com (rlandersen) Date: Sun, 25 Jun 2017 10:21:43 -0700 (MST) Subject: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7 In-Reply-To: <1440326479863-4032713.post@n3.nabble.com> References: <1440326479863-4032713.post@n3.nabble.com> Message-ID: <1498411303270-4036657.post@n3.nabble.com> I have the same problem. When I try to launch Scilab I get the the same error message described. I had Scilab 5.5.2 installed and working when the problem started. I tried uninstalling and installing version 6.00. Same error. Even deleting ........\AppData\Roaming\Scilab\ Still does not work. How can I proceed? -- View this message in context: http://mailinglists.scilab.org/Scilab-users-can-not-create-Scilab-Java-Main-Class-after-installation-of-SL-5-5-0-32-on-windows-7-tp4030309p4036657.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sdr at durietz.se Sun Jun 25 23:10:17 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Sun, 25 Jun 2017 23:10:17 +0200 Subject: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7 In-Reply-To: <1498411303270-4036657.post@n3.nabble.com> References: <1440326479863-4032713.post@n3.nabble.com> <1498411303270-4036657.post@n3.nabble.com> Message-ID: I have the same problem. I have uninstalled 6.0 and have then several times uninstalled Scilab 5.5.2, deleted SCIHOME and reinstalled Scilab 5.5.2, which worked before(!), to no avail ... /Stefan On 2017-06-25 19:21, rlandersen wrote: > I have the same problem. > When I try to launch Scilab I get the the same error message described. > > I had Scilab 5.5.2 installed and working when the problem started. > > I tried uninstalling and installing version 6.00. > Same error. > > Even deleting ........\AppData\Roaming\Scilab\ > Still does not work. > > How can I proceed? > > > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-can-not-create-Scilab-Java-Main-Class-after-installation-of-SL-5-5-0-32-on-windows-7-tp4030309p4036657.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 richard.llom at gmail.com Tue Jun 27 00:51:34 2017 From: richard.llom at gmail.com (Richard llom) Date: Mon, 26 Jun 2017 15:51:34 -0700 (MST) Subject: [Scilab-users] Plot with 2 y-axes Message-ID: <1498517494660-4036672.post@n3.nabble.com> Hello fellow scilab-users, I'm having a hard time creating a plot with two y-axes. This is what I tried so far: // Visualization clf(); // Channel 1 plot2d(1:10,1:10); ax1=gca(); ax1.x_label.text="time"; ax1.y_label.text="ch1"; ax1.y_location="left"; ax1.foreground=5; ax1.font_color=5; // red // Channel 2 ax2=newaxes(); plot2d(1:10,5:-0.25:2.75); ax2.y_label.text="ch2"; ax2.y_location="right"; ax1.foreground=2; ax2.font_color=2; // blue 1. First of all I'm missing my first plot. It seems to be erased by the 2nd one, although in the help it says "By default, successive plots are superposed."??? 2. For channel 1 I want to have all information in red, that is the line, y-axes, y-label but not x-axes. Same for ch2 but in blue. How do I achieve this? 3. Is it possible to create a third y-axes like this: https://i.stack.imgur.com/BYFr4.png ? Many Thanks, richard -- View this message in context: http://mailinglists.scilab.org/Plot-with-2-y-axes-tp4036672.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue Jun 27 09:12:29 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 27 Jun 2017 09:12:29 +0200 Subject: [Scilab-users] Plot with 2 y-axes In-Reply-To: <1498517494660-4036672.post@n3.nabble.com> References: <1498517494660-4036672.post@n3.nabble.com> Message-ID: <19788703-1f25-7cb4-d9e0-d388cf3f85e0@free.fr> Hello, There are 2 demos named plotyy() and plotyyy() that are examples that you can edit and mimick, about this topic. In addition, it was already dealt with in some quite recent threads in this mailing list. You may have a look to the archives. Regards Samuel Le 27/06/2017 ? 00:51, Richard llom a ?crit : > Hello fellow scilab-users, > I'm having a hard time creating a plot with two y-axes. This is what I tried > so far: > > // Visualization > clf(); > // Channel 1 > plot2d(1:10,1:10); > ax1=gca(); > ax1.x_label.text="time"; > ax1.y_label.text="ch1"; > ax1.y_location="left"; > ax1.foreground=5; > ax1.font_color=5; // red > > // Channel 2 > ax2=newaxes(); > plot2d(1:10,5:-0.25:2.75); > ax2.y_label.text="ch2"; > ax2.y_location="right"; > ax1.foreground=2; > ax2.font_color=2; // blue > > 1. > First of all I'm missing my first plot. It seems to be erased by the 2nd > one, although in the help it says "By default, successive plots are > superposed."??? > > 2. > For channel 1 I want to have all information in red, that is the line, > y-axes, y-label but not x-axes. Same for ch2 but in blue. How do I achieve > this? > > 3. > Is it possible to create a third y-axes like this: > https://i.stack.imgur.com/BYFr4.png > ? > > Many Thanks, > richard > > > > -- > View this message in context: http://mailinglists.scilab.org/Plot-with-2-y-axes-tp4036672.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 paul.carrico at esterline.com Tue Jun 27 09:05:40 2017 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 27 Jun 2017 07:05:40 +0000 Subject: [Scilab-users] ugly code improvement (with vectorization) Message-ID: <3A6B7233274DB449A2A0053A47684F953F8244C2@BGS-EX01.auxitrol.ad> Dear All, Can I ask advice to correct this ugly/slow code (using vectorization)? In the example here bellow, I want - to capture the non-null values of each line from the 5th column - each row can have different "length" - the 4th column indicates how many values there're i.e the length - Then to put this values in a vector previously initialized If I can extract the values with ''Elements(k,[5: Elements (k,4)]'', I do not know how to put it the ''View'' matrix without using dynamic allocation ([View ; Elements (k,4) ... indeed I'm using block and not explicit index Thanks for your time Paul ######################################################## View = zeros(dim,2); // dim previously calculated n = 1; for k = 1 : size(Elements,1) for m = 1 : Elements (k,4) View(n,1) = Elements (k,4+m); n = n+1; end end with Elements = [ 1. 1. 29. 8. 81. 82. 83. 124. 165. 164. 163. 122. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 2. 1. 29. 8. 83. 84. 85. 126. 167. 166. 165. 124. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 3. 1. 29. 8. 85. 86. 87. 128. 169. 168. 167. 126. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 4. 1. 29. 8. 87. 88. 89. 130. 171. 170. 169. 128. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 5. 1. 29. 8. 89. 90. 91. 132. 173. 172. 171. 130. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. .... 797. 1. 8. 20. 2193. 2194. 2195. 2219. 2257. 2256. 2255. 2218. 3515. 3516. 3517. 3541. 3579. 3578. 3577. 3540. 2854. 2856. 2918. 2916. 798. 1. 8. 20. 2195. 2196. 2197. 2220. 2259. 2258. 2257. 2219. 3517. 3518. 3519. 3542. 3581. 3580. 3579. 3541. 2856. 2858. 2920. 2918. 799. 1. 8. 20. 2197. 2198. 2199. 2221. 2261. 2260. 2259. 2220. 3519. 3520. 3521. 3543. 3583. 3582. 3581. 3542. 2858. 2860. 2922. 2920. 800. 1. 8. 20. 2199. 2200. 2201. 2222. 2263. 2262. 2261. 2221. 3521. 3522. 3523. 3544. 3585. 3584. 3583. 3543. 2860. 2862. 2924. 2922. ... 1047. 999. 3. 2. 3587. 3582. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1048. 999. 3. 2. 3587. 3583. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1049. 999. 3. 2. 3587. 3584. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1050. 999. 3. 2. 3587. 3585. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]; EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmnpsvg at gmail.com Tue Jun 27 10:52:05 2017 From: bmnpsvg at gmail.com (AOFW) Date: Tue, 27 Jun 2017 01:52:05 -0700 (MST) Subject: [Scilab-users] Help Required to Remove Computation Bugs in Bode: Scilab 6.0.0 Message-ID: <1498553525547-4036677.post@n3.nabble.com> I am exploring Scilab for use in control analysis and design for teaching and academic research. I executed a number of examples listed in the Help for Bode and Black under the frequency response topic. Below are the errors that came up - only two examples are listed here for illustration. The question is why these errors ? I am running Scilab 6.0.0 [64-bit] on Windows 10. I have searched the Archives and did not find anything and hence this post: Example 1: --> s = poly(0, 's'); --> h = syslin('c', (s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01)); --> --> clf(); bode(h, 0.01, 100); Recursion limit reached (1000). Example 2: --> //Black diagram --> s=poly(0,'s'); --> sl=syslin('c',5*(1+s)/(.1*s.^4+s.^3+15*s.^2+3*s+1)) sl = 5 + 5s ------------------------ 2 3 4 1 + 3s + 15s + s + 0.1s --> clf();black(sl,0.01,10); at line 38 of function black ( C:\Program Files\scilab-6.0.0\modules\cacsd\macros\black.sci line 51 ) at line 2 of function black ( C:\Users\Almoruf\AppData\Roaming\Scilab\SCILAB~2.0\atoms\x64\iodelay\04B097~1.6\macros\black.sci line 12 ) Invalid index. -- View this message in context: http://mailinglists.scilab.org/Help-Required-to-Remove-Computation-Bugs-in-Bode-Scilab-6-0-0-tp4036677.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue Jun 27 11:33:50 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 27 Jun 2017 09:33:50 +0000 Subject: [Scilab-users] {EXT} ugly code improvement (with vectorization) In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F8244C2@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F8244C2@BGS-EX01.auxitrol.ad> Message-ID: Hello Paul, > De : Carrico, Paul > Envoy? : mardi 27 juin 2017 09:06 > > - to capture the non-null values of each line from the 5th column - each row can have different "length" > - the 4th column indicates how many values there're i.e the length > - Then to put this values in a vector previously initialized > [ > Elements = [...] > 1. 1. 29. 8. 81. 82. 83. 124. 165. 164. 163. 122. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. [...] I suggest: 1. Extract foo = Elements(:, 5:$)' 2. Use foo2 = foo(:) to have a vector. 3. Remove the zeros with something like index = (foo2 == 0) ; foo2(index) = [] Would this work? -- 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 richard.llom at gmail.com Tue Jun 27 13:33:51 2017 From: richard.llom at gmail.com (Richard llom) Date: Tue, 27 Jun 2017 04:33:51 -0700 (MST) Subject: [Scilab-users] Plot with 2 y-axes In-Reply-To: <19788703-1f25-7cb4-d9e0-d388cf3f85e0@free.fr> References: <1498517494660-4036672.post@n3.nabble.com> <19788703-1f25-7cb4-d9e0-d388cf3f85e0@free.fr> Message-ID: <1498563231793-4036681.post@n3.nabble.com> Hello Samuel, I couldn't find plotyy in the help, neither does plotyy() work for me: "Undefined variable: plotyy" I will take a look at the archives... regards richard Hello, There are 2 demos named plotyy() and plotyyy() that are examples that you can edit and mimick, about this topic. In addition, it was already dealt with in some quite recent threads in this mailing list. You may have a look to the archives. Regards Samuel Le 27/06/2017 ? 00:51, Richard llom a ?crit : > Hello fellow scilab-users, > I'm having a hard time creating a plot with two y-axes. This is what I > tried > so far: > > // Visualization > clf(); > // Channel 1 > plot2d(1:10,1:10); > ax1=gca(); > ax1.x_label.text="time"; > ax1.y_label.text="ch1"; > ax1.y_location="left"; > ax1.foreground=5; > ax1.font_color=5; // red > > // Channel 2 > ax2=newaxes(); > plot2d(1:10,5:-0.25:2.75); > ax2.y_label.text="ch2"; > ax2.y_location="right"; > ax1.foreground=2; > ax2.font_color=2; // blue > > 1. > First of all I'm missing my first plot. It seems to be erased by the 2nd > one, although in the help it says "By default, successive plots are > superposed."??? > > 2. > For channel 1 I want to have all information in red, that is the line, > y-axes, y-label but not x-axes. Same for ch2 but in blue. How do I achieve > this? > > 3. > Is it possible to create a third y-axes like this: > https://i.stack.imgur.com/BYFr4.png > ? > > Many Thanks, > richard -- View this message in context: http://mailinglists.scilab.org/Plot-with-2-y-axes-tp4036672p4036681.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at esterline.com Tue Jun 27 15:41:34 2017 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 27 Jun 2017 13:41:34 +0000 Subject: [Scilab-users] [EXTERNAL] Re: {EXT} ugly code improvement (with vectorization) In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F8244C2@BGS-EX01.auxitrol.ad> Message-ID: <3A6B7233274DB449A2A0053A47684F953F824571@BGS-EX01.auxitrol.ad> Hi Christophe, Thanks for your suggestion - you were in the right way (good mind), I do not :-) It works on the test here after, I just have to adapt it Paul #################################################################### mode(0) Elements = [ 1. 1. 29. 8. 81. 82. 83. 124. 165. 164. 163. 122. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 2. 1. 29. 8. 83. 84. 85. 126. 167. 166. 165. 124. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 3. 1. 29. 8. 85. 86. 87. 128. 169. 168. 167. 126. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 4. 1. 29. 8. 87. 88. 89. 130. 171. 170. 169. 128. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 5. 1. 29. 8. 89. 90. 91. 132. 173. 172. 171. 130. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 797. 1. 8. 20. 2193. 2194. 2195. 2219. 2257. 2256. 2255. 2218. 3515. 3516. 3517. 3541. 3579. 3578. 3577. 3540. 2854. 2856. 2918. 2916. 0 0 0 0 0. 798. 1. 8. 20. 2195. 2196. 2197. 2220. 2259. 2258. 2257. 2219. 3517. 3518. 3519. 3542. 3581. 3580. 3579. 3541. 2856. 2858. 2920. 2918. 0 0 0 0 0. 799. 1. 8. 20. 2197. 2198. 2199. 2221. 2261. 2260. 2259. 2220. 3519. 3520. 3521. 3543. 3583. 3582. 3581. 3542. 2858. 2860. 2922. 2920. 0 0 0 0 0. 800. 1. 8. 20. 2199. 2200. 2201. 2222. 2263. 2262. 2261. 2221. 3521. 3522. 3523. 3544. 3585. 3584. 3583. 3543. 2860. 2862. 2924. 2922. 0 0 0 0 0. 1047. 999. 3. 2. 3587. 3582. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1048. 999. 3. 2. 3587. 3583. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1049. 999. 3. 2. 3587. 3584. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1050. 999. 3. 2. 3587. 3585. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]; Elements2 = Elements; Elements2(:,[1:4])=[]; n = size(Elements2,"*") Elements2 = matrix(Elements2',n,1); a = find(Elements2 == 0); Elements2(a,1) = []; Elements2 -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Dang Ngoc Chan, Christophe Envoy??: mardi 27 juin 2017 11:34 ??: Users mailing list for Scilab Objet?: [EXTERNAL] Re: [Scilab-users] {EXT} ugly code improvement (with vectorization) Hello Paul, > De : Carrico, Paul > Envoy? : mardi 27 juin 2017 09:06 > > - to capture the non-null values of each line from the 5th column - each row can have different "length" > - the 4th column indicates how many values there're i.e the length > - Then to put this values in a vector previously initialized [ > Elements = [...] > 1. 1. 29. 8. 81. 82. 83. 124. 165. 164. 163. 122. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. [...] I suggest: 1. Extract foo = Elements(:, 5:$)' 2. Use foo2 = foo(:) to have a vector. 3. Remove the zeros with something like index = (foo2 == 0) ; foo2(index) = [] Would this work? -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list users at lists.scilab.org https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.scilab.org_mailman_listinfo_users&d=DwIFAw&c=0hKVUfnuoBozYN8UvxPA-w&r=4TCz--8bXfJhZZvIxJAemAJyz7Vfx78XvgYu3LN7eLo&m=-jeS6eg34X1wOu7rjJUdp4_D6gD1unEepLJULOYTLo0&s=SdwDp7jNLsTyZClNObJsllYvRnaUOft504Nxbq4aSxo&e= EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data From rouxph.22 at gmail.com Tue Jun 27 22:06:52 2017 From: rouxph.22 at gmail.com (philippe) Date: Tue, 27 Jun 2017 22:06:52 +0200 Subject: [Scilab-users] overload column/row extraction Message-ID: hi, I've created a type "bigint" as an tlist : x = tlist(['bigint','rep','signe'], tab, signe) // tab =double vector // signe = +-1 and then created a new type "mbigint" for "matrix of bigint" as an mlist : M=mlist(['mbigint','display','value'],D,T) // D =matrix of strings // T =cell of bigint Then I create the %mbigint_e.sci function to overload the extraction : function r=%mbigint_e(varargin) M=varargin($) r=mlist(['mbigint','display','value'], M.display(varargin(1:$-1)), M.value(varargin(1:$-1))) endfunction all kind of extractions works ( M(1,4); M(2,:) ; M(:,2) .... ) except the mixed extraction on row/column like M(2:3,2:3). I don't understand the problem, does anyone can help me ? Philippe From tim at wescottdesign.com Wed Jun 28 05:56:51 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 27 Jun 2017 20:56:51 -0700 Subject: [Scilab-users] Scilab is crashing -- on one machine only Message-ID: <1498622211.3058.15.camel@wescottdesign.com> On one machine, Scilab crashes, with a segmentation fault. On the other, it perks along happily. The "bad" machine had the normal Ubuntu installation of Scilab (5.5.2), then I wiped that and installed 6.0.0 -- same thing. ?I just reinstalled the Ubuntu version -- crashes. scilab-cli works The "good" machine is the same Ubuntu distro (16.04, 64-bit). Any clues as to what may be happening? -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From n.strelkov at gmail.com Wed Jun 28 10:09:23 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Wed, 28 Jun 2017 11:09:23 +0300 Subject: [Scilab-users] Scilab is crashing -- on one machine only In-Reply-To: <1498622211.3058.15.camel@wescottdesign.com> References: <1498622211.3058.15.camel@wescottdesign.com> Message-ID: Dear Tim! As was discussed In the list ( http://mailinglists.scilab.org/Scilab-users-scilab-gt-Segmentation-fault-td4036624.html ). This is not Scilab bug, it's bad attempt to fix CVE-2017-1000364 security bug in Linux kernel. Debian 7, 8, 9; Ubuntu 14.04 LTS and 16.04 LTS are affected (see https://bugs.launchpad.net/bugs/1699772). The *temporary* solution is to reboot with previous kernel versions: * Debian 7 (wheezy): <= 3.2.78-1 * Debian 8 (jessie): <= 3.16.43-2 * Debian 9 (stretch): <= 4.9.30-2 * Ubuntu 14.04 LTS (trusty): <= 3.13.0-119 * Ubuntu 16.04 LTS (xenial): <= 4.4.0-79 Canonical and Debian will release normal kernel updates soon. -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 28 ???? 2017 ?. 7:02 ???????????? "Tim Wescott" ???????: On one machine, Scilab crashes, with a segmentation fault. On the other, it perks along happily. The "bad" machine had the normal Ubuntu installation of Scilab (5.5.2), then I wiped that and installed 6.0.0 -- same thing. I just reinstalled the Ubuntu version -- crashes. scilab-cli works The "good" machine is the same Ubuntu distro (16.04, 64-bit). Any clues as to what may be happening? -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Jun 28 10:37:15 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Jun 2017 10:37:15 +0200 Subject: [Scilab-users] Plot with 2 y-axes In-Reply-To: <1498563231793-4036681.post@n3.nabble.com> References: <1498517494660-4036672.post@n3.nabble.com> <19788703-1f25-7cb4-d9e0-d388cf3f85e0@free.fr> <1498563231793-4036681.post@n3.nabble.com> Message-ID: <6535526c-9cc6-9936-9ad5-ba4433572f2b@free.fr> Le 27/06/2017 ? 13:33, Richard llom a ?crit : > Hello Samuel, > I couldn't find plotyy in the help, neither does plotyy() work for me: > "Undefined variable: plotyy" My fault: demos are not named plotyy() and plotyyy() but plotyy and plotyyy. There are usages without dedicated functions. In the demos GUI: --> demo_gui // go to the Graphics => 2D and 3D plot section To get documentation on the archives, you may use for instance --> uman plotyy|plotyyy @ after having installed uman: --> atomsInstall uman Samuel From sgougeon at free.fr Wed Jun 28 10:45:40 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Jun 2017 10:45:40 +0200 Subject: [Scilab-users] overload column/row extraction In-Reply-To: References: Message-ID: Hello Philippe, Could you please provide a full executable example, and the final error message? It would help testing and possibly debugging. Thanks Samuel Le 27/06/2017 ? 22:06, philippe a ?crit : > hi, > > I've created a type "bigint" as an tlist : > > x = tlist(['bigint','rep','signe'], tab, signe) > // tab =double vector > // signe = +-1 > > and then created a new type "mbigint" for "matrix of bigint" as an mlist : > > M=mlist(['mbigint','display','value'],D,T) > // D =matrix of strings > // T =cell of bigint > > Then I create the %mbigint_e.sci function to overload the extraction : > > function r=%mbigint_e(varargin) > M=varargin($) > r=mlist(['mbigint','display','value'], M.display(varargin(1:$-1)), > M.value(varargin(1:$-1))) > endfunction > > all kind of extractions works ( M(1,4); M(2,:) ; M(:,2) .... ) except > the mixed extraction on row/column like M(2:3,2:3). I don't understand > the problem, does anyone can help me ? > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From richard.llom at gmail.com Wed Jun 28 13:35:33 2017 From: richard.llom at gmail.com (Richard llom) Date: Wed, 28 Jun 2017 04:35:33 -0700 (MST) Subject: [Scilab-users] Plot with 2 y-axes In-Reply-To: <6535526c-9cc6-9936-9ad5-ba4433572f2b@free.fr> References: <1498517494660-4036672.post@n3.nabble.com> <19788703-1f25-7cb4-d9e0-d388cf3f85e0@free.fr> <1498563231793-4036681.post@n3.nabble.com> <6535526c-9cc6-9936-9ad5-ba4433572f2b@free.fr> Message-ID: <1498649733340-4036692.post@n3.nabble.com> Hi Samuel, thanks I already figured it out with demo_gui and by searching the archive. So for the record: For my case I needed to create 3-axes: 1 for each extra y-axe and one "virtual" to get the x-axe in its own color scheme. This is the code I ended up with: -- View this message in context: http://mailinglists.scilab.org/Plot-with-2-y-axes-tp4036672p4036692.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rouxph.22 at gmail.com Wed Jun 28 22:47:32 2017 From: rouxph.22 at gmail.com (philippe) Date: Wed, 28 Jun 2017 22:47:32 +0200 Subject: [Scilab-users] overload column/row extraction In-Reply-To: References: Message-ID: Le 28/06/2017 ? 10:45, Samuel Gougeon a ?crit : > Hello Philippe, > Could you please provide a full executable example, and the final error > message? It would help testing and possibly debugging. Sorry Samuel I finally found the solution by myself ;-) My problem comes from insertion more than extraction. I can now manage all matrix of "bigint". It remains to code some functions for overloading unary/binary operators +-,*,/,<>,== for compatibility between double/bigint/mbigint .... after that I could publish it ! best regards, Philippe From tim at wescottdesign.com Thu Jun 29 04:35:09 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 28 Jun 2017 19:35:09 -0700 Subject: [Scilab-users] Scilab is crashing -- on one machine only In-Reply-To: References: <1498622211.3058.15.camel@wescottdesign.com> Message-ID: <1498703709.13266.0.camel@wescottdesign.com> Thank you very much! ?I missed that thread. ?It's good to know what the issue is. Hopefully I can just wait it out -- if not, I know how to reboot with an older kernel. On Wed, 2017-06-28 at 11:09 +0300, Nikolay Strelkov wrote: > Dear Tim! > > As was discussed In the list (?http://mailinglists.scilab.org/Scilab- > users-scilab-gt-Segmentation-fault-td4036624.html ). > > This is not Scilab bug, it's bad attempt to fix CVE-2017-1000364 > security bug in Linux kernel. > Debian 7, 8, 9; Ubuntu 14.04 LTS and 16.04 LTS are affected (seehttps > ://bugs.launchpad.net/bugs/1699772). > > The?temporary?solution is to reboot with previous kernel versions: > * Debian 7 (wheezy): <= 3.2.78-1 > * Debian 8 (jessie): <= 3.16.43-2 > * Debian 9 (stretch): <= 4.9.30-2 > * Ubuntu 14.04 LTS (trusty): <= 3.13.0-119 > * Ubuntu 16.04 LTS (xenial): <= 4.4.0-79 > > Canonical and Debian will release normal kernel updates soon. > > -- > With best regards, > Ph.D.,?associate?professor at?MPEI, > IEEE member, > maintainer of?Mathieu functions toolbox for Scilab, > Nikolay?Strelkov. > > 28 ???? 2017 ?. 7:02 ???????????? "Tim Wescott" m> ???????: > On one machine, Scilab crashes, with a segmentation fault. > > On the other, it perks along happily. > > The "bad" machine had the normal Ubuntu installation of Scilab > (5.5.2), > then I wiped that and installed 6.0.0 -- same thing.? I just > reinstalled the Ubuntu version -- crashes. > > scilab-cli works > > The "good" machine is the same Ubuntu distro (16.04, 64-bit). > > Any clues as to what may be happening? > > -- > > Tim Wescott > www.wescottdesign.com > Control & Communications systems, circuit & software design. > Phone: 503.631.7815 > Cell:? 503.349.8432 > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From paul.carrico at esterline.com Thu Jun 29 09:28:40 2017 From: paul.carrico at esterline.com (Carrico, Paul) Date: Thu, 29 Jun 2017 07:28:40 +0000 Subject: [Scilab-users] my loop faster than vectorization (???) Message-ID: <3A6B7233274DB449A2A0053A47684F953F824A35@BGS-EX01.auxitrol.ad> Hi all I'm facing a case where a loop is faster than vectorization (at least I hope I'm using vectorization) ... I'm necessarily doing something wrong but I don't see what Hope somebody will point out my mistake Thanks for your time Paul ################################################ mode(0) clear n = 10000; lower_bound = 0.1*n; upper_bound = 0.6*n; a = rand(n,1); b = string(a); // case 1 : eval on each row tic(); c = zeros((upper_bound-lower_bound),1); c(1:(upper_bound-lower_bound),1) = eval(b(1:(upper_bound-lower_bound),1)); duration1 = toc() // case 2 : eval on the complete matrix tic(); d = zeros((upper_bound-lower_bound),1); d = string(d); d = b([1:(upper_bound-lower_bound)],1); d = eval(d); duration2 = toc() // case 3 :with an uggly loop tic(); e = zeros((upper_bound-lower_bound),1); for i = 1 : (upper_bound - lower_bound) e(i,1) = eval(b(i+lower_bound-1,1)); end duration3 = toc() // case 4 :with an uggly loop (eval on the complete matrix) tic(); f = zeros((upper_bound-lower_bound),1); f = string(f); for i = 1 : (upper_bound - lower_bound) f(i,1) = b(i+lower_bound-1,1); end f = eval(f); duration3 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Thu Jun 29 09:34:52 2017 From: paul.carrico at esterline.com (Carrico, Paul) Date: Thu, 29 Jun 2017 07:34:52 +0000 Subject: [Scilab-users] my loop faster than vectorization (???) : please wait Message-ID: <3A6B7233274DB449A2A0053A47684F953F824A43@BGS-EX01.auxitrol.ad> Please wait, copy/paste errors - my example is stupid (so I am) sorry EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Thu Jun 29 09:56:53 2017 From: paul.carrico at esterline.com (Carrico, Paul) Date: Thu, 29 Jun 2017 07:56:53 +0000 Subject: [Scilab-users] my loop faster than vectorization (???) In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F824A35@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F824A35@BGS-EX01.auxitrol.ad> Message-ID: <3A6B7233274DB449A2A0053A47684F953F824A5B@BGS-EX01.auxitrol.ad> Here is the correct code - loop faster here (68 time faster with n = 100 000) I'm confuse Paul ############################################################# mode(0) clear n = 10000; lower_bound = 0.1*n; upper_bound = 0.6*n; a = rand(n,1); b = string(a); // case 1 : eval on each row tic(); i=1:(upper_bound-lower_bound+1)'; c(i,1) = zeros((upper_bound-lower_bound+1),1); c(i,1) = eval(b(lower_bound:upper_bound,1)); duration1 = toc() // case 2 : eval on the complete matrix tic(); d = zeros((upper_bound-lower_bound+1),1); d = string(d); d = b(lower_bound:upper_bound,1); d = eval(d); duration2 = toc() // case 3 :with an uggly loop tic(); e = zeros((upper_bound-lower_bound+1),1); for i = 1 : (upper_bound - lower_bound+1) e(i,1) = eval(b(i+lower_bound-1,1)); end duration3 = toc() // case 4 :with an uggly loop (eval on the complete matrix) tic(); f = zeros((upper_bound-lower_bound+1),1); f = string(f); for i = 1 : (upper_bound - lower_bound) f(i,1) = b(i+lower_bound-1,1); end f = eval(f); duration3 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de Carrico, Paul Envoy? : jeudi 29 juin 2017 09:29 ? : International users mailing list for Scilab. (users at lists.scilab.org) Objet : [EXTERNAL] [Scilab-users] my loop faster than vectorization (???) Hi all I'm facing a case where a loop is faster than vectorization (at least I hope I'm using vectorization) ... I'm necessarily doing something wrong but I don't see what Hope somebody will point out my mistake Thanks for your time Paul ################################################ mode(0) clear n = 10000; lower_bound = 0.1*n; upper_bound = 0.6*n; a = rand(n,1); b = string(a); // case 1 : eval on each row tic(); c = zeros((upper_bound-lower_bound),1); c(1:(upper_bound-lower_bound),1) = eval(b(1:(upper_bound-lower_bound),1)); duration1 = toc() // case 2 : eval on the complete matrix tic(); d = zeros((upper_bound-lower_bound),1); d = string(d); d = b([1:(upper_bound-lower_bound)],1); d = eval(d); duration2 = toc() // case 3 :with an uggly loop tic(); e = zeros((upper_bound-lower_bound),1); for i = 1 : (upper_bound - lower_bound) e(i,1) = eval(b(i+lower_bound-1,1)); end duration3 = toc() // case 4 :with an uggly loop (eval on the complete matrix) tic(); f = zeros((upper_bound-lower_bound),1); f = string(f); for i = 1 : (upper_bound - lower_bound) f(i,1) = b(i+lower_bound-1,1); end f = eval(f); duration3 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Thu Jun 29 10:55:53 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 29 Jun 2017 10:55:53 +0200 Subject: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7 In-Reply-To: References: <1440326479863-4032713.post@n3.nabble.com> <1498411303270-4036657.post@n3.nabble.com> Message-ID: <5012af39-429a-6ef3-5b6c-3ab518c158d2@durietz.se> Is there any solution for this with Windows 7 Professional? Or only a switch to Ubuntu after the kernel has been fixed ... ;-) Regards Stefan On 2017-06-25 23:10, Stefan Du Rietz wrote: > I have the same problem. I have uninstalled 6.0 and have then several > times uninstalled Scilab 5.5.2, deleted SCIHOME and reinstalled Scilab > 5.5.2, which worked before(!), to no avail ... > > /Stefan > > > On 2017-06-25 19:21, rlandersen wrote: >> I have the same problem. >> When I try to launch Scilab I get the the same error message described. >> >> I had Scilab 5.5.2 installed and working when the problem started. >> >> I tried uninstalling and installing version 6.00. >> Same error. >> >> Even deleting ........\AppData\Roaming\Scilab\ >> Still does not work. >> >> How can I proceed? >> >> >> >> >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/Scilab-users-can-not-create-Scilab-Java-Main-Class-after-installation-of-SL-5-5-0-32-on-windows-7-tp4030309p4036657.html >> >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Alexis.Cros at promes.cnrs.fr Fri Jun 30 12:32:52 2017 From: Alexis.Cros at promes.cnrs.fr (Alexis Cros) Date: Fri, 30 Jun 2017 12:32:52 +0200 Subject: [Scilab-users] my loop faster than vectorization (???) In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F824A5B@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F824A35@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953F824A5B@BGS-EX01.auxitrol.ad> Message-ID: <86df04f7-b241-5721-c252-e854e94643dd@promes.cnrs.fr> Hi, On my computer came, in order of rapidity, 1st case, 2nd, 4th then 3rd duration1 = 0.1907777 duration2 = 0.2304603 duration3 = 23.275328 wow! duration4 = 0.2531153 We may compare who has the best computer ^^ Le 29/06/2017 ? 09:56, Carrico, Paul a ?crit : > > Here is the correct code ? loop faster here (68 time faster with n = > 100 000) > > I?m confuse > > Paul > > ############################################################# > > mode(0) > > clear > > n= 10000; > > lower_bound= 0.1*n; > > upper_bound= 0.6*n; > > a= rand(n,1); > > b= string(a); > > /// case 1 : eval on each row/ > > _tic_(); > i=1:(upper_bound-lower_bound+1)'; > c(i,1)= zeros((upper_bound-lower_bound+1),1); > c(i,1)= _eval_(b(lower_bound:upper_bound,1)); > duration1= _toc_() > > /// case 2 : eval on the complete matrix/ > > _tic_(); > > d= zeros((upper_bound-lower_bound+1),1); > > d= string(d); > > d= b(lower_bound:upper_bound,1); > > d= _eval_(d); > > duration2= _toc_() > > /// case 3 :with an uggly loop/ > > _tic_(); > > e= zeros((upper_bound-lower_bound+1),1); > > fori = 1 : (upper_bound - lower_bound+1) > > e(i,1) = _eval_(b(i+lower_bound-1,1)); > > end > > duration3= _toc_() > > /// case 4 :with an uggly loop (eval on the complete matrix)/ > > _tic_(); > > f= zeros((upper_bound-lower_bound+1),1); > > f= string(f); > > fori = 1 : (upper_bound - lower_bound) > > f(i,1) = b(i+lower_bound-1,1); > > end > > f= _eval_(f); > > duration3= _toc_() > > */EXPORT CONTROL : > /**Cet email ne contient pas de donn?es techniques > This email does not contain technical data* > > *De :*users [mailto:users-bounces at lists.scilab.org] *De la part de* > Carrico, Paul > *Envoy? :* jeudi 29 juin 2017 09:29 > *? :* International users mailing list for Scilab. > (users at lists.scilab.org) > *Objet :* [EXTERNAL] [Scilab-users] my loop faster than vectorization > (???) > > Hi all > > I?m facing a case where a loop is faster than vectorization (at least > I hope I?m using vectorization) ... I?m necessarily doing something > wrong but I don?t see what > > Hope somebody will point out my mistake > > Thanks for your time > > Paul > > ################################################ > > mode(0) > > clear > > n= 10000; > > lower_bound= 0.1*n; > > upper_bound= 0.6*n; > > a= rand(n,1); > > b= string(a); > > /// case 1 : eval on each row/ > > _tic_(); > > c= zeros((upper_bound-lower_bound),1); > > c(1:(upper_bound-lower_bound),1)= > _eval_(b(1:(upper_bound-lower_bound),1)); > > duration1= _toc_() > > /// case 2 : eval on the complete matrix/ > > _tic_(); > > d= zeros((upper_bound-lower_bound),1); > > d= string(d); > > d= b([1:(upper_bound-lower_bound)],1); > > d= _eval_(d); > > duration2= _toc_() > > /// case 3 :with an uggly loop/ > > _tic_(); > > e= zeros((upper_bound-lower_bound),1); > > fori = 1 : (upper_bound - lower_bound) > > e(i,1) = _eval_(b(i+lower_bound-1,1)); > > end > > duration3= _toc_() > > /// case 4 :with an uggly loop (eval on the complete matrix)/ > > _tic_(); > > f= zeros((upper_bound-lower_bound),1); > > f= string(f); > > fori = 1 : (upper_bound - lower_bound) > > f(i,1) = b(i+lower_bound-1,1); > > end > > f= _eval_(f); > > duration3= _toc_() > > */EXPORT CONTROL : > /**Cet email ne contient pas de donn?es techniques > This email does not contain technical data* > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Jun 30 12:46:05 2017 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 30 Jun 2017 10:46:05 +0000 Subject: [Scilab-users] [EXTERNAL] Re: my loop faster than vectorization (???) In-Reply-To: <86df04f7-b241-5721-c252-e854e94643dd@promes.cnrs.fr> References: <3A6B7233274DB449A2A0053A47684F953F824A35@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953F824A5B@BGS-EX01.auxitrol.ad> <86df04f7-b241-5721-c252-e854e94643dd@promes.cnrs.fr> Message-ID: <3A6B7233274DB449A2A0053A47684F953F824E11@BGS-EX01.auxitrol.ad> Hi Interesting feedback, but different of mine :) With n=100000 with my working station under Windows 7.0 with Scilab 5.5.2 (from memory I noticed the same behavior on my old laptop under Ubuntu 16.04 LTS) duration1 = 93.057 duration2 = 108.325 duration3 = 1.279 duration3 = 135.178 Nota: nevertheless for huge asci files containing millions of lines (not in the same format of course) , I finally decided to "outsource" this work Paul EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de Alexis Cros Envoy? : vendredi 30 juin 2017 12:33 ? : Users mailing list for Scilab Objet : [EXTERNAL] Re: [Scilab-users] my loop faster than vectorization (???) Hi, On my computer came, in order of rapidity, 1st case, 2nd, 4th then 3rd duration1 = 0.1907777 duration2 = 0.2304603 duration3 = 23.275328 wow! duration4 = 0.2531153 We may compare who has the best computer ^^ Le 29/06/2017 ? 09:56, Carrico, Paul a ?crit : Here is the correct code - loop faster here (68 time faster with n = 100 000) I'm confuse Paul ############################################################# mode(0) clear n = 10000; lower_bound = 0.1*n; upper_bound = 0.6*n; a = rand(n,1); b = string(a); // case 1 : eval on each row tic(); i=1:(upper_bound-lower_bound+1)'; c(i,1) = zeros((upper_bound-lower_bound+1),1); c(i,1) = eval(b(lower_bound:upper_bound,1)); duration1 = toc() // case 2 : eval on the complete matrix tic(); d = zeros((upper_bound-lower_bound+1),1); d = string(d); d = b(lower_bound:upper_bound,1); d = eval(d); duration2 = toc() // case 3 :with an uggly loop tic(); e = zeros((upper_bound-lower_bound+1),1); for i = 1 : (upper_bound - lower_bound+1) e(i,1) = eval(b(i+lower_bound-1,1)); end duration3 = toc() // case 4 :with an uggly loop (eval on the complete matrix) tic(); f = zeros((upper_bound-lower_bound+1),1); f = string(f); for i = 1 : (upper_bound - lower_bound) f(i,1) = b(i+lower_bound-1,1); end f = eval(f); duration3 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de Carrico, Paul Envoy? : jeudi 29 juin 2017 09:29 ? : International users mailing list for Scilab. (users at lists.scilab.org) Objet : [EXTERNAL] [Scilab-users] my loop faster than vectorization (???) Hi all I'm facing a case where a loop is faster than vectorization (at least I hope I'm using vectorization) ... I'm necessarily doing something wrong but I don't see what Hope somebody will point out my mistake Thanks for your time Paul ################################################ mode(0) clear n = 10000; lower_bound = 0.1*n; upper_bound = 0.6*n; a = rand(n,1); b = string(a); // case 1 : eval on each row tic(); c = zeros((upper_bound-lower_bound),1); c(1:(upper_bound-lower_bound),1) = eval(b(1:(upper_bound-lower_bound),1)); duration1 = toc() // case 2 : eval on the complete matrix tic(); d = zeros((upper_bound-lower_bound),1); d = string(d); d = b([1:(upper_bound-lower_bound)],1); d = eval(d); duration2 = toc() // case 3 :with an uggly loop tic(); e = zeros((upper_bound-lower_bound),1); for i = 1 : (upper_bound - lower_bound) e(i,1) = eval(b(i+lower_bound-1,1)); end duration3 = toc() // case 4 :with an uggly loop (eval on the complete matrix) tic(); f = zeros((upper_bound-lower_bound),1); f = string(f); for i = 1 : (upper_bound - lower_bound) f(i,1) = b(i+lower_bound-1,1); end f = eval(f); duration3 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_boucles.sce Type: application/octet-stream Size: 919 bytes Desc: test_boucles.sce URL: From jrafaelbguerra at hotmail.com Fri Jun 30 19:22:38 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 30 Jun 2017 17:22:38 +0000 Subject: [Scilab-users] [EXTERNAL] Re: my loop faster than vectorization (???) In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F824A35@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953F824A5B@BGS-EX01.auxitrol.ad> <86df04f7-b241-5721-c252-e854e94643dd@promes.cnrs.fr> <3A6B7233274DB449A2A0053A47684F953F824E11@BGS-EX01.auxitrol.ad> Message-ID: Hi, For huge matrices of strings like your variable "b", eval() or evstr() do not seem to work efficiently in Scilab 5.5.2. However, if you have a fast hard disk (SSD), it will be comparatively lightning fast to do the conversion via I/O functions such as: csvWrite(b,"outb.csv"); c=csvRead("outb.csv"); Then use 'c' in your code, which has now typeof 'constant', with nor further need for eval/evstr. Rgds, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From erik.benkler at ptb.de Thu Jun 29 12:55:57 2017 From: erik.benkler at ptb.de (E_Ben) Date: Thu, 29 Jun 2017 03:55:57 -0700 (MST) Subject: [Scilab-users] addinter: Unknown error depending on scilab build In-Reply-To: <1498698621899-4036699.post@n3.nabble.com> References: <1498698621899-4036699.post@n3.nabble.com> Message-ID: <1498733757773-4036706.post@n3.nabble.com> I analysed my dlls in dependency walker, and it seems that some scilab dlls cannot be found (see screenshot attached below, the dll names are: ast.dll, libintl.dll, output_stream.dll). They are actually located in the SCI/bin folder. When I copy them into the folder where my dll is, still many dependent dlls also located in SCI/bin are not found by dependency walker. So, it seems that the scilab installations on which the dll can be loaded find the scilab dlls in SCI/bin, but those which cause an error don't find them. Any ideas what I can do instead of copying all dlls from the SCI/bin folder to the folder where my dll is? depwalk.png -- View this message in context: http://mailinglists.scilab.org/addinter-Unknown-error-depending-on-scilab-build-tp4036699p4036706.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Fri Jun 30 19:20:11 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 30 Jun 2017 17:20:11 +0000 Subject: [Scilab-users] [EXTERNAL] Re: my loop faster than vectorization (???) In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F824E11@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F824A35@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953F824A5B@BGS-EX01.auxitrol.ad> <86df04f7-b241-5721-c252-e854e94643dd@promes.cnrs.fr> <3A6B7233274DB449A2A0053A47684F953F824E11@BGS-EX01.auxitrol.ad> Message-ID: Hi, For huge matrices of strings like your variable "b", eval() or evstr() do not seem to work efficiently in Scilab 5.5.2. However, if you have a fast hard disk (SSD), it will be comparatively lightning fast to do the conversion via I/O functions such as: csvWrite(b,"outb.csv"); c=csvRead("outb.csv"); Then use c in your code, which has now type of 'constant', with nor further need for eval/evstr. Rgds, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Carrico, Paul Sent: Friday, June 30, 2017 12:46 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] [EXTERNAL] Re: my loop faster than vectorization (???) Hi Interesting feedback, but different of mine :) With n=100000 with my working station under Windows 7.0 with Scilab 5.5.2 (from memory I noticed the same behavior on my old laptop under Ubuntu 16.04 LTS) duration1 = 93.057 duration2 = 108.325 duration3 = 1.279 duration3 = 135.178 Nota: nevertheless for huge asci files containing millions of lines (not in the same format of course) , I finally decided to "outsource" this work Paul EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de Alexis Cros Envoy? : vendredi 30 juin 2017 12:33 ? : Users mailing list for Scilab Objet : [EXTERNAL] Re: [Scilab-users] my loop faster than vectorization (???) Hi, On my computer came, in order of rapidity, 1st case, 2nd, 4th then 3rd duration1 = 0.1907777 duration2 = 0.2304603 duration3 = 23.275328 wow! duration4 = 0.2531153 We may compare who has the best computer ^^ Le 29/06/2017 ? 09:56, Carrico, Paul a ?crit : Here is the correct code - loop faster here (68 time faster with n = 100 000) I'm confuse Paul ############################################################# mode(0) clear n = 10000; lower_bound = 0.1*n; upper_bound = 0.6*n; a = rand(n,1); b = string(a); // case 1 : eval on each row tic(); i=1:(upper_bound-lower_bound+1)'; c(i,1) = zeros((upper_bound-lower_bound+1),1); c(i,1) = eval(b(lower_bound:upper_bound,1)); duration1 = toc() // case 2 : eval on the complete matrix tic(); d = zeros((upper_bound-lower_bound+1),1); d = string(d); d = b(lower_bound:upper_bound,1); d = eval(d); duration2 = toc() // case 3 :with an uggly loop tic(); e = zeros((upper_bound-lower_bound+1),1); for i = 1 : (upper_bound - lower_bound+1) e(i,1) = eval(b(i+lower_bound-1,1)); end duration3 = toc() // case 4 :with an uggly loop (eval on the complete matrix) tic(); f = zeros((upper_bound-lower_bound+1),1); f = string(f); for i = 1 : (upper_bound - lower_bound) f(i,1) = b(i+lower_bound-1,1); end f = eval(f); duration3 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de Carrico, Paul Envoy? : jeudi 29 juin 2017 09:29 ? : International users mailing list for Scilab. (users at lists.scilab.org) Objet : [EXTERNAL] [Scilab-users] my loop faster than vectorization (???) Hi all I'm facing a case where a loop is faster than vectorization (at least I hope I'm using vectorization) ... I'm necessarily doing something wrong but I don't see what Hope somebody will point out my mistake Thanks for your time Paul ################################################ mode(0) clear n = 10000; lower_bound = 0.1*n; upper_bound = 0.6*n; a = rand(n,1); b = string(a); // case 1 : eval on each row tic(); c = zeros((upper_bound-lower_bound),1); c(1:(upper_bound-lower_bound),1) = eval(b(1:(upper_bound-lower_bound),1)); duration1 = toc() // case 2 : eval on the complete matrix tic(); d = zeros((upper_bound-lower_bound),1); d = string(d); d = b([1:(upper_bound-lower_bound)],1); d = eval(d); duration2 = toc() // case 3 :with an uggly loop tic(); e = zeros((upper_bound-lower_bound),1); for i = 1 : (upper_bound - lower_bound) e(i,1) = eval(b(i+lower_bound-1,1)); end duration3 = toc() // case 4 :with an uggly loop (eval on the complete matrix) tic(); f = zeros((upper_bound-lower_bound),1); f = string(f); for i = 1 : (upper_bound - lower_bound) f(i,1) = b(i+lower_bound-1,1); end f = eval(f); duration3 = toc() EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: