From sylvestre.ledru at scilab-enterprises.com Sun Apr 1 18:53:33 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sun, 01 Apr 2012 18:53:33 +0200 Subject: [scilab-Users] recovering the text of a web page from internet In-Reply-To: References: Message-ID: <1333299213.4153.121.camel@pomegues.inria.fr> Hello Eric, Scilab Remote File Access is probably what you are looking for: http://forge.scilab.org/index.php/p/scicurl/ It is not yet packaged into ATOMS (but probably soon will be). Feedbacks are welcome, Sylvestre Le mercredi 14 mars 2012 ? 21:58 +0100, Eric Dubois a ?crit : > Hello > > > Does anyone know how to recover the (text) content of a web page from > Scilab (as it is possible with function dowlaod.file in R software)? > > > Thanks for your answer!. > > > Eric. -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From grocer.toolbox at gmail.com Sun Apr 1 21:39:15 2012 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sun, 1 Apr 2012 21:39:15 +0200 Subject: [scilab-Users] recovering the text of a web page from internet In-Reply-To: <1333299213.4153.121.camel@pomegues.inria.fr> References: <1333299213.4153.121.camel@pomegues.inria.fr> Message-ID: Thank you Sylvestre. I will have a look as soon as it is available with Atoms. ?ric Le 1 avr. 2012 18:54, "Sylvestre Ledru" < sylvestre.ledru at scilab-enterprises.com> a ?crit : > Hello Eric, > > Scilab Remote File Access is probably what you are looking for: > http://forge.scilab.org/index.php/p/scicurl/ > > It is not yet packaged into ATOMS (but probably soon will be). > > Feedbacks are welcome, > Sylvestre > > Le mercredi 14 mars 2012 ? 21:58 +0100, Eric Dubois a ?crit : > > Hello > > > > > > Does anyone know how to recover the (text) content of a web page from > > Scilab (as it is possible with function dowlaod.file in R software)? > > > > > > Thanks for your answer!. > > > > > > Eric. > > -- > ----------------------------- > Sylvestre Ledru > Operation manager > Community manager > ----------------------------- > Scilab Enterprises > http://www.scilab-enterprises.com/ > http://www.scilab.org/ > ----------------------------- > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfabbri at gmail.com Mon Apr 2 02:59:17 2012 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Sun, 1 Apr 2012 21:59:17 -0300 Subject: SIP and Scilab paper on the arXiv Message-ID: Hi, I uploaded a fairly complete preprint of a paper I've been writing on SIP+Scilab for image processing. It can be found on the arXiv: http://arxiv.org/abs/1203.4009v1 It even includes a mini tutorial on Scilab. Let me know of any wishes and corrections, as we're preparing a meatier paper for Linux Journal. One way to cite this work in Latex is though the following Bibtex entry: @article{Fabbri:etal:Arxiv2012, title={Scilab and {SIP} for Image Processing}, author={Fabbri, R. and Bruno, O. M. and Costa, L.F.}, journal={Arxiv preprint arXiv:1203.4009}, year={2012} } Best regards, Ricardo Fabbri -- Linux registered user #175401 www.lems.brown.edu/~rfabbri pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net From ametzger at kynen.com Mon Apr 2 09:44:12 2012 From: ametzger at kynen.com (Aaron Metzger) Date: Mon, 02 Apr 2012 03:44:12 -0400 Subject: [scilab-Users] SIP and Scilab paper on the arXiv In-Reply-To: References: Message-ID: <4F7958CC.7040906@kynen.com> On 04/01/2012 08:59 PM, Ricardo Fabbri wrote: > Hi, > > I uploaded a fairly complete preprint of a paper I've been writing on > SIP+Scilab > for image processing. It can be found on the arXiv: A very nice paper. I hope that it does get published in Linux Journal to further expose the power of Scilab to community. One problem that I saw with the paper.... You reference the ENRICO add-on here: > http://www.weizmann.ac.il/~fesegre/scistuff.html That link works, but on his page, the links appear to be dead and I could find no alternative location to download from. DEAD: > http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ENRICO-0.10.4.tgz DEAD: > http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ Does your article depend on this add-on? You'll leave your readers in a tough spot if they can't run the examples. From antoine.monmayrant at laas.fr Mon Apr 2 13:57:12 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 02 Apr 2012 13:57:12 +0200 Subject: [scilab-Users] SIP and Scilab paper on the arXiv In-Reply-To: <4F7958CC.7040906@kynen.com> References: <4F7958CC.7040906@kynen.com> Message-ID: <4F799418.3030700@laas.fr> On 02/04/2012 09:44, Aaron Metzger wrote: > On 04/01/2012 08:59 PM, Ricardo Fabbri wrote: >> Hi, >> >> I uploaded a fairly complete preprint of a paper I've been writing on >> SIP+Scilab >> for image processing. It can be found on the arXiv: > > A very nice paper. > I hope that it does get published in Linux Journal to further expose > the power of Scilab to community. > > One problem that I saw with the paper.... > > You reference the ENRICO add-on here: > >> http://www.weizmann.ac.il/~fesegre/scistuff.html > > That link works, but on his page, the links appear to be dead and I > could find no alternative location to download from. > > > DEAD: >> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ENRICO-0.10.4.tgz >> > > DEAD: >> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ > > > Does your article depend on this add-on? > You'll leave your readers in a tough spot if they can't run the examples. Moreover, pointing to a page that states "I became very skeptic about the true openness of Scilab" might not be the best way to promote Scilab ! Antoine > > > > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From rfabbri at gmail.com Mon Apr 2 17:04:30 2012 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Mon, 2 Apr 2012 12:04:30 -0300 Subject: [scilab-Users] SIP and Scilab paper on the arXiv In-Reply-To: <4F799418.3030700@laas.fr> References: <4F7958CC.7040906@kynen.com> <4F799418.3030700@laas.fr> Message-ID: Hi, that's why it is a preprint. Dependence on ENRICO's toolbox, which was good a few years ago, has to be removed, but currently some parts of the paper do depend on it. I can't get good 3D renderings without ENRICO. But that's because I need to update that part to use current tools. For LJ I will definitely update that part. Any other suggestions are welcome. Best regards, Ricardo Fabbri -- Linux registered user #175401 www.lems.brown.edu/~rfabbri pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net On Mon, Apr 2, 2012 at 8:57 AM, Antoine Monmayrant wrote: > On 02/04/2012 09:44, Aaron Metzger wrote: >> >> On 04/01/2012 08:59 PM, Ricardo Fabbri wrote: >>> >>> Hi, >>> >>> I uploaded a fairly complete preprint of a paper I've been writing on >>> SIP+Scilab >>> for image processing. It can be found on the arXiv: >> >> >> A very nice paper. >> I hope that it does get published in Linux Journal to further expose the >> power of Scilab to community. >> >> One problem that I saw with the paper.... >> >> You reference the ENRICO add-on here: >> >>> http://www.weizmann.ac.il/~fesegre/scistuff.html >> >> >> That link works, but on his page, the links appear to be dead and I could >> find no alternative location to download from. >> >> >> DEAD: >>> >>> >>> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ENRICO-0.10.4.tgz >> >> >> DEAD: >>> >>> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ >> >> >> >> Does your article depend on this add-on? >> You'll leave your readers in a tough spot if they can't run the examples. > > Moreover, pointing to a page that states "I became very skeptic about the > true openness of Scilab" might not be the best way to promote Scilab ! > > Antoine > >> >> >> >> >> >> -- >> To unsubscribe from this mailing-list, please send an empty mail to >> users-unsubscribe at lists.scilab.org >> To check the archives of this mailing list, see >> http://mailinglists.scilab.org/ >> > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From antoine.monmayrant at laas.fr Mon Apr 2 17:09:48 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 02 Apr 2012 17:09:48 +0200 Subject: [scilab-Users] SIP and Scilab paper on the arXiv In-Reply-To: References: <4F7958CC.7040906@kynen.com> <4F799418.3030700@laas.fr> Message-ID: <4F79C13C.5090001@laas.fr> On 02/04/2012 17:04, Ricardo Fabbri wrote: > Hi, > > that's why it is a preprint. Dependence on ENRICO's toolbox, which was > good a few years ago, > has to be removed, but currently some parts of the paper do depend on > it. I can't get good 3D renderings without ENRICO. But that's because > I need to update that part to use current tools. > > For LJ I will definitely update that part. Any other suggestions are welcome. What about http://atoms.scilab.org/toolboxes/plotlib ? > Best regards, > Ricardo Fabbri > -- > Linux registered user #175401 > www.lems.brown.edu/~rfabbri > pt.wikipedia.org/wiki/IPRJ > labmacambira.sf.net > > > > On Mon, Apr 2, 2012 at 8:57 AM, Antoine Monmayrant > wrote: >> On 02/04/2012 09:44, Aaron Metzger wrote: >>> On 04/01/2012 08:59 PM, Ricardo Fabbri wrote: >>>> Hi, >>>> >>>> I uploaded a fairly complete preprint of a paper I've been writing on >>>> SIP+Scilab >>>> for image processing. It can be found on the arXiv: >>> >>> A very nice paper. >>> I hope that it does get published in Linux Journal to further expose the >>> power of Scilab to community. >>> >>> One problem that I saw with the paper.... >>> >>> You reference the ENRICO add-on here: >>> >>>> http://www.weizmann.ac.il/~fesegre/scistuff.html >>> >>> That link works, but on his page, the links appear to be dead and I could >>> find no alternative location to download from. >>> >>> >>> DEAD: >>>> >>>> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ENRICO-0.10.4.tgz >>> >>> DEAD: >>>> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ >>> >>> >>> Does your article depend on this add-on? >>> You'll leave your readers in a tough spot if they can't run the examples. >> Moreover, pointing to a page that states "I became very skeptic about the >> true openness of Scilab" might not be the best way to promote Scilab ! >> >> Antoine >> >>> >>> >>> >>> >>> -- >>> To unsubscribe from this mailing-list, please send an empty mail to >>> users-unsubscribe at lists.scilab.org >>> To check the archives of this mailing list, see >>> http://mailinglists.scilab.org/ >>> >> >> -- >> To unsubscribe from this mailing-list, please send an empty mail to >> users-unsubscribe at lists.scilab.org >> To check the archives of this mailing list, see >> http://mailinglists.scilab.org/ >> > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From wwink2 at mindspring.com Mon Apr 2 17:19:56 2012 From: wwink2 at mindspring.com (wynn h. winkler) Date: Mon, 02 Apr 2012 15:19:56 +0000 Subject: v5.3.3/WinXP/SP2 Atoms failure Message-ID: <4F79C39C.4080309@mindspring.com> v5.3.3 installed and working under Win XP/SP2 except for all the atoms calls and gui interface. The general problem is that windows.gz is not working or where it should be. It seems to get renamed to '1_TOOLBOXES.' . I can download and unpack windows.gz to a file called 'windows' but then what? How should it be installed and where? Are there any workarounds - even downloading/installing atoms modules without atoms commands? Problem seems to match this discussion: http://mailinglists.scilab.org/Using-ATOMS-Modules-td2618719.html the discussion ended with a recommendation to report a bug. I don't see this bug on the bug tracker although 10846 may be similar. ==== end of file ================================ From vogt at centre-cired.fr Mon Apr 2 17:41:26 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 02 Apr 2012 17:41:26 +0200 Subject: [SPAM] export_to_hdf5 Message-ID: <4F79C8A6.5080805@centre-cired.fr> hi can anyone give me a link to the doc of export_to_hdf5 i am aware it is beta and everything thanks -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 *73 77* -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Mon Apr 2 17:43:12 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Mon, 02 Apr 2012 17:43:12 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F79C8A6.5080805@centre-cired.fr> References: <4F79C8A6.5080805@centre-cired.fr> Message-ID: <4F79C910.3050203@scilab-enterprises.com> On 02/04/2012 17:41, Adrien Vogt-Schilb wrote: > hi > > can anyone give me a link to the doc of > export_to_hdf5 > > i am aware it is beta and everything There is no doc but the behavior is the same as save() expect that the name of the variable has to be quoted: a=eye (2,2);b=ones (a); save('val.dat',a,b); becomes save('val.dat',"a","b"); As you said, it is beta and everything ;) S -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From vogt at centre-cired.fr Mon Apr 2 17:46:55 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 02 Apr 2012 17:46:55 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F79C910.3050203@scilab-enterprises.com> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> Message-ID: <4F79C9EF.4020806@centre-cired.fr> On 02/04/2012 17:43, Sylvestre Ledru wrote: > On 02/04/2012 17:41, Adrien Vogt-Schilb wrote: >> hi >> >> can anyone give me a link to the doc of >> export_to_hdf5 >> >> i am aware it is beta and everything > There is no doc but the behavior is the same as save() expect that the > name of the variable has to be quoted: > > a=eye (2,2);b=ones > (a); > save('val.dat',a,b); > becomes > save('val.dat',"a","b"); > > As you said, it is beta and everything ;) > > S > > thanks is there an equivalent of listvarinfile ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Mon Apr 2 18:00:35 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 02 Apr 2012 18:00:35 +0200 Subject: [SPAM] save variables in an existing file Message-ID: <4F79CD23.30700@centre-cired.fr> Hy Does anybody knows a way to save various varibales in a single files in scilab? the help file says this can be done with save, but the given example does not work (http://bugzilla.scilab.org/show_bug.cgi?id=10928) thanks -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 *73 77* -------------- next part -------------- An HTML attachment was scrubbed... URL: From nakabisha at gmail.com Mon Apr 2 18:29:10 2012 From: nakabisha at gmail.com (N.N.) Date: Mon, 2 Apr 2012 18:29:10 +0200 Subject: [scilab-Users] SIP and Scilab paper on the arXiv In-Reply-To: <4F79C13C.5090001@laas.fr> References: <4F7958CC.7040906@kynen.com> <4F799418.3030700@laas.fr> <4F79C13C.5090001@laas.fr> Message-ID: Hello, Is it possible to give me the arXiv url for the preprint paper please. I am only 2 months on this list. Alain. BELGIUM On 4/2/12, Antoine Monmayrant wrote: > On 02/04/2012 17:04, Ricardo Fabbri wrote: >> Hi, >> >> that's why it is a preprint. Dependence on ENRICO's toolbox, which was >> good a few years ago, >> has to be removed, but currently some parts of the paper do depend on >> it. I can't get good 3D renderings without ENRICO. But that's because >> I need to update that part to use current tools. >> >> For LJ I will definitely update that part. Any other suggestions are >> welcome. > What about http://atoms.scilab.org/toolboxes/plotlib ? >> Best regards, >> Ricardo Fabbri >> -- >> Linux registered user #175401 >> www.lems.brown.edu/~rfabbri >> pt.wikipedia.org/wiki/IPRJ >> labmacambira.sf.net >> >> >> >> On Mon, Apr 2, 2012 at 8:57 AM, Antoine Monmayrant >> wrote: >>> On 02/04/2012 09:44, Aaron Metzger wrote: >>>> On 04/01/2012 08:59 PM, Ricardo Fabbri wrote: >>>>> Hi, >>>>> >>>>> I uploaded a fairly complete preprint of a paper I've been writing on >>>>> SIP+Scilab >>>>> for image processing. It can be found on the arXiv: >>>> >>>> A very nice paper. >>>> I hope that it does get published in Linux Journal to further expose the >>>> power of Scilab to community. >>>> >>>> One problem that I saw with the paper.... >>>> >>>> You reference the ENRICO add-on here: >>>> >>>>> http://www.weizmann.ac.il/~fesegre/scistuff.html >>>> >>>> That link works, but on his page, the links appear to be dead and I >>>> could >>>> find no alternative location to download from. >>>> >>>> >>>> DEAD: >>>>> >>>>> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ENRICO-0.10.4.tgz >>>> >>>> DEAD: >>>>> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ >>>> >>>> >>>> Does your article depend on this add-on? >>>> You'll leave your readers in a tough spot if they can't run the >>>> examples. >>> Moreover, pointing to a page that states "I became very skeptic about the >>> true openness of Scilab" might not be the best way to promote Scilab ! >>> >>> Antoine >>> >>>> >>>> >>>> >>>> >>>> -- >>>> To unsubscribe from this mailing-list, please send an empty mail to >>>> users-unsubscribe at lists.scilab.org >>>> To check the archives of this mailing list, see >>>> http://mailinglists.scilab.org/ >>>> >>> >>> -- >>> To unsubscribe from this mailing-list, please send an empty mail to >>> users-unsubscribe at lists.scilab.org >>> To check the archives of this mailing list, see >>> http://mailinglists.scilab.org/ >>> >> -- >> To unsubscribe from this mailing-list, please send an empty mail to >> users-unsubscribe at lists.scilab.org >> To check the archives of this mailing list, see >> http://mailinglists.scilab.org/ >> > > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > -- Complex numbers: They are all fun and games until someone loses an i. From antoine.monmayrant at laas.fr Mon Apr 2 20:43:55 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 02 Apr 2012 20:43:55 +0200 Subject: [scilab-Users] [SPAM] save variables in an existing file In-Reply-To: <4F79CD23.30700@centre-cired.fr> References: <4F79CD23.30700@centre-cired.fr> Message-ID: <4F79F36B.9060006@laas.fr> Le 02/04/12 18:00, Adrien Vogt-Schilb a ?crit : > Hy > > Does anybody knows a way to save various varibales in a single files > in scilab? Yop: a=1;b=2; save("ab.mat",a,b); listvarinfile("ab.mat"); clear a b; load("ab.mat"); > > the help file says this can be done with save, but the given example > does not work (http://bugzilla.scilab.org/show_bug.cgi?id=10928) > > thanks > > -- > Adrien Vogt-Schilb (Cired) > Tel: (+33) 1 43 94 *73 77* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfabbri at gmail.com Tue Apr 3 03:43:09 2012 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Mon, 2 Apr 2012 22:43:09 -0300 Subject: [scilab-Users] SIP and Scilab paper on the arXiv In-Reply-To: References: <4F7958CC.7040906@kynen.com> <4F799418.3030700@laas.fr> <4F79C13C.5090001@laas.fr> Message-ID: http://arxiv.org/abs/1203.4009v1 Ricardo Fabbri -- Linux registered user #175401 www.lems.brown.edu/~rfabbri pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net On Mon, Apr 2, 2012 at 1:29 PM, N.N. wrote: > Hello, > > Is it possible to give me the arXiv url for the preprint paper please. > I am only 2 months on this list. > > Alain. > BELGIUM > > On 4/2/12, Antoine Monmayrant wrote: >> On 02/04/2012 17:04, Ricardo Fabbri wrote: >>> Hi, >>> >>> that's why it is a preprint. Dependence on ENRICO's toolbox, which was >>> good a few years ago, >>> has to be removed, but currently some parts of the paper do depend on >>> it. I can't get good 3D renderings without ENRICO. But that's because >>> I need to update that part to use current tools. >>> >>> For LJ I will definitely update that part. Any other suggestions are >>> welcome. >> What about http://atoms.scilab.org/toolboxes/plotlib ? >>> Best regards, >>> Ricardo Fabbri >>> -- >>> Linux registered user #175401 >>> www.lems.brown.edu/~rfabbri >>> pt.wikipedia.org/wiki/IPRJ >>> labmacambira.sf.net >>> >>> >>> >>> On Mon, Apr 2, 2012 at 8:57 AM, Antoine Monmayrant >>> ?wrote: >>>> On 02/04/2012 09:44, Aaron Metzger wrote: >>>>> On 04/01/2012 08:59 PM, Ricardo Fabbri wrote: >>>>>> Hi, >>>>>> >>>>>> I uploaded a fairly complete preprint of a paper I've been writing on >>>>>> SIP+Scilab >>>>>> for image processing. It can be found on the arXiv: >>>>> >>>>> A very nice paper. >>>>> I hope that it does get published in Linux Journal to further expose the >>>>> power of Scilab to community. >>>>> >>>>> One problem that I saw with the paper.... >>>>> >>>>> You reference the ENRICO add-on here: >>>>> >>>>>> http://www.weizmann.ac.il/~fesegre/scistuff.html >>>>> >>>>> That link works, but on his page, the links appear to be dead and I >>>>> could >>>>> find no alternative location to download from. >>>>> >>>>> >>>>> DEAD: >>>>>> >>>>>> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ENRICO-0.10.4.tgz >>>>> >>>>> DEAD: >>>>>> http://www.weizmann.ac.il/home/fesegre/scistuff/versions/ >>>>> >>>>> >>>>> Does your article depend on this add-on? >>>>> You'll leave your readers in a tough spot if they can't run the >>>>> examples. >>>> Moreover, pointing to a page that states "I became very skeptic about the >>>> true openness of Scilab" might not be the best way to promote Scilab ! >>>> >>>> Antoine >>>> >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> To unsubscribe from this mailing-list, please send an empty mail to >>>>> users-unsubscribe at lists.scilab.org >>>>> To check the archives of this mailing list, see >>>>> http://mailinglists.scilab.org/ >>>>> >>>> >>>> -- >>>> To unsubscribe from this mailing-list, please send an empty mail to >>>> users-unsubscribe at lists.scilab.org >>>> To check the archives of this mailing list, see >>>> http://mailinglists.scilab.org/ >>>> >>> -- >>> To unsubscribe from this mailing-list, please send an empty mail to >>> users-unsubscribe at lists.scilab.org >>> To check the archives of this mailing list, see >>> http://mailinglists.scilab.org/ >>> >> >> >> >> -- >> To unsubscribe from this mailing-list, please send an empty mail to >> users-unsubscribe at lists.scilab.org >> To check the archives of this mailing list, see >> http://mailinglists.scilab.org/ >> >> > > > -- > Complex numbers: They are all fun and games until someone loses an i. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From antoine.monmayrant at laas.fr Tue Apr 3 11:14:15 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 03 Apr 2012 11:14:15 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F79C910.3050203@scilab-enterprises.com> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> Message-ID: <4F7ABF67.602@laas.fr> On 02/04/2012 17:43, Sylvestre Ledru wrote: > On 02/04/2012 17:41, Adrien Vogt-Schilb wrote: >> hi >> >> can anyone give me a link to the doc of >> export_to_hdf5 >> >> i am aware it is beta and everything > There is no doc but the behavior is the same as save() expect that the > name of the variable has to be quoted: > > a=eye (2,2);b=ones > (a); > save('val.dat',a,b); > becomes > save('val.dat',"a","b"); > > As you said, it is beta and everything ;) Hi Sylvestre, Could you tell us more about hdf5 support in Scilab? Any chance to see Scilab able to open h5 files generated by other programs, like Matlab does? I ask this because many colleagues in my field stick to Matlab just for this reason. There are two famous open source softs in my field that outputs h5 : http://ab-initio.mit.edu/wiki/index.php/Meep and http://ab-initio.mit.edu/wiki/index.php/MIT_Photonic_Bands . Any chance to be able to directly load these outputs in Scilab? Cheers, Antoine PS: not that I am particularly competent, but I can give a hand to implement this functionality! > > S > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From sylvestre.ledru at scilab-enterprises.com Tue Apr 3 11:24:19 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 03 Apr 2012 11:24:19 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F7ABF67.602@laas.fr> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> <4F7ABF67.602@laas.fr> Message-ID: <4F7AC1C3.8000900@scilab-enterprises.com> On 03/04/2012 11:14, Antoine Monmayrant wrote: > On 02/04/2012 17:43, Sylvestre Ledru wrote: >> On 02/04/2012 17:41, Adrien Vogt-Schilb wrote: >>> hi >>> >>> can anyone give me a link to the doc of >>> export_to_hdf5 >>> >>> i am aware it is beta and everything >> There is no doc but the behavior is the same as save() expect that >> the name of the variable has to be quoted: >> >> a=eye (2,2);b=ones >> (a); >> save('val.dat',a,b); >> becomes >> save('val.dat',"a","b"); >> >> As you said, it is beta and everything ;) > Hi Sylvestre, > > Could you tell us more about hdf5 support in Scilab? Sure! > Any chance to see Scilab able to open h5 files generated by other > programs, like Matlab does? Yes, it is on roadmap. It was planned for the 5.4.0 but, unfortunately, we won't be able to make it happen for this release. I hope it will be released for the 5.4.1. However, we will release the 5.4.0 with HDF5 as the default format for load and save with a fully documented format (but the previous format will still be available in the 5 family). About matlab, what is your opinion about their API ? > > Cheers, > > Antoine > > PS: not that I am particularly competent, but I can give a hand to > implement this functionality! I don't think it is a really development. It is more a problem to hide the complexity of HDF5 to users and to present correctly the data using Scilab default datatypes. Sylvestre -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From remy.abergel at parisdescartes.fr Tue Apr 3 13:37:05 2012 From: remy.abergel at parisdescartes.fr (Remy_Abergel) Date: Tue, 3 Apr 2012 04:37:05 -0700 (PDT) Subject: Use of SendScilabJob Message-ID: <1333453025975-3880580.post@n3.nabble.com> Hello, I would like to interface in Scilab a C code that uses "SendScilabJob". Here is a very simple code that I am unsuccessfully trying to make work. #include "api_scilab.h" #include "call_scilab.h" #include "stack-c.h" #include "sciprint.h" void hello() { int res = SendScilabJob("disp(''hello'')"); sciprint("res=%d",res); } int interface_hello(char *fname) { CheckRhs(0,0) ; CheckLhs(0,1) ; hello(); return 0; } The builder is simply made of the line: ilib_build('libhello',['hello', 'interface_hello'],['hello.c'],[]) When I run "hello()" in Scilab, the SendScilabJob is not correctly executed (res=-1 which means that the call_Scilab engine is not started) If I change my function hello into: void hello() { StartScilab(getenv("SCI"),NULL,NULL); SendScilabJob("disp(''hello'')"); } then a call to "hello()" crashes Scilab. I tryied on 2 different computers with the version 5.3.3 of Scilab. It seems there is a problem with JVM lib (a message appears in my linux terminal saying that Scilab cannot open JVM library) but I do not understand what is going wrong. My wish is that typing "hello()" in my Scilab console, my c code runs, and sends the "disp('hello')" instruction *to the same* Scilab console. It would be very useful to me if I could achieve that, thank you for your responses. R?my -- View this message in context: http://mailinglists.scilab.org/Use-of-SendScilabJob-tp3880580p3880580.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From allan.cornet at scilab.org Tue Apr 3 13:50:33 2012 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 3 Apr 2012 13:50:33 +0200 Subject: [scilab-Users] Use of SendScilabJob In-Reply-To: <1333453025975-3880580.post@n3.nabble.com> References: <1333453025975-3880580.post@n3.nabble.com> Message-ID: <002a01cd118f$fa4fed30$eeefc790$@scilab.org> Hi, >From a C/C++ gateway of Scilab, the current good way to do is: http://wiki.scilab.org/Calling%20a%20scilab%20function%20%28macros%29%20from%20a%20C%20interface SendScilabJob must be used from a external app and not scilab Allan -----Message d'origine----- De : Remy_Abergel [mailto:remy.abergel at parisdescartes.fr] Envoy? : mardi 3 avril 2012 13:37 ? : users at lists.scilab.org Objet : [scilab-Users] Use of SendScilabJob Hello, I would like to interface in Scilab a C code that uses "SendScilabJob". Here is a very simple code that I am unsuccessfully trying to make work. #include "api_scilab.h" #include "call_scilab.h" #include "stack-c.h" #include "sciprint.h" void hello() { int res = SendScilabJob("disp(''hello'')"); sciprint("res=%d",res); } int interface_hello(char *fname) { CheckRhs(0,0) ; CheckLhs(0,1) ; hello(); return 0; } The builder is simply made of the line: ilib_build('libhello',['hello', 'interface_hello'],['hello.c'],[]) When I run "hello()" in Scilab, the SendScilabJob is not correctly executed (res=-1 which means that the call_Scilab engine is not started) If I change my function hello into: void hello() { StartScilab(getenv("SCI"),NULL,NULL); SendScilabJob("disp(''hello'')"); } then a call to "hello()" crashes Scilab. I tryied on 2 different computers with the version 5.3.3 of Scilab. It seems there is a problem with JVM lib (a message appears in my linux terminal saying that Scilab cannot open JVM library) but I do not understand what is going wrong. My wish is that typing "hello()" in my Scilab console, my c code runs, and sends the "disp('hello')" instruction *to the same* Scilab console. It would be very useful to me if I could achieve that, thank you for your responses. R?my -- View this message in context: http://mailinglists.scilab.org/Use-of-SendScilabJob-tp3880580p3880580.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -- To unsubscribe from this mailing-list, please send an empty mail to users-unsubscribe at lists.scilab.org To check the archives of this mailing list, see http://mailinglists.scilab.org/ From sylvestre.ledru at scilab-enterprises.com Tue Apr 3 13:51:35 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 03 Apr 2012 13:51:35 +0200 Subject: [scilab-Users] Use of SendScilabJob In-Reply-To: <1333453025975-3880580.post@n3.nabble.com> References: <1333453025975-3880580.post@n3.nabble.com> Message-ID: <4F7AE447.5040700@scilab-enterprises.com> Salut R?my, On 03/04/2012 13:37, Remy_Abergel wrote: > Hello, > > I would like to interface in Scilab a C code that uses "SendScilabJob". > Here is a very simple code that I am unsuccessfully trying to make work. > > #include "api_scilab.h" > #include "call_scilab.h" > #include "stack-c.h" > #include "sciprint.h" > > void hello() > { > int res = SendScilabJob("disp(''hello'')"); > sciprint("res=%d",res); > } > > int interface_hello(char *fname) > { > CheckRhs(0,0) ; > CheckLhs(0,1) ; > hello(); > return 0; > } > > The builder is simply made of the line: ilib_build('libhello',['hello', > 'interface_hello'],['hello.c'],[]) > When I run "hello()" in Scilab, the SendScilabJob is not correctly executed > (res=-1 which means that the call_Scilab engine is not started) > The problem is probably due to the fact that you are mixing two different things: * call_scilab should be used when you want to use Scilab as a computing engine from a thirdparty applications * api_scilab is used when you want to extend the features of Scilab by adding a new function. SendScilabJob has not been designed nor tested to be used inside a gateway. Sylvestre -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From remy.abergel at parisdescartes.fr Tue Apr 3 13:59:30 2012 From: remy.abergel at parisdescartes.fr (Remy_Abergel) Date: Tue, 3 Apr 2012 04:59:30 -0700 (PDT) Subject: Use of SendScilabJob In-Reply-To: <4F7AE447.5040700@scilab-enterprises.com> References: <1333453025975-3880580.post@n3.nabble.com> <4F7AE447.5040700@scilab-enterprises.com> Message-ID: <1333454370113-3880631.post@n3.nabble.com> Sylvestre, Allan, Thank you very much for your answers. I understand now... I'm going to try with Allan script. ? bient?t :) R?my. -- View this message in context: http://mailinglists.scilab.org/Use-of-SendScilabJob-tp3880580p3880631.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue Apr 3 14:13:44 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 03 Apr 2012 14:13:44 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F7AC1C3.8000900@scilab-enterprises.com> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> <4F7ABF67.602@laas.fr> <4F7AC1C3.8000900@scilab-enterprises.com> Message-ID: <4F7AE978.8040205@laas.fr> On 03/04/2012 11:24, Sylvestre Ledru wrote: > On 03/04/2012 11:14, Antoine Monmayrant wrote: >> On 02/04/2012 17:43, Sylvestre Ledru wrote: >>> On 02/04/2012 17:41, Adrien Vogt-Schilb wrote: >>>> hi >>>> >>>> can anyone give me a link to the doc of >>>> export_to_hdf5 >>>> >>>> i am aware it is beta and everything >>> There is no doc but the behavior is the same as save() expect that >>> the name of the variable has to be quoted: >>> >>> a=eye (2,2);b=ones >>> (a); >>> save('val.dat',a,b); >>> becomes >>> save('val.dat',"a","b"); >>> >>> As you said, it is beta and everything ;) >> Hi Sylvestre, >> >> Could you tell us more about hdf5 support in Scilab? > Sure! > >> Any chance to see Scilab able to open h5 files generated by other >> programs, like Matlab does? > Yes, it is on roadmap. It was planned for the 5.4.0 but, > unfortunately, we won't be able to make it happen for this release. > I hope it will be released for the 5.4.1. > However, we will release the 5.4.0 with HDF5 as the default format for > load and save with a fully documented format (but the previous format > will still be available in the 5 family). > > About matlab, what is your opinion about their API ? Well, I used it rarely, relying on the "import-wizard-for-dummy". But I like the "api" that is used in both MEEP and MPB and that rely on h5utils: http://ab-initio.mit.edu/wiki/index.php/H5utils They also provide "h5read.oct" to import their h5 in Octave. It could be interesting to use the same kind of syntax for Scilab... > >> >> Cheers, >> >> Antoine >> >> PS: not that I am particularly competent, but I can give a hand to >> implement this functionality! > I don't think it is a really development. It is more a problem to hide > the complexity of HDF5 to users and to present correctly the data > using Scilab default datatypes. > > Sylvestre > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From renoirvieira at gmail.com Tue Apr 3 16:54:15 2012 From: renoirvieira at gmail.com (Renoir Vieira) Date: Tue, 3 Apr 2012 11:54:15 -0300 Subject: [scilab-Users] Re: Use of SendScilabJob In-Reply-To: <1333454370113-3880631.post@n3.nabble.com> References: <1333453025975-3880580.post@n3.nabble.com> <4F7AE447.5040700@scilab-enterprises.com> <1333454370113-3880631.post@n3.nabble.com> Message-ID: <928A4DC5-00AA-456E-9537-AE5F2620FD0E@gmail.com> Is there a way to sendjob to scilab from a c# class? Sent from my iPhone On 03/04/2012, at 08:59, Remy_Abergel wrote: > Sylvestre, Allan, > Thank you very much for your answers. I understand now... I'm going to try > with Allan script. > > ? bient?t :) > R?my. > > > -- > View this message in context: http://mailinglists.scilab.org/Use-of-SendScilabJob-tp3880580p3880631.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From allan.cornet at scilab.org Tue Apr 3 16:59:07 2012 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 3 Apr 2012 16:59:07 +0200 Subject: [scilab-Users] Re: Use of SendScilabJob In-Reply-To: <928A4DC5-00AA-456E-9537-AE5F2620FD0E@gmail.com> References: <1333453025975-3880580.post@n3.nabble.com> <4F7AE447.5040700@scilab-enterprises.com> <1333454370113-3880631.post@n3.nabble.com> <928A4DC5-00AA-456E-9537-AE5F2620FD0E@gmail.com> Message-ID: <003a01cd11aa$51fd26f0$f5f774d0$@scilab.org> Hi, See example in / scilab / modules / call_scilab / examples / call_scilab / NET / http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/call_scilab/examples/call_scilab/NET;h=b41ad2ff00e3cf0fe5951d95e9d0f8c958d27c14;hb=HEAD Allan -----Message d'origine----- De : Renoir Vieira [mailto:renoirvieira at gmail.com] Envoy? : mardi 3 avril 2012 16:54 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Re: Use of SendScilabJob Is there a way to sendjob to scilab from a c# class? Sent from my iPhone On 03/04/2012, at 08:59, Remy_Abergel wrote: > Sylvestre, Allan, > Thank you very much for your answers. I understand now... I'm going to > try with Allan script. > > ? bient?t :) > R?my. > > > -- > View this message in context: > http://mailinglists.scilab.org/Use-of-SendScilabJob-tp3880580p3880631. > html Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > -- To unsubscribe from this mailing-list, please send an empty mail to users-unsubscribe at lists.scilab.org To check the archives of this mailing list, see http://mailinglists.scilab.org/ From grivet at cnrs-orleans.fr Tue Apr 3 17:47:19 2012 From: grivet at cnrs-orleans.fr (grivet) Date: Tue, 03 Apr 2012 17:47:19 +0200 Subject: color of a string In-Reply-To: <1a45283f-4e77-4da3-9892-097f432011a6@zimbra75-e12.priv.proxad.net> References: <1a45283f-4e77-4da3-9892-097f432011a6@zimbra75-e12.priv.proxad.net> Message-ID: <4F7B1B87.30903@cnrs-orleans.fr> Hello, How can I change the color of a string using Scilab5.3.2? For instance, I wish to plot two vectors using plot2d(u,[a,b],style=[2,14]) and then write a label next to each curve with xstring(xa,ya,string_a), xstring(xb,yb,string_b); this works. Now, I would like to match the color of the text to that of the curves. I tried xset("color",2) and xset("color",14); this changes the color of the axes (in an unpredictable manner) but not that of the text. Thanks for your help -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Tue Apr 3 19:27:40 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 03 Apr 2012 19:27:40 +0200 Subject: [scilab-Users] color of a string In-Reply-To: <4F7B1B87.30903@cnrs-orleans.fr> References: <1a45283f-4e77-4da3-9892-097f432011a6@zimbra75-e12.priv.proxad.net> <4F7B1B87.30903@cnrs-orleans.fr> Message-ID: <4F7B330C.40602@centre-cired.fr> On 03/04/2012 17:47, grivet wrote: > Hello, > How can I change the color of a string using Scilab5.3.2? > For instance, I wish to plot two vectors using > plot2d(u,[a,b],style=[2,14]) and then write a > label next to each curve with xstring(xa,ya,string_a), > xstring(xb,yb,string_b); this works. > Now, I would like to match the color of the text to that of the > curves. I tried xset("color",2) > and xset("color",14); this changes the color of the axes (in an > unpredictable manner) but not > that of the text. > Thanks for your help > > Hi Build on this: plot() xstring(1,0,"ET PAF!") e=gce() e.font_foreground = 3 or if you are familiar with RGB : e.font_foreground = color(255,100,100) br avs -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Tue Apr 3 19:31:20 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 03 Apr 2012 19:31:20 +0200 Subject: [scilab-Users] [SPAM] save variables in an existing file In-Reply-To: <4F79F36B.9060006@laas.fr> References: <4F79CD23.30700@centre-cired.fr> <4F79F36B.9060006@laas.fr> Message-ID: <4F7B33E8.2080801@centre-cired.fr> On 02/04/2012 20:43, Antoine Monmayrant wrote: > Le 02/04/12 18:00, Adrien Vogt-Schilb a ?crit : >> Hy >> >> Does anybody knows a way to save various varibales in a single files >> in scilab? > Yop: > a=1;b=2; > save("ab.mat",a,b); > listvarinfile("ab.mat"); > clear a b; > load("ab.mat"); hi Thank you I meant in an existing file. The save help page says one can do this: // creating the file fd=mopen ('TMPDIR/foo','wb') k=1, x=k^2; save(fd,x,k) mclose (fd) // appending variables to an old save file fd=mopen ('TMPDIR/foo','r+') mseek (0,fd,'end') lst=list (1,2,3) save(fd,lst) mclose (fd) but the created file is not readable by load -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Apr 3 22:01:01 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 03 Apr 2012 22:01:01 +0200 Subject: [scilab-Users] [SPAM] save variables in an existing file In-Reply-To: <4F7B33E8.2080801@centre-cired.fr> References: <4F79CD23.30700@centre-cired.fr> <4F79F36B.9060006@laas.fr> <4F7B33E8.2080801@centre-cired.fr> Message-ID: <4F7B56FD.5080407@laas.fr> Le 03/04/12 19:31, Adrien Vogt-Schilb a ?crit : > On 02/04/2012 20:43, Antoine Monmayrant wrote: >> Le 02/04/12 18:00, Adrien Vogt-Schilb a ?crit : >>> Hy >>> >>> Does anybody knows a way to save various varibales in a single files >>> in scilab? >> Yop: >> a=1;b=2; >> save("ab.mat",a,b); >> listvarinfile("ab.mat"); >> clear a b; >> load("ab.mat"); > > hi > > Thank you > > I meant in an existing file. Ah, sorry, I didn't get it. > The save help page says one can do this: > > // creating the file > fd=mopen ('TMPDIR/foo','wb') > k=1, x=k^2; > save(fd,x,k) > mclose (fd) > > // appending variables to an old save file > fd=mopen ('TMPDIR/foo','r+') > mseek (0,fd,'end') > lst=list (1,2,3) > save(fd,lst) > mclose (fd) > > > but the created file is not readable by load Well, you can always get dirty and inefficient: reload file old content and resave old+new variables in another file ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From arturodejesus2008 at hotmail.com Wed Apr 4 18:21:28 2012 From: arturodejesus2008 at hotmail.com (=?iso-8859-1?B?QXJ0dXJvIGRlIEplc/pzIFJvZHLtZ3VleiBG6Wxpeg==?=) Date: Wed, 4 Apr 2012 12:21:28 -0400 Subject: ABOUT WriteXmlExcel Function Message-ID: Hi, this is a Scilab user. I write to you because I have a problem. It is about the writeXmlExcel function. The XML file created by Scilab does not work well, because it seems that it is damaged or corrupted. That is what Excel program says. Excel cannot open it, but Notepad of Windows can open it without any problem. When looking at the properties menu of the file, it appears that it does not have any extension or any type of file. I do not why it is that. What can I do about it?? I hope you can help me. I will be waiting for your answer. Thank you very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Wed Apr 4 20:02:26 2012 From: allan.cornet at scilab.org (allan.cornet at scilab.org) Date: Wed, 04 Apr 2012 20:02:26 +0200 Subject: [scilab-Users] ABOUT WriteXmlExcel Function In-Reply-To: References: Message-ID: On Wed, 4 Apr 2012 12:21:28 -0400, Arturo de Jes?s Rodr?guez F?liz wrote: > Hi, this is a Scilab user. > > I write to you because I have a problem. It is about the > writeXmlExcel function. The XML file created by Scilab does not work > well, because it seems that it is damaged or corrupted. That is what > Excel program says. Excel cannot open it, but Notepad of Windows can > open it without any problem. When looking at the properties menu of > the file, it appears that it does not have any extension or any type > of file. > > I do not why it is that. What can I do about it?? I hope you can > help > me. > I will be waiting for your answer. > > Thank you very much. Hi Can you send a example ? Thanks Allan From ajrf30 at gmail.com Wed Apr 4 20:46:33 2012 From: ajrf30 at gmail.com (instrumentacion) Date: Wed, 4 Apr 2012 11:46:33 -0700 (PDT) Subject: ABOUT WriteXmlExcel Function In-Reply-To: References: Message-ID: <1333565193337-3885133.post@n3.nabble.com> http://mailinglists.scilab.org/file/n3885133/prueba.sce prueba.sce http://mailinglists.scilab.org/file/n3885133/datos datos Hi, I send you the program or project file in Scilab 5.3.3 and the XML file...Take a look at both, please, and tell me if I am wrong. -- View this message in context: http://mailinglists.scilab.org/ABOUT-WriteXmlExcel-Function-tp3884617p3885133.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ajrf30 at gmail.com Thu Apr 5 00:56:06 2012 From: ajrf30 at gmail.com (instrumentacion) Date: Wed, 4 Apr 2012 15:56:06 -0700 (PDT) Subject: ABOUT WriteXmlExcel Function In-Reply-To: <1333565193337-3885133.post@n3.nabble.com> References: <1333565193337-3885133.post@n3.nabble.com> Message-ID: <1333580166249-3885806.post@n3.nabble.com> http://mailinglists.scilab.org/file/n3885806/WriteXmlExcel.jpg Here a picture of the program I have done in Scilab. This is how I use WriteXmlExcel. -- View this message in context: http://mailinglists.scilab.org/ABOUT-WriteXmlExcel-Function-tp3884617p3885806.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grivet at cnrs-orleans.fr Thu Apr 5 12:15:04 2012 From: grivet at cnrs-orleans.fr (grivet) Date: Thu, 05 Apr 2012 12:15:04 +0200 Subject: [scilab-Users] color of a string In-Reply-To: <4F7B330C.40602@centre-cired.fr> References: <1a45283f-4e77-4da3-9892-097f432011a6@zimbra75-e12.priv.proxad.net> <4F7B1B87.30903@cnrs-orleans.fr> <4F7B330C.40602@centre-cired.fr> Message-ID: <4F7D70A8.4050102@cnrs-orleans.fr> Le 03/04/2012 19:27, Adrien Vogt-Schilb a ?crit : > On 03/04/2012 17:47, grivet wrote: >> Hello, >> How can I change the color of a string using Scilab5.3.2? >> For instance, I wish to plot two vectors using >> plot2d(u,[a,b],style=[2,14]) and then write a >> label next to each curve with xstring(xa,ya,string_a), >> xstring(xb,yb,string_b); this works. >> Now, I would like to match the color of the text to that of the >> curves. I tried xset("color",2) >> and xset("color",14); this changes the color of the axes (in an >> unpredictable manner) but not >> that of the text. >> Thanks for your help >> >> > Hi > > Build on this: > > plot() > xstring(1,0,"ET PAF!") > e=gce() > e.font_foreground = 3 > > or if you are familiar with RGB > : > > e.font_foreground = color(255,100,100) > > br > avs Thank you Adrien, this works fine; is there a way to change the color of several strings at the same time instead of repeating the sequence xstring(), e = gce(),e.font_foreground = n for each ? JP Grivet -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikecaple at uk2.net Thu Apr 5 12:43:16 2012 From: mikecaple at uk2.net (lw87634) Date: Thu, 5 Apr 2012 03:43:16 -0700 (PDT) Subject: Write selected GROCER 'cadf' output to CSV file Message-ID: <1333622596614-3886842.post@n3.nabble.com> Hi, I am new to Scilab so apologies if this is a silly question. I am trying to write selected output from the GROCER cadf function to a csv file that can then be used to analyse the output from multiple comparisons. I know I can use the diary function to store the output that's sent to the console but this will generate a large file for me so if there's any way to write directly to CSV this would be a lot cleaner. Please see example below showing what I'd like to achieve. Command I am running: res=cadf(0, 1, (HSBA(:, 5)),(BARC(:, 5))); (I would in fact execute the above command for multiple pairs of historical shareprices) Edited console output: R2 = 0.8274205 adjusted R2 =0.8271161 .... conclusion: the null hypothesis of no cointegration is accepted at a 1% level, but rejected at a 5% level What I would like to achieve is a file containting selected components of the above output so that I can see the results from many comparisons in a single file (e.g. coint_results.csv): Ticker1 Ticker2 Adj R2 Co-int5% HSBA BARC 0.827 True (or 1) Thanks in advance for any advice. -- View this message in context: http://mailinglists.scilab.org/Write-selected-GROCER-cadf-output-to-CSV-file-tp3886842p3886842.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Thu Apr 5 13:08:49 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 05 Apr 2012 13:08:49 +0200 Subject: [scilab-Users] color of a string In-Reply-To: <4F7D70A8.4050102@cnrs-orleans.fr> References: <1a45283f-4e77-4da3-9892-097f432011a6@zimbra75-e12.priv.proxad.net> <4F7B1B87.30903@cnrs-orleans.fr> <4F7B330C.40602@centre-cired.fr> <4F7D70A8.4050102@cnrs-orleans.fr> Message-ID: <4F7D7D41.6070101@centre-cired.fr> On 05/04/2012 12:15, grivet wrote: > Le 03/04/2012 19:27, Adrien Vogt-Schilb a ?crit : >> On 03/04/2012 17:47, grivet wrote: >>> Hello, >>> How can I change the color of a string using Scilab5.3.2? >>> For instance, I wish to plot two vectors using >>> plot2d(u,[a,b],style=[2,14]) and then write a >>> label next to each curve with xstring(xa,ya,string_a), >>> xstring(xb,yb,string_b); this works. >>> Now, I would like to match the color of the text to that of the >>> curves. I tried xset("color",2) >>> and xset("color",14); this changes the color of the axes (in an >>> unpredictable manner) but not >>> that of the text. >>> Thanks for your help >>> >>> >> Hi >> >> Build on this: >> >> plot() >> xstring(1,0,"ET PAF!") >> e=gce() >> e.font_foreground = 3 >> >> or if you are familiar with RGB >> : >> >> e.font_foreground = color(255,100,100) >> >> br >> avs > Thank you Adrien, this works fine; is there a way to change the color > of several strings at the same time > instead of repeating the sequence xstring(), e = > gce(),e.font_foreground = n for each ? > JP Grivet Hi I'd build an upper-level function: myDEFAULT_color = color(155,120,60); functionmystring(x,y,str,mycolor)//plots str on x, y in color mycolor. mycolor is optional//Default value for mycolorifargn(2)<4mycolor=myDEFAULT_colorendxstring(x,y,str)e=gce()e.font_foreground=mycolorendfunction then use mystring instead of xstring note that you may omit the last argument -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Apr 5 15:38:25 2012 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 5 Apr 2012 15:38:25 +0200 (CEST) Subject: [scilab-Users] color of a string In-Reply-To: <4F7D70A8.4050102@cnrs-orleans.fr> Message-ID: <1867307997.102959530.1333633105836.JavaMail.root@zimbra75-e12.priv.proxad.net> >Thank you Adrien, this works fine; is there a way to change the color of several strings at the same time >instead of repeating the sequence xstring(), e = gce(),e.font_foreground = n for each ? >JP Grivet It is possible if the color is the same for all the strings you want to address in a once. Here is an example: plot([0 1],[0,1]) for i=0:4, xstring(0.1,0.4+i*0.1,ascii(i+65)); end ax = gca(); ax.children(1:5).font_foreground = color('red'); If colors are different, AFAIK there is no possibility to assign them "handle-wise". Regards Samuel From antoine.monmayrant at laas.fr Fri Apr 6 13:21:36 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 06 Apr 2012 13:21:36 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F7AE978.8040205@laas.fr> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> <4F7ABF67.602@laas.fr> <4F7AC1C3.8000900@scilab-enterprises.com> <4F7AE978.8040205@laas.fr> Message-ID: <4F7ED1C0.6010706@laas.fr> On 03/04/2012 14:13, Antoine Monmayrant wrote: > On 03/04/2012 11:24, Sylvestre Ledru wrote: >> On 03/04/2012 11:14, Antoine Monmayrant wrote: >>> On 02/04/2012 17:43, Sylvestre Ledru wrote: >>>> On 02/04/2012 17:41, Adrien Vogt-Schilb wrote: >>>>> hi >>>>> >>>>> can anyone give me a link to the doc of >>>>> export_to_hdf5 >>>>> >>>>> i am aware it is beta and everything >>>> There is no doc but the behavior is the same as save() expect that >>>> the name of the variable has to be quoted: >>>> >>>> a=eye >>>> (2,2);b=ones >>>> (a); >>>> save('val.dat',a,b); >>>> becomes >>>> save('val.dat',"a","b"); >>>> >>>> As you said, it is beta and everything ;) >>> Hi Sylvestre, >>> >>> Could you tell us more about hdf5 support in Scilab? >> Sure! >> >>> Any chance to see Scilab able to open h5 files generated by other >>> programs, like Matlab does? >> Yes, it is on roadmap. It was planned for the 5.4.0 but, >> unfortunately, we won't be able to make it happen for this release. >> I hope it will be released for the 5.4.1. >> However, we will release the 5.4.0 with HDF5 as the default format >> for load and save with a fully documented format (but the previous >> format will still be available in the 5 family). >> >> About matlab, what is your opinion about their API ? > Well, I used it rarely, relying on the "import-wizard-for-dummy". > But I like the "api" that is used in both MEEP and MPB and that rely > on h5utils: http://ab-initio.mit.edu/wiki/index.php/H5utils > They also provide "h5read.oct" to import their h5 in Octave. It could > be interesting to use the same kind of syntax for Scilab... >> >>> >>> Cheers, >>> >>> Antoine >>> >>> PS: not that I am particularly competent, but I can give a hand to >>> implement this functionality! >> I don't think it is a really development. It is more a problem to >> hide the complexity of HDF5 to users and to present correctly the >> data using Scilab default datatypes. >> >> Sylvestre >> >> > > I just saw that octave now supports hdf5 natively. It seems to be able to load the files we work with. Could you base your approach for hdf5 support on octave implementation? Antoine From sylvestre.ledru at scilab-enterprises.com Fri Apr 6 13:50:05 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 06 Apr 2012 13:50:05 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F7ED1C0.6010706@laas.fr> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> <4F7ABF67.602@laas.fr> <4F7AC1C3.8000900@scilab-enterprises.com> <4F7AE978.8040205@laas.fr> <4F7ED1C0.6010706@laas.fr> Message-ID: <4F7ED86D.4020001@scilab-enterprises.com> Bonjour Antoine, Le 06/04/2012 13:21, Antoine Monmayrant a ?crit [...] First, about HDF5, we merged in the master the last step to our HDF5 transition. We are introducing the SOD (Scilab Open Data) format which is based on HDF5. The current behavior of the save/load functions are not changed but a warning will be triggered. The right behavior is now to call : save("myDataFile.sod","a","b") The SOD file will be usable by any other HDF5 library/applications. The format is open and fully documented (see SEP #64). This will be the default format for Scilab 6.0. The previous format will be dropped. We will communicate more on that with the 5.4.0 release. This format has been already used in Scilab/Xcos for a while and is fully covered by our test suite. For those who used export_to_hdf5, it is exactly the same format (with the management of graphic handles). > > I just saw that octave now supports hdf5 natively. > It seems to be able to load the files we work with. Could you share an URL ? > Could you base your approach for hdf5 support on octave implementation? We are not trying to follow other implementation but use inspiration from other projects to provide what we believe to be the best solution. But sure, we will have a look! Thanks for your input! Sylvestre From antoine.monmayrant at laas.fr Fri Apr 6 16:22:58 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 06 Apr 2012 16:22:58 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F7ED86D.4020001@scilab-enterprises.com> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> <4F7ABF67.602@laas.fr> <4F7AC1C3.8000900@scilab-enterprises.com> <4F7AE978.8040205@laas.fr> <4F7ED1C0.6010706@laas.fr> <4F7ED86D.4020001@scilab-enterprises.com> Message-ID: <4F7EFC42.4000609@laas.fr> On 06/04/2012 13:50, Sylvestre Ledru wrote: > Bonjour Antoine, > > Le 06/04/2012 13:21, Antoine Monmayrant a ?crit > > [...] > First, about HDF5, we merged in the master the last step to our HDF5 > transition. Wait a bit: do you mean I can grab the last master and try to load one of my hdf5 files using load? > We are introducing the SOD (Scilab Open Data) format which is based on > HDF5. > The current behavior of the save/load functions are not changed but a > warning will be triggered. > The right behavior is now to call : > save("myDataFile.sod","a","b") > The SOD file will be usable by any other HDF5 library/applications. The > format is open and fully documented (see SEP #64). > This will be the default format for Scilab 6.0. The previous format will > be dropped. > We will communicate more on that with the 5.4.0 release. > This format has been already used in Scilab/Xcos for a while and is > fully covered by our test suite. > For those who used export_to_hdf5, it is exactly the same format (with > the management of graphic handles). > >> I just saw that octave now supports hdf5 natively. >> It seems to be able to load the files we work with. > Could you share an URL ? Her, well, I can provide some test files if you want, but if your question is about octave, I just installed it and open a *.h5 file using load! For the test files, thay can be fairly big (~100MB). >> Could you base your approach for hdf5 support on octave implementation? > We are not trying to follow other implementation but use inspiration > from other projects to provide what we believe to be the best solution. > But sure, we will have a look! Cool! The point in our case is not to export to hdf5 but import hdf5 files where we are not able to modify the way they are generated... > Thanks for your input! > Sylvestre > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From sylvestre.ledru at scilab-enterprises.com Fri Apr 6 16:26:45 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 06 Apr 2012 16:26:45 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F7EFC42.4000609@laas.fr> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> <4F7ABF67.602@laas.fr> <4F7AC1C3.8000900@scilab-enterprises.com> <4F7AE978.8040205@laas.fr> <4F7ED1C0.6010706@laas.fr> <4F7ED86D.4020001@scilab-enterprises.com> <4F7EFC42.4000609@laas.fr> Message-ID: <4F7EFD25.20105@scilab-enterprises.com> Le 06/04/2012 16:22, Antoine Monmayrant a ?crit : > On 06/04/2012 13:50, Sylvestre Ledru wrote: >> Bonjour Antoine, >> >> Le 06/04/2012 13:21, Antoine Monmayrant a ?crit >> >> [...] >> First, about HDF5, we merged in the master the last step to our HDF5 >> transition. > Wait a bit: do you mean I can grab the last master and try to load > one of my hdf5 files using load? HDF5 is just a way to store data. You still need a schema/model to describe what are your data, what they represent. Here, we wrote our Scilab data file using our schema based on the HDF5. We called it SOD, Scilab Open Data. That means you can load any SOD file from Scilab but, for now, it will fail with CGNS files for example (which is also based on HDF5). Sylvestre From antoine.monmayrant at laas.fr Fri Apr 6 16:28:37 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 06 Apr 2012 16:28:37 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F7EFD25.20105@scilab-enterprises.com> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> <4F7ABF67.602@laas.fr> <4F7AC1C3.8000900@scilab-enterprises.com> <4F7AE978.8040205@laas.fr> <4F7ED1C0.6010706@laas.fr> <4F7ED86D.4020001@scilab-enterprises.com> <4F7EFC42.4000609@laas.fr> <4F7EFD25.20105@scilab-enterprises.com> Message-ID: <4F7EFD95.1030702@laas.fr> On 06/04/2012 16:26, Sylvestre Ledru wrote: > Le 06/04/2012 16:22, Antoine Monmayrant a ?crit : >> On 06/04/2012 13:50, Sylvestre Ledru wrote: >>> Bonjour Antoine, >>> >>> Le 06/04/2012 13:21, Antoine Monmayrant a ?crit >>> >>> [...] >>> First, about HDF5, we merged in the master the last step to our HDF5 >>> transition. >> Wait a bit: do you mean I can grab the last master and try to load >> one of my hdf5 files using load? > HDF5 is just a way to store data. You still need a schema/model to > describe what are your data, what they represent. > Here, we wrote our Scilab data file using our schema based on the HDF5. > We called it SOD, Scilab Open Data. > That means you can load any SOD file from Scilab but, for now, it will > fail with CGNS files for example (which is also based on HDF5). OK. What do you think we can do to get support for the specific hdf5 model used by the softs we use? Antoine > > Sylvestre > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From sylvestre.ledru at scilab-enterprises.com Fri Apr 6 16:30:53 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 06 Apr 2012 16:30:53 +0200 Subject: [scilab-Users] Export_to_hdf5 In-Reply-To: <4F7EFD95.1030702@laas.fr> References: <4F79C8A6.5080805@centre-cired.fr> <4F79C910.3050203@scilab-enterprises.com> <4F7ABF67.602@laas.fr> <4F7AC1C3.8000900@scilab-enterprises.com> <4F7AE978.8040205@laas.fr> <4F7ED1C0.6010706@laas.fr> <4F7ED86D.4020001@scilab-enterprises.com> <4F7EFC42.4000609@laas.fr> <4F7EFD25.20105@scilab-enterprises.com> <4F7EFD95.1030702@laas.fr> Message-ID: <4F7EFE1D.4010904@scilab-enterprises.com> Le 06/04/2012 16:28, Antoine Monmayrant a ?crit : > On 06/04/2012 16:26, Sylvestre Ledru wrote: >> Le 06/04/2012 16:22, Antoine Monmayrant a ?crit : >>> On 06/04/2012 13:50, Sylvestre Ledru wrote: >>>> Bonjour Antoine, >>>> >>>> Le 06/04/2012 13:21, Antoine Monmayrant a ?crit >>>> >>>> [...] >>>> First, about HDF5, we merged in the master the last step to our HDF5 >>>> transition. >>> Wait a bit: do you mean I can grab the last master and try to load >>> one of my hdf5 files using load? >> HDF5 is just a way to store data. You still need a schema/model to >> describe what are your data, what they represent. >> Here, we wrote our Scilab data file using our schema based on the HDF5. >> We called it SOD, Scilab Open Data. >> That means you can load any SOD file from Scilab but, for now, it will >> fail with CGNS files for example (which is also based on HDF5). > OK. > What do you think we can do to get support for the specific hdf5 model > used by the softs we use? > As I said previously, we will do it but I don't know when... Sylvestre From sergio_br2 at yahoo.com.br Sat Apr 7 04:52:15 2012 From: sergio_br2 at yahoo.com.br (=?ISO-8859-1?Q?S=E9rgio_Benjamim?=) Date: Fri, 06 Apr 2012 23:52:15 -0300 Subject: Java detect script doesn't work with Scilab 5.3.3 Message-ID: <4F7FABDF.9050106@yahoo.com.br> Hello! I downloaded and installed Scilab 5.3.3 in the Ubuntu 10.04, _and it works fine_, but it uses 6u18 jre version to run, it seems to be the default java that comes with Scilab (in the *scilab-5.3.3/thirdparty/java/* folder). There is a java installed on my system at /opt/java/64/jdk1.6.0_31/ , and I modified the scilab's script that comes at scilab-5.3.3/bin/ , like this: JAVA_DEFAULT_DIR="/usr/lib/jvm/java-6-openjdk/ /usr/lib/jvm/java/ /usr/lib/jvm/java-6-sun/ /usr/lib/j2se/1.6 /usr/java/jdk1.6.0*/ /usr/java/jdk1.5.0*/ /usr/lib/j2sdk1.6-ibm /usr/lib/jvm/java-1.5.0-sun /usr/java/ /usr/lib/j2se/1.5 /usr/lib/j2se/1.4 /usr/java/jre1.6.0*/ /usr/java/jre1.5.0*/ /usr/lib/j2sdk1.5-ibm /usr/lib/j2sdk1.4-ibm /usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.4-sun /usr/lib/jvm/java-gcj /usr/lib/jvm/java-1.5.0-gcj/ /usr/lib/kaffe/pthreads /usr/lib/jvm/java-1.7.0-icedtea-*/ /usr/lib/jvm/jre/ /usr/local/diablo-jdk1.6.0/ */opt/java/64/jdk1.6.0_31/*" I did that modification in the scilab 5.2.1-8 script, and it works!!! (That Scilab comes in the ubuntu repositories) Scilab 5.2.1-8 used the jre 6u31 version, instead the default java. I have a jdk java version installed here to, it is the 6u21 java version, but the Scilab doesn't detect either. Look to what comes with *ver* command: Scilab Version: 5.3.3.1311149487 Operating System: Linux 2.6.32-40-generic Java version : 1.6.0_18 Java runtime information : Java(TM) SE Runtime Environment (build 1.6.0_18-b07) Java vm information : Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode) Vendor specification: Sun Microsystems Inc. Sorry for my english... -- S?rgio Benjamim -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Apr 7 12:45:56 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 07 Apr 2012 12:45:56 +0200 Subject: [scilab-Users] escape sequence with msprintf In-Reply-To: <4F653672.1040002@axelspace.com> References: <4F653672.1040002@axelspace.com> Message-ID: <4F801AE4.40909@free.fr> Hello, This was a bug. I also have it on 5.3.3 / winXP 32bits, but no longer with 5.4.0a / winXP 32bits : -->txt="\\theta", msprintf(txt) txt = \\theta ans = \theta Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Apr 7 13:24:25 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 07 Apr 2012 13:24:25 +0200 Subject: [scilab-Users] instrument measurments In-Reply-To: <1330362010814-3781355.post@n3.nabble.com> References: <1330362010814-3781355.post@n3.nabble.com> Message-ID: <4F8023E9.7040005@free.fr> Hello, Le 27/02/2012 18:00, computidoo a ?crit : > hello, > I want to connect the scilab to control instrument measurments that have LAN > connection and can work in SCPI commands format (anritsu). > can someone help me where to start? > Searching in archives of this list and in the usual Scilab online resources is straightforward and leads you to http://atoms.scilab.org/categories/instruments_control For serial usages on Win & Linux, http://atoms.scilab.org/toolboxes/serial is excellent For Ethernet connexions on the same OSes, the Socket module http://atoms.scilab.org/toolboxes/socket_toolbox should be tested. Please do not hesitate to report your experience with it. Regards S. Gougeon From sgougeon at free.fr Sat Apr 7 13:32:03 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 07 Apr 2012 13:32:03 +0200 Subject: [scilab-Users] Require Technical support for SCILAB In-Reply-To: <1331567775.71513.YahooMailNeo@web95602.mail.in.yahoo.com> References: <1331567775.71513.YahooMailNeo@web95602.mail.in.yahoo.com> Message-ID: <4F8025B3.5020205@free.fr> Hello Le 12/03/2012 16:56, mahesh parmar a ?crit : > Respected sir, > > I am working in Final year Bachelor of Engineering in Electronics & > Communication Field, > I study about SCILAB and Doing my final project on SCILAB > My project on Data Acquisitions in SCILAB using Modbus on RS-232 > But i can't access Data from hardware to SCILAB Why not? You should have a look at these resources: http://atoms.scilab.org/categories/instruments_control > and there is trouble in interfacing between SCILAB and ATmega16 Controller Examples of Scilab drivers are implemented there (with serial): http://fileexchange.scilab.org/categories/instruments_control Regards S. Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From cwarner.cw711 at gmail.com Sat Apr 7 15:37:16 2012 From: cwarner.cw711 at gmail.com (Charles Warner) Date: Sat, 7 Apr 2012 08:37:16 -0500 Subject: [scilab-Users] Require Technical support for SCILAB In-Reply-To: <4F8025B3.5020205@free.fr> References: <1331567775.71513.YahooMailNeo@web95602.mail.in.yahoo.com> <4F8025B3.5020205@free.fr> Message-ID: 1. What operating system are you using? This can make a significant difference. Linux is much easier than other operating systems for interfacing to instrumentation than other operating systems, essentially because you read and write to a comm port (RS 232 or other) exactly like you read and write a file. 2. What instrument are you trying to read? Do you have adequate documentation on the software interface for the instrument? Not all Modbus instruments are truly standards-consistent- many manufacturers "customize" their implementation of the Modbus standard. 3. Are you communicating with the instrumentation outside of Scilab? Most instrumentation manufacturers provide software for accessing their instruments, with proprietary drivers which make it extremely difficult to use the instrumentation with other software. I never understood the logic of this approach, but it is a fact of life. First step is to determine if your issue is with communcations, or with interfacing to Scilab. If you are using Linux, the first step would be to insure you are communicating with the instrument. You will need the following information: -Port ID -Port parameters (baud rate, data bits, parity, number of stop bits, handshake protocol) -Instrumentation command set (this assumes a query/response interface- write a query command to the instrument and read the return message) To establish communications with the instrumentation, I have found two Linux tools quite useful: sjinn (http://sjinn.sourceforge.net/), a command line tool very simple to use for simple logging tasks; CuteCom ( http://cutecom.sourceforge.net/) which provides a very intuitive GUI interface for working with serial interfaces (similar to but more user friendly than Microsoft's Terminal program); and qtDMM ( http://www.mtoussaint.de/qtdmm.html), a stand-alone GUI for reading a number of different digital multimeters. Once you are sure you have communications with the instrumentation, you should have all the tools necessary in the Serial Communications Toolbox to implement the communications protocol from within Scilab (or you have the option of calling an external tool from within Scilab based on these other tools). Charlie On Sat, Apr 7, 2012 at 6:32 AM, Samuel Gougeon wrote: > ** > Hello > > Le 12/03/2012 16:56, mahesh parmar a ?crit : > > Respected sir, > > I am working in Final year Bachelor of Engineering in Electronics & > Communication Field, > I study about SCILAB and Doing my final project on SCILAB > My project on Data Acquisitions in SCILAB using Modbus on RS-232 > But i can't access Data from hardware to SCILAB > > Why not? You should have a look at these resources: > http://atoms.scilab.org/categories/instruments_control > > and there is trouble in interfacing between SCILAB and ATmega16 > Controller > > Examples of Scilab drivers are implemented there (with serial): > http://fileexchange.scilab.org/categories/instruments_control > > Regards > S. Gougeon > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wwink2 at mindspring.com Sat Apr 7 19:53:17 2012 From: wwink2 at mindspring.com (wynn h. winkler) Date: Sat, 07 Apr 2012 17:53:17 +0000 Subject: SCI variable has probable wrong value Message-ID: <4F807F0D.7010406@mindspring.com> Scilab-5.3.3 under XP/SP2 from the console SCI has the value C:/PROGRAM~1/SCILAB~1.3 which does not exist. I cannot change this variable from the console - the error message says it is permanent. It is used in several start-up config type files and may be part of the problem I am having with the ATOMS interface. I have not found where it is set in the config files. Several other variables such as SCIHOME and WSCI have correct values. Also, SCILAB contains its own Java JRE - are all calls to this internal to scilab or could they conflict with other versions of the jre on my system. Thanks for any info. ====== end of file ==================== From vogt at centre-cired.fr Sat Apr 7 20:29:35 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Sat, 07 Apr 2012 20:29:35 +0200 Subject: [scilab-Users] SCI variable has probable wrong value In-Reply-To: <4F807F0D.7010406@mindspring.com> References: <4F807F0D.7010406@mindspring.com> Message-ID: <4F80878F.2090007@centre-cired.fr> On 07/04/2012 19:53, wynn h. winkler wrote: > Scilab-5.3.3 under XP/SP2 > > from the console SCI has the value > C:/PROGRAM~1/SCILAB~1.3 Hi this is probably the short name of c:/program files/scilab 5.3.3 are you sure it does not exist? have a look at this: http://help.scilab.org/docs/5.3.3/en_US/getlongpathname.html From sgougeon at free.fr Sat Apr 7 22:03:11 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 07 Apr 2012 22:03:11 +0200 Subject: [scilab-Users] SCI variable has probable wrong value In-Reply-To: <4F807F0D.7010406@mindspring.com> References: <4F807F0D.7010406@mindspring.com> Message-ID: <4F809D7F.4000803@free.fr> Le 07/04/2012 19:53, wynn h. winkler a ?crit : > Scilab-5.3.3 under XP/SP2 > > from the console SCI has the value > C:/PROGRAM~1/SCILAB~1.3 Just display the WSCI variable to see the corresponding full path location of the Scilab's root directory. Samuel From wwink2 at mindspring.com Sun Apr 8 01:24:40 2012 From: wwink2 at mindspring.com (Wynn Winkler) Date: Sat, 7 Apr 2012 16:24:40 -0700 (PDT) Subject: SCI variable has probable wrong value In-Reply-To: <4F809D7F.4000803@free.fr> References: <4F807F0D.7010406@mindspring.com> <4F809D7F.4000803@free.fr> Message-ID: <1333841080676-3893607.post@n3.nabble.com> The overall issue is that the SCI variable is used in several start-up/config scripts - sometimes it is put through getlongpathname, and sometimes it is not. So I wonder what is actually happening. Does anyone know how windows.gz or 1_TOOLBOXES.gz is handled by the startup scripts - errors from trying to get ATOMS to work generally report not finding those files. When SCI goes through getlongpathname it comes out as the correct scilab-5.3.3 directory which exists and contains the installed code. -- View this message in context: http://mailinglists.scilab.org/SCI-variable-has-probable-wrong-value-tp3893103p3893607.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From dkajah at gmail.com Sun Apr 8 08:03:59 2012 From: dkajah at gmail.com (Daniel Penalva) Date: Sun, 8 Apr 2012 03:03:59 -0300 Subject: Problem with the arpack-ng detection in the graphic branch compiling Message-ID: Hello fellows, I was trying to compile the Scilab graphic branch, but even after a complete installation of arpack-ng 3.1.0: http://pastebin.com/SMZrXxkc Does someone have an idea ? Thanks, hAAkSync -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Sun Apr 8 09:19:37 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sun, 08 Apr 2012 09:19:37 +0200 Subject: [scilab-Users] Problem with the arpack-ng detection in the graphic branch compiling In-Reply-To: References: Message-ID: <1333869577.4441.12.camel@pomegues.inria.fr> Le dimanche 08 avril 2012 ? 03:03 -0300, Daniel Penalva a ?crit : > Hello fellows, > > I was trying to compile the Scilab graphic branch, but even after a > complete installation of arpack-ng 3.1.0: > > > http://pastebin.com/SMZrXxkc > > Does someone have an idea ? First, please ask this kind of questions on the dev mailing list [1]. Then, which versions of arpack are you using ? arpack-ng ? Could you share the config.log ? please reply on the dev mailing list. Sylvestre [1] http://www.scilab.org/communities/developer_zone/tools/mailing_list -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From grocer.toolbox at gmail.com Sun Apr 8 10:54:40 2012 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sun, 8 Apr 2012 10:54:40 +0200 Subject: [scilab-Users] Write selected GROCER 'cadf' output to CSV file In-Reply-To: <1333622596614-3886842.post@n3.nabble.com> References: <1333622596614-3886842.post@n3.nabble.com> Message-ID: Hi A solution is to create an empty matrix, for instance mat2exp : --> mat2exp=[] and to save each cointegration results into a tlist, as shown: --> res=cadf(0, 1, (HSBA(:, 5)),(BARC(:, 5))); to recover the associated cointegration tlist: --> rcoint=res('cointrel') and the to add a new coordinate to the matrix mat2exp --> mat2exp=[mat2exp;strcat(['HSBA','BARC',string(rcoint('rbar')),string(res('tstat')(1) mputl(mat2exp,'coint_results.csv') Of course, the few commands above can be collected into a function... ?ric. N.B: 1) this was not so easy, because what you need has to be extracted from the results tlist (see the text of Grocer function prtunitr to have some undersatnding of the way to extract these results or other that could interest you) 2) Instead of true/false, I have used the Scilab conventions for booleans T/F: it would be easy to transform T/F into True/false 2012/4/5 lw87634 > Hi, > > I am new to Scilab so apologies if this is a silly question. I am trying to > write selected output from the GROCER cadf function to a csv file that can > then be used to analyse the output from multiple comparisons. I know I can > use the diary function to store the output that's sent to the console but > this will generate a large file for me so if there's any way to write > directly to CSV this would be a lot cleaner. > > Please see example below showing what I'd like to achieve. > > Command I am running: > res=cadf(0, 1, (HSBA(:, 5)),(BARC(:, 5))); > (I would in fact execute the above command for multiple pairs of historical > shareprices) > > Edited console output: > R2 = 0.8274205 adjusted R2 =0.8271161 > .... > conclusion: the null hypothesis of no cointegration is accepted at a > 1% > level, but rejected at a 5% level > > What I would like to achieve is a file containting selected components of > the above output so that I can see the results from many comparisons in a > single file (e.g. coint_results.csv): > Ticker1 Ticker2 Adj R2 Co-int5% > HSBA BARC 0.827 True (or 1) > > Thanks in advance for any advice. > > > -- > View this message in context: > http://mailinglists.scilab.org/Write-selected-GROCER-cadf-output-to-CSV-file-tp3886842p3886842.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive > at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abelahcene at gmail.com Sun Apr 8 21:04:55 2012 From: abelahcene at gmail.com (abd_bela) Date: Sun, 8 Apr 2012 12:04:55 -0700 (PDT) Subject: exercise on list Message-ID: <1333911895514-3894928.post@n3.nabble.com> *Hi, somebody can tell me how to solve the following exercises thanks a lot. without using (loops: for or while) create the list of numbers as follow: 1, 2, 2, 3 3 3 4 4 4 4 5 5 5 5 5 ...... 9 9 9 9 9 9 9 9 9 1 0 2 0 0 3 0 0 0 4 0 0 0 0 ..... 9 0 0 0 0 0 0 0 0 0 thanks best regards * -- View this message in context: http://mailinglists.scilab.org/exercise-on-list-tp3894928p3894928.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ychattah at iai.co.il Mon Apr 9 08:16:48 2012 From: ychattah at iai.co.il (computidoo) Date: Sun, 8 Apr 2012 23:16:48 -0700 (PDT) Subject: scilab 6 Message-ID: <1333952208277-3896057.post@n3.nabble.com> is there any news for the alpha version of scilab 6? -- View this message in context: http://mailinglists.scilab.org/scilab-6-tp3896057p3896057.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab-enterprises.com Mon Apr 9 09:24:51 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Mon, 09 Apr 2012 09:24:51 +0200 Subject: [scilab-Users] scilab 6 In-Reply-To: <1333952208277-3896057.post@n3.nabble.com> References: <1333952208277-3896057.post@n3.nabble.com> Message-ID: <1333956291.14174.58.camel@pomegues.inria.fr> Le dimanche 08 avril 2012 ? 23:16 -0700, computidoo a ?crit : > is there any news for the alpha version of scilab 6? Lately, we have been focusing on the 5.4. Changes in the graphic branch should be merged in the master branch next week and a beta release published a few days later if everything goes fine. After that, with the graphic changes, we will be able to merge that into the release 6 and we will consider a alpha (or pre alpha) release. Sylvestre -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From ychattah at iai.co.il Mon Apr 9 09:36:26 2012 From: ychattah at iai.co.il (computidoo) Date: Mon, 9 Apr 2012 00:36:26 -0700 (PDT) Subject: scilab 6 In-Reply-To: <1333956291.14174.58.camel@pomegues.inria.fr> References: <1333952208277-3896057.post@n3.nabble.com> <1333956291.14174.58.camel@pomegues.inria.fr> Message-ID: <300AE3014430B94EB16D93D3742BEEB3052EDA22@EXS11.iai.co.il> Thanks for the details. I'm waiting for the 6 (as I working with big ascii files BR Yehonatan ________________________________ From: Sylvestre Ledru-4 [via Scilab / Xcos - Mailing Lists Archives] [mailto:ml-node+s994242n3896141h96 at n3.nabble.com] Sent: Monday, April 09, 2012 9:26 AM To: Yehonatan Chattah Subject: Re: scilab 6 Le dimanche 08 avril 2012 ? 23:16 -0700, computidoo a ?crit : > is there any news for the alpha version of scilab 6? Lately, we have been focusing on the 5.4. Changes in the graphic branch should be merged in the master branch next week and a beta release published a few days later if everything goes fine. After that, with the graphic changes, we will be able to merge that into the release 6 and we will consider a alpha (or pre alpha) release. Sylvestre -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- -- To unsubscribe from this mailing-list, please send an empty mail to [hidden email] To check the archives of this mailing list, see http://mailinglists.scilab.org/ ________________________________ If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/scilab-6-tp3896057p3896141.html To unsubscribe from scilab 6, click here. NAML The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. Thank you. -- View this message in context: http://mailinglists.scilab.org/scilab-6-tp3896057p3896162.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sezgi.yikilmazcinar at arcelik.com Mon Apr 9 10:46:46 2012 From: sezgi.yikilmazcinar at arcelik.com (=?iso-8859-9?Q?Sezgi_Y=FDk=FDlmaz=E7=FDnar?=) Date: Mon, 9 Apr 2012 11:46:46 +0300 Subject: Plot Error Message-ID: <1A2C3AEACAA44949AB093C11884AE961090165AA79@ARAHMS620V.ar.arcelik> Dear Sir/Madam I try to use plot command and also plot3d1 command. But I get this error: Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Error creating offscreen bitmap of width 610, height 460 at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.create(WindowsOffscreenGLDrawable.java:108) at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.setSize(WindowsOffscreenGLDrawable.java:67) at javax.media.opengl.GLJPanel.initialize(GLJPanel.java:929) at javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:488) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabAxes.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JViewport.paint(Unknown Source) at javax.swing.JComponent.paintToOffscreen(Unknown Source) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) at javax.swing.RepaintManager$PaintManager.paint(Unknown Source) at javax.swing.RepaintManager.paint(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(Unknown Source) at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.draw(Unknown Source) at org.scilab.modules.gui.tab.ScilabTabBridge.draw(Unknown Source) at org.scilab.modules.gui.bridge.ScilabBridge.draw(Unknown Source) at org.scilab.modules.gui.tab.ScilabTab.draw(Unknown Source) at org.scilab.modules.gui.graphicWindow.ScilabRendererProperties.forceDisplay(Unknown Source) at org.scilab.modules.renderer.figureDrawing.DrawableFigureGL.drawCanvas(Unknown Source) at org.scilab.modules.renderer.FigureScilabCallJNI.getClickedSubwinHandle(Native Method) at org.scilab.modules.renderer.FigureScilabCall.getClickedSubwinHandle(Unknown Source) at org.scilab.modules.renderer.utils.graphicEvents.InteractiveRotationEvent.getFirstClick(Unknown Source) at org.scilab.modules.renderer.utils.graphicEvents.InteractiveRotationEvent.performEvent(Unknown Source) at org.scilab.modules.renderer.utils.graphicEvents.GraphicEvent.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: javax.media.opengl.GLException: Error creating offscreen bitmap of width 610, height 460 at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.create(WindowsOffscreenGLDrawable.java:108) at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.setSize(WindowsOffscreenGLDrawable.java:67) at javax.media.opengl.GLJPanel.initialize(GLJPanel.java:929) at javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:488) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabAxes.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JViewport.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingPort.java:1976) at javax.swing.JComponent.paintToOffscreen(Unknown Source) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) at javax.swing.RepaintManager$PaintManager.paint(Unknown Source) at javax.swing.RepaintManager.paint(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintImmediately(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(Unknown Source) at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.draw(Unknown Source) at org.scilab.modules.gui.tab.ScilabTabBridge.draw(Unknown Source) at org.scilab.modules.gui.bridge.ScilabBridge.draw(Unknown Source) at org.scilab.modules.gui.tab.ScilabTab.draw(Unknown Source) at org.scilab.modules.gui.graphicWindow.ScilabRendererProperties.forceDisplay(Unknown Source) at org.scilab.modules.renderer.figureDrawing.DrawableFigureGL.drawCanvas(Unknown Source) at org.scilab.modules.renderer.FigureScilabCallJNI.getClickedSubwinHandle(Native Method) at org.scilab.modules.renderer.FigureScilabCall.getClickedSubwinHandle(Unknown Source) at org.scilab.modules.renderer.utils.graphicEvents.InteractiveRotationEvent.getFirstClick(Unknown Source) at org.scilab.modules.renderer.utils.graphicEvents.InteractiveRotationEvent.performEvent(Unknown Source) at org.scilab.modules.renderer.utils.graphicEvents.GraphicEvent.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: javax.media.opengl.GLException: Error creating offscreen bitmap of width 610, height 460 at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.create(WindowsOffscreenGLDrawable.java:108) at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.setSize(WindowsOffscreenGLDrawable.java:67) at javax.media.opengl.GLJPanel.initialize(GLJPanel.java:929) at javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:488) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabAxes.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JViewport.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingPort.java:1976) at javax.swing.JComponent.paintToOffscreen(Unknown Source) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) at javax.swing.RepaintManager$PaintManager.paint(Unknown Source) at javax.swing.RepaintManager.paint(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintImmediately(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabTab$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Can you help us to solve this. Thanks alot. I prefer SciLab besides of Matlab Sayg?lar?mla / Regards Sezgi ________________________________ [cid:image001.jpg at 01CD1646.7122CBC0] Sezgi YIKILMAZ?INAR Kontrol Teknolojileri Ailesi / Control Technologies Family ARGE M?hendisi / R&D Engineer E-Posta / Email : sezgi.yikilmazcinar at arcelik.com Telefon / Telephone : +90 216 585 83 52 Laboratuar / Laboratory : +90 216 585 85 85 / 8192 Belgege?er / Fax : +90 216 423 30 45 Adres / Address : 34950 ?ay?rova, AR?EL?K A.?. ARGE-2 Nolu Bina Tuzla/?STANBUL TURKEY ________________________________ UYARI/NOTIFICATION: Bu e-posta ve ekleri, gonderildigi belirtilen kisi ya da kisilere ozel olup gizli bilgiler iceriyor olabilir.Bu e-postada bulunan tum fikir ve gorusler ve ekindeki dosyalar sadece adres sahip(ler)ine ait olup, AR?EL?K A.?. hic bir sekilde sorumlu tutulamaz. E-postanin muhatabi, ilgilisi ya da gonderileni degilseniz lutfen e-postayi herhangi bir sekilde kullanmayiniz, cogaltmayiniz ve baskalariyla paylasmayiniz. Eger e-posta yanlislikla size ulasmissa, ekinde ve/veya iceriginde yer alan bilgileri gizli tutunuz ve e-postayi gonderen kisiyi bilgilendirerek soz konusu e-posta ile eklerini derhal imha ediniz. Bu e-posta ve ekindeki belgelerin bilinen viruslere karsi kontrolu yapilmistir. Ancak e-posta sistemlerinin tasidigi risklerden dolayi kurumumuz bu e-postanin ve icerdigi bilgilerin size degisiklige ugrayarak veya gec ulasmasindan butunlugunun ve gizliliginin korunamamasindan virus icermesinden ve herhangi bir sebeple bilgisayariniza ve sisteminize verebilecegi zararlardan sorumlu tutulamaz. This message together with its attachments is intended solely for the address(es) and may contain confidential or privileged information. The information contained in this message and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and AR?EL?K A.?. do not accept legal responsibility for the contents.If you are not the intended recipient please do not use copy or disclose the message for any purpose.Should you receive this message by mistake please keep all information contained in the message or its attachments strictly confidential and advise the sender and delete it immediately without retaining a copy. This message and its attachments have been swept by anti-virus systems for the presence of known viruses. However due to the risks of e-mail systems our institute cannot accept liability for any changes or delay in receiving loss of integrity and confidentiality containing viruses and any damages caused in any way to your computer and system. ________________________________ Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 2813 bytes Desc: image001.jpg URL: From caritosepu at gmail.com Mon Apr 9 22:51:41 2012 From: caritosepu at gmail.com (Carolina Andrea Sepulveda Sepulveda) Date: Mon, 9 Apr 2012 16:51:41 -0400 Subject: problem whit Scilab Message-ID: Dear Scilab support person I installed Scilab in my computer but not open correctly. The text of Scilab tell: (finish email, it is the text) I' m installed and installed in three oportunity the program Scilab but the problem persists. What do I do?, please thanks for you time ___________________________________________ scilab-5.3.3 Consorcio Scilab (DIGITEO) Copyright (c) 1989-2011 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Ejecucion de inicio: cargando entorno inicial Start Accsum Load macros Load gateways Load help Load demos Type "help accsum_overview" for quick start. Start Condnb Load macros Load help Load demos Type "help condnb_overview" for quick start. Type "demo_gui()" and search for Condnb for Demonstrations. Start Dbldbl Load macros Load help Type "help dbldbl_new" for quick start. atomsLoad: An error occurred while loading 'DD_QD-0.2-0': El fichero "C:\Users\Carolina\AppData\Roaming\Scilab\scilab-5.3.3\atoms\DD_QD\0.2-0\etc\MuPAT.start" no existe. Start Diffcode Load macros Load help Load demos Type "help diffcode_overview" for quick start. Type "demo_gui()" and search for Diffcode for Demonstrations. Start Floatingpoint Load macros Load help Load demos Type "help floatingpoint_overview" for quick start. Type "demo_gui()" and search for "Floatingpoint" for Demonstrations. Start Indirect Influences Load macros Load help Load demos Loading dynamic lib atomsLoad: An error occurred while loading 'MPScilab-0.2-0': link: El archivo compartido no fue cargado: No se puede encontrar el m?dulo especificado. Start sciGPGPU Load macros Load help -------------------------------------------------------------------------------------------------------------------------------- -- Carolina Sep?lveda Sep?lveda Ingeniera Civil Qu?mica Diplomada en Ingenier?a Ambiental Mag?ster en Gesti?n Integrada Estudiante Doctorado Ingenier?a Agr?cola Universidad de Concepci?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From rcorderog at gmail.com Mon Apr 9 22:55:49 2012 From: rcorderog at gmail.com (Cordero R. ) Date: Mon, 9 Apr 2012 16:55:49 -0400 Subject: [scilab-Users] problem whit Scilab In-Reply-To: References: Message-ID: Hi Which version of SCILAB and operative system in your computer do you have? Att R. Cordero 2012/4/9 Carolina Andrea Sepulveda Sepulveda > Dear Scilab support person > > I installed Scilab in my computer but not open correctly. > The text of Scilab tell: (finish email, it is the text) > > I' m installed and installed in three oportunity the program Scilab but > the problem persists. > > What do I do?, please > > thanks for you time > > ___________________________________________ > scilab-5.3.3 > > Consorcio Scilab (DIGITEO) > Copyright (c) 1989-2011 (INRIA) > Copyright (c) 1989-2007 (ENPC) > ___________________________________________ > > > Ejecucion de inicio: > cargando entorno inicial > > Start Accsum > Load macros > Load gateways > Load help > Load demos > Type "help accsum_overview" for quick start. > > Start Condnb > Load macros > Load help > Load demos > Type "help condnb_overview" for quick start. > Type "demo_gui()" and search for Condnb for Demonstrations. > > Start Dbldbl > Load macros > Load help > Type "help dbldbl_new" for quick start. > > atomsLoad: An error occurred while loading 'DD_QD-0.2-0': > El fichero > "C:\Users\Carolina\AppData\Roaming\Scilab\scilab-5.3.3\atoms\DD_QD\0.2-0\etc\MuPAT.start" > no existe. > Start Diffcode > Load macros > Load help > Load demos > Type "help diffcode_overview" for quick start. > Type "demo_gui()" and search for Diffcode for Demonstrations. > > Start Floatingpoint > Load macros > Load help > Load demos > Type "help floatingpoint_overview" for quick start. > Type "demo_gui()" and search for "Floatingpoint" for Demonstrations. > > Start Indirect Influences > Load macros > Load help > Load demos > > > Loading dynamic lib > atomsLoad: An error occurred while loading 'MPScilab-0.2-0': > link: El archivo compartido no fue cargado: No se puede encontrar el > m?dulo especificado. > Start sciGPGPU > Load macros > Load help > > > -------------------------------------------------------------------------------------------------------------------------------- > > > > -- > Carolina Sep?lveda Sep?lveda > Ingeniera Civil Qu?mica > Diplomada en Ingenier?a Ambiental > Mag?ster en Gesti?n Integrada > Estudiante Doctorado Ingenier?a Agr?cola > Universidad de Concepci?n > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matusov at squarepeg.ca Tue Apr 10 00:53:02 2012 From: matusov at squarepeg.ca (Mikhail Matusov) Date: Mon, 9 Apr 2012 18:53:02 -0400 Subject: API_Scilab example In-Reply-To: References: Message-ID: <07A57F7822864EAD88F2EBA018503372@SPCI055> Hi all, Can someone please point me to a simple example of how to use the API_Scilab? I am looking for ability to call SciLab functions from C, not the other way around. Thanks, /Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.zugmeyer at ens-lyon.fr Tue Apr 10 03:07:20 2012 From: simon.zugmeyer at ens-lyon.fr (simon) Date: Mon, 9 Apr 2012 18:07:20 -0700 (PDT) Subject: Exporting graphs to vector images Message-ID: <1334020040315-3898443.post@n3.nabble.com> Hi, For a few days I have been trying to export a 2D graph to svg. The graph itself is pretty simple (200ish dots, connected with lines). Each time, the image is messed up, parts of it are missing / are dashed, as you can see here : http://mailinglists.scilab.org/file/n3898443/angles_%28prise3%29.svg angles_(prise3).svg http://mailinglists.scilab.org/file/n3898443/angles.svg angles.svg The axis are not always well rendered. I tried to export the graph via the GUI, and using the xs2svg command, but neither work. I tried scilab v5.3.3, v5.2.2, v5.4 on windows, and v5.3.3 on linux. No vector vector formats (eps, svg, pdf) worked. Someone actually reported this bug through bugzilla http://bugzilla.scilab.org/show_bug.cgi?id=10614 (link) , but I thought I should ask you guys if you know whether this is a common issue or not, and how to fix it. Thanks. -- View this message in context: http://mailinglists.scilab.org/Exporting-graphs-to-vector-images-tp3898443p3898443.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab-enterprises.com Tue Apr 10 08:28:20 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 10 Apr 2012 08:28:20 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <07A57F7822864EAD88F2EBA018503372@SPCI055> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> Message-ID: <4F83D304.5030008@scilab-enterprises.com> Hello, On 10/04/2012 00:53, Mikhail Matusov wrote: > Hi all, > Can someone please point me to a simple example of how to use the > API_Scilab? I am looking for ability to call SciLab functions from C, > not the other way around. > api_scilab should be used when you want to add new features into Scilab based on C/C++ libraries. The documentation is here: http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html If you want to use Scilab as a computing enigne with C/C++, it is here: http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html And from Java: http://help.scilab.org/docs/5.3.3/en_US/javasci.html Sylvestre -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From jasper at amsterchem.com Tue Apr 10 14:58:51 2012 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 10 Apr 2012 14:58:51 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <4F83D304.5030008@scilab-enterprises.com> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> Message-ID: <4F842E8B.9040501@amsterchem.com> Hello Sylvestre, Can you outline how to call a C (or C++) function from Scilab? (what intersci used to do...) That is, suppose I have a C++ function Plus2: double Plus2(double arg) {return arg+2.0;} How can I use that from the Scilab command line? Thanks, Jasper. On 4/10/2012 08:28, Sylvestre Ledru wrote: > Hello, > On 10/04/2012 00:53, Mikhail Matusov wrote: >> Hi all, >> Can someone please point me to a simple example of how to use the >> API_Scilab? I am looking for ability to call SciLab functions from C, >> not the other way around. >> > api_scilab should be used when you want to add new features into > Scilab based on C/C++ libraries. > The documentation is here: > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > If you want to use Scilab as a computing enigne with C/C++, it is here: > http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html > And from Java: > http://help.scilab.org/docs/5.3.3/en_US/javasci.html > > Sylvestre > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.reche at gmail.com Tue Apr 10 16:45:32 2012 From: ivan.reche at gmail.com (Ivan Reche) Date: Tue, 10 Apr 2012 11:45:32 -0300 Subject: Can't get simulations with CLOCK_c to work as expected in Xcos Message-ID: I'm beginning to use Scilab and Xcos for my projects but I can't seem to understand some stuff about Xcos. For example: the block CLOCK_c is supposed to generate a clock of activation events. I understand that. However, I would like to see a common Sinusoid simulation in real time. I would like to see it being plotted with the correct timing in the X axis (using a CSCOPE block). I can accomplish this with a big *Period* in the *CLOCK_c* attributes (like 1 or 0.1) and configuring the *Real time scaling* attribute of the simulation to *1*. But if I lower it to some degree (like 0.01), I begin to get simulations that are *slower* than real time. I thought that the simulation time wouldn't be affected by some block's generated clock, but I guess I'm doing it the wrong way. I just wanted to sample the Sinusoid really fast, but without loosing real time behavior. What am I missing here? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Tue Apr 10 18:07:21 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 10 Apr 2012 18:07:21 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <4F842E8B.9040501@amsterchem.com> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> Message-ID: <1334074041.10059.4.camel@pomegues.inria.fr> Hello, You will find all the information and example in the api_scilab documentation. cf: http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html Sylvestre Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : > Hello Sylvestre, > > Can you outline how to call a C (or C++) function from Scilab? (what > intersci used to do...) > > That is, suppose I have a C++ function Plus2: > > double Plus2(double arg) {return arg+2.0;} > > How can I use that from the Scilab command line? > > Thanks, > > Jasper. > > On 4/10/2012 08:28, Sylvestre Ledru wrote: > > Hello, > > On 10/04/2012 00:53, Mikhail Matusov wrote: > > > Hi all, > > > Can someone please point me to a simple example of how to use the > > > API_Scilab? I am looking for ability to call SciLab functions from > > > C, not the other way around. > > > > > api_scilab should be used when you want to add new features into > > Scilab based on C/C++ libraries. > > The documentation is here: > > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > > > If you want to use Scilab as a computing enigne with C/C++, it is > > here: > > http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html > > And from Java: > > http://help.scilab.org/docs/5.3.3/en_US/javasci.html > > > > Sylvestre > > > > > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From matusov at squarepeg.ca Tue Apr 10 19:07:19 2012 From: matusov at squarepeg.ca (Mikhail Matusov) Date: Tue, 10 Apr 2012 13:07:19 -0400 Subject: [scilab-Users] API_Scilab example In-Reply-To: <4F83D304.5030008@scilab-enterprises.com> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> Message-ID: <5F2FD5B1E25947F48E75373AB3B9B91A@SPCI055> Hello Sylvestre, Thank you for your response. I am having difficulties trying to implement any of the examples. The documentation seems to be looped to itself. Would it be possible to add some instructions on how the examples need to be compiled in different environments? For example, I tried running builder.sce from http://wiki.scilab.org/Accessing%20a%20Scilab%20matrix%20from%20a%20C%20interface and got the following result: -->exec('C:\Projects\SciLab\work\builder.sce', -1) WARNING: Feature ilib_build is obsolete. WARNING: Please use A managed file extension for input argument #3 instead. WARNING: This feature will be permanently removed in Scilab 5.4.0 WARNING: ilib_build: Wrong value for input argument #5: "" or "[]" expected. Generate a gateway file Generate a loader file Generate a Makefile: Makelib Running the makefile WARNING: Feature ilib_compile is obsolete. WARNING: Please use A managed file extension for input argument #3 instead. WARNING: This feature will be permanently removed in Scilab 5.4.0 Compilation of test_matrix Building shared library (be patient) !Creation of dll libtest_matrix.dll and import lib from ... ! ! ! !libtest_matrix.obj ! ! ! ! Creating library libtest_matrix.lib and object libtest_matrix.exp ! ! ! !libtest_matrix.obj : error LNK2001: unresolved external symbol _test_matrix ! ! ! !libtest_matrix.dll : fatal error LNK1120: 1 unresolved externals ! ! ! !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.E! ! XE"' : return code '0x460' ! ! ! !Stop. ! !--error 10000 ilib_compile: Error while executing Makelib.mak. at line 76 of function ilib_compile called by : at line 107 of function ilib_build called by : ilib_build(ilib_name,table,files,libs,'Makelib',ldflags,cflags,fflags) at line 20 of exec file called by : exec('C:\Projects\SciLab\work\builder.sce', -1) Thanks, /Mikhail -----Original Message----- From: Sylvestre Ledru Sent: Tuesday, April 10, 2012 2:28 AM To: users at lists.scilab.org Subject: Re: [scilab-Users] API_Scilab example Hello, On 10/04/2012 00:53, Mikhail Matusov wrote: > Hi all, > Can someone please point me to a simple example of how to use the > API_Scilab? I am looking for ability to call SciLab functions from C, not > the other way around. > api_scilab should be used when you want to add new features into Scilab based on C/C++ libraries. The documentation is here: http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html If you want to use Scilab as a computing enigne with C/C++, it is here: http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html And from Java: http://help.scilab.org/docs/5.3.3/en_US/javasci.html Sylvestre -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- -- To unsubscribe from this mailing-list, please send an empty mail to users-unsubscribe at lists.scilab.org To check the archives of this mailing list, see http://mailinglists.scilab.org/ ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2126 / Virus Database: 2411/4926 - Release Date: 04/10/12 From jasper at amsterchem.com Tue Apr 10 19:10:18 2012 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 10 Apr 2012 19:10:18 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <1334074041.10059.4.camel@pomegues.inria.fr> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> Message-ID: <4F84697A.4090501@amsterchem.com> Hello Sylvestre, I see the call_scilab example, which works fine. I would like an example of scilab calling a function implemented in C++. I have read the documentation, but I am apparently missing the example. Would you be so kind to post the URL of the example itself? Thank you again, Best wishes, Jasper. On 4/10/2012 18:07, Sylvestre Ledru wrote: > Hello, > > You will find all the information and example in the api_scilab > documentation. > cf: > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > Sylvestre > > Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : >> Hello Sylvestre, >> >> Can you outline how to call a C (or C++) function from Scilab? (what >> intersci used to do...) >> >> That is, suppose I have a C++ function Plus2: >> >> double Plus2(double arg) {return arg+2.0;} >> >> How can I use that from the Scilab command line? >> >> Thanks, >> >> Jasper. >> >> On 4/10/2012 08:28, Sylvestre Ledru wrote: >>> Hello, >>> On 10/04/2012 00:53, Mikhail Matusov wrote: >>>> Hi all, >>>> Can someone please point me to a simple example of how to use the >>>> API_Scilab? I am looking for ability to call SciLab functions from >>>> C, not the other way around. >>>> >>> api_scilab should be used when you want to add new features into >>> Scilab based on C/C++ libraries. >>> The documentation is here: >>> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >>> >>> If you want to use Scilab as a computing enigne with C/C++, it is >>> here: >>> http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html >>> And from Java: >>> http://help.scilab.org/docs/5.3.3/en_US/javasci.html >>> >>> Sylvestre >>> >>> >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Tue Apr 10 19:12:06 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 10 Apr 2012 19:12:06 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <4F84697A.4090501@amsterchem.com> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> <4F84697A.4090501@amsterchem.com> Message-ID: <1334077926.12830.29.camel@pomegues.inria.fr> http://help.scilab.org/docs/5.3.3/en_US/Double_management_reading_API.html your call should be here: //Do something with data C++ or C is pretty much the same thing ... Just don't forget the extern... Sylvestre Le mardi 10 avril 2012 ? 19:10 +0200, jasper van baten a ?crit : > Hello Sylvestre, > > I see the call_scilab example, which works fine. > > I would like an example of scilab calling a function implemented in C > ++. > > I have read the documentation, but I am apparently missing the > example. Would you be so kind to post the URL of the example itself? > > Thank you again, > > Best wishes, > > Jasper. > > On 4/10/2012 18:07, Sylvestre Ledru wrote: > > Hello, > > > > You will find all the information and example in the api_scilab > > documentation. > > cf: > > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > > > Sylvestre > > > > Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : > > > Hello Sylvestre, > > > > > > Can you outline how to call a C (or C++) function from Scilab? (what > > > intersci used to do...) > > > > > > That is, suppose I have a C++ function Plus2: > > > > > > double Plus2(double arg) {return arg+2.0;} > > > > > > How can I use that from the Scilab command line? > > > > > > Thanks, > > > > > > Jasper. > > > > > > On 4/10/2012 08:28, Sylvestre Ledru wrote: > > > > Hello, > > > > On 10/04/2012 00:53, Mikhail Matusov wrote: > > > > > Hi all, > > > > > Can someone please point me to a simple example of how to use the > > > > > API_Scilab? I am looking for ability to call SciLab functions from > > > > > C, not the other way around. > > > > > > > > > api_scilab should be used when you want to add new features into > > > > Scilab based on C/C++ libraries. > > > > The documentation is here: > > > > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > > > > > > > If you want to use Scilab as a computing enigne with C/C++, it is > > > > here: > > > > http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html > > > > And from Java: > > > > http://help.scilab.org/docs/5.3.3/en_US/javasci.html > > > > > > > > Sylvestre > > > > > > > > > > > > > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From jasper at amsterchem.com Tue Apr 10 19:36:43 2012 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 10 Apr 2012 19:36:43 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <1334077926.12830.29.camel@pomegues.inria.fr> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> <4F84697A.4090501@amsterchem.com> <1334077926.12830.29.camel@pomegues.inria.fr> Message-ID: <4F846FAB.6050008@amsterchem.com> Hi Sylvestre, Now I am confused even further; this uses scilab gateway routines, such as CheckRhs, CheckLhs. Looking at its documentation http://help.scilab.org/docs/5.3.3/en_US/CheckLhs.html http://help.scilab.org/docs/5.3.3/en_US/CheckRhs.html these functions say: WARNING: This API is deprecated from Scilab 5.2.0 and is going to be removed with Scilab 6.0. Please use API Scilab (the new Scilab API). So I was actually looking for an example that was not deprecated.... I hope you can clear up my confusion... - Is this (Scilab Gateway API) the interface to use or not? - Will or will it not be deprecated (or it is already)? Also, the link that I am missing is telling Scilab that these functions exist and where to find them.... Thank you again, Jasper On 4/10/2012 19:12, Sylvestre Ledru wrote: > http://help.scilab.org/docs/5.3.3/en_US/Double_management_reading_API.html > > your call should be here: > //Do something with data > > C++ or C is pretty much the same thing ... Just don't forget the > extern... > > Sylvestre > > > Le mardi 10 avril 2012 ? 19:10 +0200, jasper van baten a ?crit : >> Hello Sylvestre, >> >> I see the call_scilab example, which works fine. >> >> I would like an example of scilab calling a function implemented in C >> ++. >> >> I have read the documentation, but I am apparently missing the >> example. Would you be so kind to post the URL of the example itself? >> >> Thank you again, >> >> Best wishes, >> >> Jasper. >> >> On 4/10/2012 18:07, Sylvestre Ledru wrote: >>> Hello, >>> >>> You will find all the information and example in the api_scilab >>> documentation. >>> cf: >>> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >>> >>> Sylvestre >>> >>> Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : >>>> Hello Sylvestre, >>>> >>>> Can you outline how to call a C (or C++) function from Scilab? (what >>>> intersci used to do...) >>>> >>>> That is, suppose I have a C++ function Plus2: >>>> >>>> double Plus2(double arg) {return arg+2.0;} >>>> >>>> How can I use that from the Scilab command line? >>>> >>>> Thanks, >>>> >>>> Jasper. >>>> >>>> On 4/10/2012 08:28, Sylvestre Ledru wrote: >>>>> Hello, >>>>> On 10/04/2012 00:53, Mikhail Matusov wrote: >>>>>> Hi all, >>>>>> Can someone please point me to a simple example of how to use the >>>>>> API_Scilab? I am looking for ability to call SciLab functions from >>>>>> C, not the other way around. >>>>>> >>>>> api_scilab should be used when you want to add new features into >>>>> Scilab based on C/C++ libraries. >>>>> The documentation is here: >>>>> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >>>>> >>>>> If you want to use Scilab as a computing enigne with C/C++, it is >>>>> here: >>>>> http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html >>>>> And from Java: >>>>> http://help.scilab.org/docs/5.3.3/en_US/javasci.html >>>>> >>>>> Sylvestre >>>>> >>>>> >>>>> >>>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Tue Apr 10 19:44:06 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 10 Apr 2012 19:44:06 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <4F846FAB.6050008@amsterchem.com> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> <4F84697A.4090501@amsterchem.com> <1334077926.12830.29.camel@pomegues.inria.fr> <4F846FAB.6050008@amsterchem.com> Message-ID: <1334079846.12830.32.camel@pomegues.inria.fr> Please read again the documentation and/or try with the one from the alpha or the nightly builds. Everything is documented and widely used. If you need support, I advice you to contact: http://www.scilab-enterprises.com/ Sylvestre Le mardi 10 avril 2012 ? 19:36 +0200, jasper van baten a ?crit : > Hi Sylvestre, > > Now I am confused even further; this uses scilab gateway routines, > such as CheckRhs, CheckLhs. Looking at its documentation > > http://help.scilab.org/docs/5.3.3/en_US/CheckLhs.html > http://help.scilab.org/docs/5.3.3/en_US/CheckRhs.html > > these functions say: > > WARNING: This API is deprecated from Scilab 5.2.0 and is going to be > removed with Scilab 6.0. Please use API Scilab (the new Scilab API). > > So I was actually looking for an example that was not deprecated.... > > I hope you can clear up my confusion... > > - Is this (Scilab Gateway API) the interface to use or not? > - Will or will it not be deprecated (or it is already)? > > Also, the link that I am missing is telling Scilab that these > functions exist and where to find them.... > > Thank you again, > > Jasper > > On 4/10/2012 19:12, Sylvestre Ledru wrote: > > http://help.scilab.org/docs/5.3.3/en_US/Double_management_reading_API.html > > > > your call should be here: > > //Do something with data > > > > C++ or C is pretty much the same thing ... Just don't forget the > > extern... > > > > Sylvestre > > > > > > Le mardi 10 avril 2012 ? 19:10 +0200, jasper van baten a ?crit : > > > Hello Sylvestre, > > > > > > I see the call_scilab example, which works fine. > > > > > > I would like an example of scilab calling a function implemented in C > > > ++. > > > > > > I have read the documentation, but I am apparently missing the > > > example. Would you be so kind to post the URL of the example itself? > > > > > > Thank you again, > > > > > > Best wishes, > > > > > > Jasper. > > > > > > On 4/10/2012 18:07, Sylvestre Ledru wrote: > > > > Hello, > > > > > > > > You will find all the information and example in the api_scilab > > > > documentation. > > > > cf: > > > > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > > > > > > > Sylvestre > > > > > > > > Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : > > > > > Hello Sylvestre, > > > > > > > > > > Can you outline how to call a C (or C++) function from Scilab? (what > > > > > intersci used to do...) > > > > > > > > > > That is, suppose I have a C++ function Plus2: > > > > > > > > > > double Plus2(double arg) {return arg+2.0;} > > > > > > > > > > How can I use that from the Scilab command line? > > > > > > > > > > Thanks, > > > > > > > > > > Jasper. > > > > > > > > > > On 4/10/2012 08:28, Sylvestre Ledru wrote: > > > > > > Hello, > > > > > > On 10/04/2012 00:53, Mikhail Matusov wrote: > > > > > > > Hi all, > > > > > > > Can someone please point me to a simple example of how to use the > > > > > > > API_Scilab? I am looking for ability to call SciLab functions from > > > > > > > C, not the other way around. > > > > > > > > > > > > > api_scilab should be used when you want to add new features into > > > > > > Scilab based on C/C++ libraries. > > > > > > The documentation is here: > > > > > > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > > > > > > > > > > > If you want to use Scilab as a computing enigne with C/C++, it is > > > > > > here: > > > > > > http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html > > > > > > And from Java: > > > > > > http://help.scilab.org/docs/5.3.3/en_US/javasci.html > > > > > > > > > > > > Sylvestre > > > > > > > > > > > > > > > > > > > > > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From matusov at squarepeg.ca Tue Apr 10 19:44:46 2012 From: matusov at squarepeg.ca (Mikhail Matusov) Date: Tue, 10 Apr 2012 13:44:46 -0400 Subject: [scilab-Users] API_Scilab example In-Reply-To: <4F84697A.4090501@amsterchem.com> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> <4F84697A.4090501@amsterchem.com> Message-ID: <121E88BE29EF42D9A5075EA19B62916B@SPCI055> Hello Jasper, I was wondering if you could help me with the call_scilab example? Could you please describe how you got it working? What C compiler are you using? In which environment? Thanks, /Mikhail From: jasper van baten Sent: Tuesday, April 10, 2012 1:10 PM To: users at lists.scilab.org Subject: Re: [scilab-Users] API_Scilab example Hello Sylvestre, I see the call_scilab example, which works fine. I would like an example of scilab calling a function implemented in C++. I have read the documentation, but I am apparently missing the example. Would you be so kind to post the URL of the example itself? Thank you again, Best wishes, Jasper. On 4/10/2012 18:07, Sylvestre Ledru wrote: Hello, You will find all the information and example in the api_scilab documentation. cf: http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html Sylvestre Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : Hello Sylvestre, Can you outline how to call a C (or C++) function from Scilab? (what intersci used to do...) That is, suppose I have a C++ function Plus2: double Plus2(double arg) {return arg+2.0;} How can I use that from the Scilab command line? Thanks, Jasper. On 4/10/2012 08:28, Sylvestre Ledru wrote: Hello, On 10/04/2012 00:53, Mikhail Matusov wrote: Hi all, Can someone please point me to a simple example of how to use the API_Scilab? I am looking for ability to call SciLab functions from C, not the other way around. api_scilab should be used when you want to add new features into Scilab based on C/C++ libraries. The documentation is here: http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html If you want to use Scilab as a computing enigne with C/C++, it is here: http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html And from Java: http://help.scilab.org/docs/5.3.3/en_US/javasci.html Sylvestre No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2126 / Virus Database: 2411/4926 - Release Date: 04/10/12 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Suzanne.Touzeau at jouy.inra.fr Tue Apr 10 20:07:06 2012 From: Suzanne.Touzeau at jouy.inra.fr (stouzeau) Date: Tue, 10 Apr 2012 11:07:06 -0700 (PDT) Subject: Exporting graphics: black square in vector formats Message-ID: <1334081226417-3900454.post@n3.nabble.com> Scilab-5.3.3 Ubuntu 11.10 (couldn't plot at first but installed libgl1-mesa-swx11 instead of libgl1-mesa-glx, as recommended, which fixed the bug) When I export graphics in vector formats (pdf, eps, svg), a full black square is added in the bottom-left corner of the figure. It doesn't happen with the other image formats. When I export graphics in Xfig format, the black square is present and can be deleted (it is composed of many filled polylines). However, all letters and numbers are transformed in polylines! Has anyone experienced and hopefully solved this problem? Any ideas on how to proceed to obtain clean exported graphics? Thanks in advance for your help and advice. -- View this message in context: http://mailinglists.scilab.org/Exporting-graphics-black-square-in-vector-formats-tp3900454p3900454.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jasper at amsterchem.com Tue Apr 10 20:20:06 2012 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 10 Apr 2012 20:20:06 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <121E88BE29EF42D9A5075EA19B62916B@SPCI055> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> <4F84697A.4090501@amsterchem.com> <121E88BE29EF42D9A5075EA19B62916B@SPCI055> Message-ID: <4F8479D6.2020304@amsterchem.com> I checked a very simple approach in MSVC (VS 2010): #include "stdafx.h" #include #include int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { if (!StartScilab(NULL,NULL,NULL)) {MessageBox(0,L"failed to start Scilab",L"Error:",MB_ICONHAND); return 0; } DisableInteractiveMode(); if (0!=SendScilabJob("a=10;")) MessageBox(0,L"Error sending job",L"Error:",MB_ICONHAND); TerminateScilab(NULL); return 0; } To compile that, modules\core\includes, modules\call_scilab\includes and modules\api_scilab\includes need to be in your include path, and you should link against call_scilab.lib and api_scilab.lib, which are in the bin folder. The bin folder needs to also be in the path when you call the exe, as this is where the corresponding dlls are located. Hope that helps, Best wishes, Jasper. On 4/10/2012 19:44, Mikhail Matusov wrote: > Hello Jasper, > I was wondering if you could help me with the call_scilab example? > Could you please describe how you got it working? What C compiler are > you using? In which environment? > Thanks, > /Mikhail > *From:* jasper van baten > *Sent:* Tuesday, April 10, 2012 1:10 PM > *To:* users at lists.scilab.org > *Subject:* Re: [scilab-Users] API_Scilab example > Hello Sylvestre, > > I see the call_scilab example, which works fine. > > I would like an example of scilab calling a function implemented in C++. > > I have read the documentation, but I am apparently missing the > example. Would you be so kind to post the URL of the example itself? > > Thank you again, > > Best wishes, > > Jasper. > > On 4/10/2012 18:07, Sylvestre Ledru wrote: >> Hello, >> >> You will find all the information and example in the api_scilab >> documentation. >> cf: >> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >> >> Sylvestre >> >> Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : >>> Hello Sylvestre, >>> >>> Can you outline how to call a C (or C++) function from Scilab? (what >>> intersci used to do...) >>> >>> That is, suppose I have a C++ function Plus2: >>> >>> double Plus2(double arg) {return arg+2.0;} >>> >>> How can I use that from the Scilab command line? >>> >>> Thanks, >>> >>> Jasper. >>> >>> On 4/10/2012 08:28, Sylvestre Ledru wrote: >>>> Hello, >>>> On 10/04/2012 00:53, Mikhail Matusov wrote: >>>>> Hi all, >>>>> Can someone please point me to a simple example of how to use the >>>>> API_Scilab? I am looking for ability to call SciLab functions from >>>>> C, not the other way around. >>>>> >>>> api_scilab should be used when you want to add new features into >>>> Scilab based on C/C++ libraries. >>>> The documentation is here: >>>> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >>>> >>>> If you want to use Scilab as a computing enigne with C/C++, it is >>>> here: >>>> http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html >>>> And from Java: >>>> http://help.scilab.org/docs/5.3.3/en_US/javasci.html >>>> >>>> Sylvestre >>>> >>>> >>>> >>>> > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.2126 / Virus Database: 2411/4926 - Release Date: 04/10/12 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasper at amsterchem.com Tue Apr 10 20:29:46 2012 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 10 Apr 2012 20:29:46 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <1334079846.12830.32.camel@pomegues.inria.fr> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> <4F84697A.4090501@amsterchem.com> <1334077926.12830.29.camel@pomegues.inria.fr> <4F846FAB.6050008@amsterchem.com> <1334079846.12830.32.camel@pomegues.inria.fr> Message-ID: <4F847C1A.505@amsterchem.com> Dear Sylvestre, Already read the documentation; don't need support (certainly not commercial support); just wonder what is deprecated and what is not. Trust the documentation that states it is deprecated, or will be? Then I will stay away from it. Too many re-calls with intersci which is now deprecated (yet still works fine as long as the binary dependencies are updated properly occasionally). Trust this documentation perhaps: http://help.scilab.org/docs/5.3.3/en_US/intersci.html? Maybe. Intersci at least provided me with the means to add functionality on the fly... I think at this point I will sit it out and stay away from coding something that will be deprecated in the next version. To quote http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html: It (api_scilab) provides a new consistent, documented and easy way API. ... And it will be maintained over future versions of Scilab Not sure now about any of these two claims... Thanks for the help, Best wishes, Jasper. On 4/10/2012 19:44, Sylvestre Ledru wrote: > Please read again the documentation and/or try with the one from the > alpha or the nightly builds. Everything is documented and widely used. > > If you need support, I advice you to contact: > http://www.scilab-enterprises.com/ > > Sylvestre > > Le mardi 10 avril 2012 ? 19:36 +0200, jasper van baten a ?crit : >> Hi Sylvestre, >> >> Now I am confused even further; this uses scilab gateway routines, >> such as CheckRhs, CheckLhs. Looking at its documentation >> >> http://help.scilab.org/docs/5.3.3/en_US/CheckLhs.html >> http://help.scilab.org/docs/5.3.3/en_US/CheckRhs.html >> >> these functions say: >> >> WARNING: This API is deprecated from Scilab 5.2.0 and is going to be >> removed with Scilab 6.0. Please use API Scilab (the new Scilab API). >> >> So I was actually looking for an example that was not deprecated.... >> >> I hope you can clear up my confusion... >> >> - Is this (Scilab Gateway API) the interface to use or not? >> - Will or will it not be deprecated (or it is already)? >> >> Also, the link that I am missing is telling Scilab that these >> functions exist and where to find them.... >> >> Thank you again, >> >> Jasper >> >> On 4/10/2012 19:12, Sylvestre Ledru wrote: >>> http://help.scilab.org/docs/5.3.3/en_US/Double_management_reading_API.html >>> >>> your call should be here: >>> //Do something with data >>> >>> C++ or C is pretty much the same thing ... Just don't forget the >>> extern... >>> >>> Sylvestre >>> >>> >>> Le mardi 10 avril 2012 ? 19:10 +0200, jasper van baten a ?crit : >>>> Hello Sylvestre, >>>> >>>> I see the call_scilab example, which works fine. >>>> >>>> I would like an example of scilab calling a function implemented in C >>>> ++. >>>> >>>> I have read the documentation, but I am apparently missing the >>>> example. Would you be so kind to post the URL of the example itself? >>>> >>>> Thank you again, >>>> >>>> Best wishes, >>>> >>>> Jasper. >>>> >>>> On 4/10/2012 18:07, Sylvestre Ledru wrote: >>>>> Hello, >>>>> >>>>> You will find all the information and example in the api_scilab >>>>> documentation. >>>>> cf: >>>>> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >>>>> >>>>> Sylvestre >>>>> >>>>> Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : >>>>>> Hello Sylvestre, >>>>>> >>>>>> Can you outline how to call a C (or C++) function from Scilab? (what >>>>>> intersci used to do...) >>>>>> >>>>>> That is, suppose I have a C++ function Plus2: >>>>>> >>>>>> double Plus2(double arg) {return arg+2.0;} >>>>>> >>>>>> How can I use that from the Scilab command line? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Jasper. >>>>>> >>>>>> On 4/10/2012 08:28, Sylvestre Ledru wrote: >>>>>>> Hello, >>>>>>> On 10/04/2012 00:53, Mikhail Matusov wrote: >>>>>>>> Hi all, >>>>>>>> Can someone please point me to a simple example of how to use the >>>>>>>> API_Scilab? I am looking for ability to call SciLab functions from >>>>>>>> C, not the other way around. >>>>>>>> >>>>>>> api_scilab should be used when you want to add new features into >>>>>>> Scilab based on C/C++ libraries. >>>>>>> The documentation is here: >>>>>>> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >>>>>>> >>>>>>> If you want to use Scilab as a computing enigne with C/C++, it is >>>>>>> here: >>>>>>> http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html >>>>>>> And from Java: >>>>>>> http://help.scilab.org/docs/5.3.3/en_US/javasci.html >>>>>>> >>>>>>> Sylvestre >>>>>>> >>>>>>> >>>>>>> >>>>>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Tue Apr 10 20:44:12 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 10 Apr 2012 20:44:12 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <4F847C1A.505@amsterchem.com> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> <4F84697A.4090501@amsterchem.com> <1334077926.12830.29.camel@pomegues.inria.fr> <4F846FAB.6050008@amsterchem.com> <1334079846.12830.32.camel@pomegues.inria.fr> <4F847C1A.505@amsterchem.com> Message-ID: <1334083452.12830.42.camel@pomegues.inria.fr> Sorry for the my rude tone in my previous email. If you believe that there is some conflicting statements in the documentation, please report bugs: http://bugzilla.scilab.org/ About CheckRhs & CheckLhs, the version 5.4.0 will introduced the replacements called CheckInputArgument & CheckOutputArgument. The two will remain supported in the 5.X family Sylvestre Le mardi 10 avril 2012 ? 20:29 +0200, jasper van baten a ?crit : > Dear Sylvestre, > > Already read the documentation; don't need support (certainly not > commercial support); just wonder what is deprecated and what is not. > Trust the documentation that states it is deprecated, or will be? Then > I will stay away from it. Too many re-calls with intersci which is now > deprecated (yet still works fine as long as the binary dependencies > are updated properly occasionally). Trust this documentation perhaps: > http://help.scilab.org/docs/5.3.3/en_US/intersci.html? Maybe. Intersci > at least provided me with the means to add functionality on the fly... > I think at this point I will sit it out and stay away from coding > something that will be deprecated in the next version. > > To quote http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html: > > It (api_scilab) provides a new consistent, documented and easy way > API. > ... > And it will be maintained over future versions of Scilab > > Not sure now about any of these two claims... > > Thanks for the help, > > Best wishes, > > Jasper. > > On 4/10/2012 19:44, Sylvestre Ledru wrote: > > Please read again the documentation and/or try with the one from the > > alpha or the nightly builds. Everything is documented and widely used. > > > > If you need support, I advice you to contact: > > http://www.scilab-enterprises.com/ > > > > Sylvestre > > > > Le mardi 10 avril 2012 ? 19:36 +0200, jasper van baten a ?crit : > > > Hi Sylvestre, > > > > > > Now I am confused even further; this uses scilab gateway routines, > > > such as CheckRhs, CheckLhs. Looking at its documentation > > > > > > http://help.scilab.org/docs/5.3.3/en_US/CheckLhs.html > > > http://help.scilab.org/docs/5.3.3/en_US/CheckRhs.html > > > > > > these functions say: > > > > > > WARNING: This API is deprecated from Scilab 5.2.0 and is going to be > > > removed with Scilab 6.0. Please use API Scilab (the new Scilab API). > > > > > > So I was actually looking for an example that was not deprecated.... > > > > > > I hope you can clear up my confusion... > > > > > > - Is this (Scilab Gateway API) the interface to use or not? > > > - Will or will it not be deprecated (or it is already)? > > > > > > Also, the link that I am missing is telling Scilab that these > > > functions exist and where to find them.... > > > > > > Thank you again, > > > > > > Jasper > > > > > > On 4/10/2012 19:12, Sylvestre Ledru wrote: > > > > http://help.scilab.org/docs/5.3.3/en_US/Double_management_reading_API.html > > > > > > > > your call should be here: > > > > //Do something with data > > > > > > > > C++ or C is pretty much the same thing ... Just don't forget the > > > > extern... > > > > > > > > Sylvestre > > > > > > > > > > > > Le mardi 10 avril 2012 ? 19:10 +0200, jasper van baten a ?crit : > > > > > Hello Sylvestre, > > > > > > > > > > I see the call_scilab example, which works fine. > > > > > > > > > > I would like an example of scilab calling a function implemented in C > > > > > ++. > > > > > > > > > > I have read the documentation, but I am apparently missing the > > > > > example. Would you be so kind to post the URL of the example itself? > > > > > > > > > > Thank you again, > > > > > > > > > > Best wishes, > > > > > > > > > > Jasper. > > > > > > > > > > On 4/10/2012 18:07, Sylvestre Ledru wrote: > > > > > > Hello, > > > > > > > > > > > > You will find all the information and example in the api_scilab > > > > > > documentation. > > > > > > cf: > > > > > > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > > > > > > > > > > > Sylvestre > > > > > > > > > > > > Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : > > > > > > > Hello Sylvestre, > > > > > > > > > > > > > > Can you outline how to call a C (or C++) function from Scilab? (what > > > > > > > intersci used to do...) > > > > > > > > > > > > > > That is, suppose I have a C++ function Plus2: > > > > > > > > > > > > > > double Plus2(double arg) {return arg+2.0;} > > > > > > > > > > > > > > How can I use that from the Scilab command line? > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > Jasper. > > > > > > > > > > > > > > On 4/10/2012 08:28, Sylvestre Ledru wrote: > > > > > > > > Hello, > > > > > > > > On 10/04/2012 00:53, Mikhail Matusov wrote: > > > > > > > > > Hi all, > > > > > > > > > Can someone please point me to a simple example of how to use the > > > > > > > > > API_Scilab? I am looking for ability to call SciLab functions from > > > > > > > > > C, not the other way around. > > > > > > > > > > > > > > > > > api_scilab should be used when you want to add new features into > > > > > > > > Scilab based on C/C++ libraries. > > > > > > > > The documentation is here: > > > > > > > > http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html > > > > > > > > > > > > > > > > If you want to use Scilab as a computing enigne with C/C++, it is > > > > > > > > here: > > > > > > > > http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html > > > > > > > > And from Java: > > > > > > > > http://help.scilab.org/docs/5.3.3/en_US/javasci.html > > > > > > > > > > > > > > > > Sylvestre > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From jasper at amsterchem.com Tue Apr 10 21:01:24 2012 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 10 Apr 2012 21:01:24 +0200 Subject: [scilab-Users] API_Scilab example In-Reply-To: <1334083452.12830.42.camel@pomegues.inria.fr> References: <07A57F7822864EAD88F2EBA018503372@SPCI055> <4F83D304.5030008@scilab-enterprises.com> <4F842E8B.9040501@amsterchem.com> <1334074041.10059.4.camel@pomegues.inria.fr> <4F84697A.4090501@amsterchem.com> <1334077926.12830.29.camel@pomegues.inria.fr> <4F846FAB.6050008@amsterchem.com> <1334079846.12830.32.camel@pomegues.inria.fr> <4F847C1A.505@amsterchem.com> <1334083452.12830.42.camel@pomegues.inria.fr> Message-ID: <4F848384.8030107@amsterchem.com> Dear Sylvestre, Thank you again for your reply. In the 5.4 alpha, the documentation for CheckInputArgument/CheckOutputArgument is not (yet) there. As intersci still works quite ok in 5.4 alpha (and actually works ok for x64 for this version, did not manage to resolve linking issues in previous versions) I will stick with intersci until API Scilab and perhaps an alternative to intersci in combination with dynamic linking crystallizes out. Would much like to hear about SWIG once available (if developments indeed will head in that direction). I may switch to call_scilab in the mean time for getting scilab to start, as that appears to go a lot faster than starting it in a separate process, which is what I do now. Best wishes, Jasper. On 4/10/2012 20:44, Sylvestre Ledru wrote: > Sorry for the my rude tone in my previous email. > > If you believe that there is some conflicting statements in the > documentation, please report bugs: > http://bugzilla.scilab.org/ > > About CheckRhs& CheckLhs, the version 5.4.0 will introduced the > replacements called CheckInputArgument& CheckOutputArgument. > The two will remain supported in the 5.X family > > Sylvestre > > > > Le mardi 10 avril 2012 ? 20:29 +0200, jasper van baten a ?crit : >> Dear Sylvestre, >> >> Already read the documentation; don't need support (certainly not >> commercial support); just wonder what is deprecated and what is not. >> Trust the documentation that states it is deprecated, or will be? Then >> I will stay away from it. Too many re-calls with intersci which is now >> deprecated (yet still works fine as long as the binary dependencies >> are updated properly occasionally). Trust this documentation perhaps: >> http://help.scilab.org/docs/5.3.3/en_US/intersci.html? Maybe. Intersci >> at least provided me with the means to add functionality on the fly... >> I think at this point I will sit it out and stay away from coding >> something that will be deprecated in the next version. >> >> To quote http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html: >> >> It (api_scilab) provides a new consistent, documented and easy way >> API. >> ... >> And it will be maintained over future versions of Scilab >> >> Not sure now about any of these two claims... >> >> Thanks for the help, >> >> Best wishes, >> >> Jasper. >> >> On 4/10/2012 19:44, Sylvestre Ledru wrote: >>> Please read again the documentation and/or try with the one from the >>> alpha or the nightly builds. Everything is documented and widely used. >>> >>> If you need support, I advice you to contact: >>> http://www.scilab-enterprises.com/ >>> >>> Sylvestre >>> >>> Le mardi 10 avril 2012 ? 19:36 +0200, jasper van baten a ?crit : >>>> Hi Sylvestre, >>>> >>>> Now I am confused even further; this uses scilab gateway routines, >>>> such as CheckRhs, CheckLhs. Looking at its documentation >>>> >>>> http://help.scilab.org/docs/5.3.3/en_US/CheckLhs.html >>>> http://help.scilab.org/docs/5.3.3/en_US/CheckRhs.html >>>> >>>> these functions say: >>>> >>>> WARNING: This API is deprecated from Scilab 5.2.0 and is going to be >>>> removed with Scilab 6.0. Please use API Scilab (the new Scilab API). >>>> >>>> So I was actually looking for an example that was not deprecated.... >>>> >>>> I hope you can clear up my confusion... >>>> >>>> - Is this (Scilab Gateway API) the interface to use or not? >>>> - Will or will it not be deprecated (or it is already)? >>>> >>>> Also, the link that I am missing is telling Scilab that these >>>> functions exist and where to find them.... >>>> >>>> Thank you again, >>>> >>>> Jasper >>>> >>>> On 4/10/2012 19:12, Sylvestre Ledru wrote: >>>>> http://help.scilab.org/docs/5.3.3/en_US/Double_management_reading_API.html >>>>> >>>>> your call should be here: >>>>> //Do something with data >>>>> >>>>> C++ or C is pretty much the same thing ... Just don't forget the >>>>> extern... >>>>> >>>>> Sylvestre >>>>> >>>>> >>>>> Le mardi 10 avril 2012 ? 19:10 +0200, jasper van baten a ?crit : >>>>>> Hello Sylvestre, >>>>>> >>>>>> I see the call_scilab example, which works fine. >>>>>> >>>>>> I would like an example of scilab calling a function implemented in C >>>>>> ++. >>>>>> >>>>>> I have read the documentation, but I am apparently missing the >>>>>> example. Would you be so kind to post the URL of the example itself? >>>>>> >>>>>> Thank you again, >>>>>> >>>>>> Best wishes, >>>>>> >>>>>> Jasper. >>>>>> >>>>>> On 4/10/2012 18:07, Sylvestre Ledru wrote: >>>>>>> Hello, >>>>>>> >>>>>>> You will find all the information and example in the api_scilab >>>>>>> documentation. >>>>>>> cf: >>>>>>> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >>>>>>> >>>>>>> Sylvestre >>>>>>> >>>>>>> Le mardi 10 avril 2012 ? 14:58 +0200, jasper van baten a ?crit : >>>>>>>> Hello Sylvestre, >>>>>>>> >>>>>>>> Can you outline how to call a C (or C++) function from Scilab? (what >>>>>>>> intersci used to do...) >>>>>>>> >>>>>>>> That is, suppose I have a C++ function Plus2: >>>>>>>> >>>>>>>> double Plus2(double arg) {return arg+2.0;} >>>>>>>> >>>>>>>> How can I use that from the Scilab command line? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> Jasper. >>>>>>>> >>>>>>>> On 4/10/2012 08:28, Sylvestre Ledru wrote: >>>>>>>>> Hello, >>>>>>>>> On 10/04/2012 00:53, Mikhail Matusov wrote: >>>>>>>>>> Hi all, >>>>>>>>>> Can someone please point me to a simple example of how to use the >>>>>>>>>> API_Scilab? I am looking for ability to call SciLab functions from >>>>>>>>>> C, not the other way around. >>>>>>>>>> >>>>>>>>> api_scilab should be used when you want to add new features into >>>>>>>>> Scilab based on C/C++ libraries. >>>>>>>>> The documentation is here: >>>>>>>>> http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html >>>>>>>>> >>>>>>>>> If you want to use Scilab as a computing enigne with C/C++, it is >>>>>>>>> here: >>>>>>>>> http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html >>>>>>>>> And from Java: >>>>>>>>> http://help.scilab.org/docs/5.3.3/en_US/javasci.html >>>>>>>>> >>>>>>>>> Sylvestre >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From ierturk at ieee.org Tue Apr 10 21:52:32 2012 From: ierturk at ieee.org (ierturk) Date: Tue, 10 Apr 2012 12:52:32 -0700 (PDT) Subject: set action in interface function is executed when start to simulating xcos diagram Message-ID: <1334087552491-3900670.post@n3.nabble.com> Hi, I try to add a new block for creating a menu in xcos, because a addmenu command is absence in Scilab-5.3.3. I have added gui command to set case on interface function of new block. Gui is activated when clicked on it, also when I start simulation gui is activated too. Is there a method to prevent this, in simulation time? Regards, Ibrahim -- View this message in context: http://mailinglists.scilab.org/set-action-in-interface-function-is-executed-when-start-to-simulating-xcos-diagram-tp3900670p3900670.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ychattah at iai.co.il Wed Apr 11 08:42:38 2012 From: ychattah at iai.co.il (computidoo) Date: Tue, 10 Apr 2012 23:42:38 -0700 (PDT) Subject: parallel_run and unix_g In-Reply-To: <4F6CA281.9010006@laas.fr> References: <4F6CA281.9010006@laas.fr> Message-ID: <1334126558270-3901725.post@n3.nabble.com> i did something like this. I have a linux program and i wanted to run it in parallel so I did it on linux script and use the unix_s to run the script. in linux i use & and open tmp files to run the program in parallel.each running is return a file of results. i hope i helped. i didnt use the parallel_run( i did it from linux) computidoo -- View this message in context: http://mailinglists.scilab.org/parallel-run-and-unix-g-tp3852081p3901725.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Wed Apr 11 08:46:51 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 11 Apr 2012 08:46:51 +0200 Subject: [scilab-Users] Re: parallel_run and unix_g In-Reply-To: <1334126558270-3901725.post@n3.nabble.com> References: <4F6CA281.9010006@laas.fr> <1334126558270-3901725.post@n3.nabble.com> Message-ID: <4F8528DB.90003@laas.fr> On 11/04/2012 08:42, computidoo wrote: > i did something like this. > I have a linux program and i wanted to run it in parallel so I did it on > linux script and use the unix_s to run the script. > in linux i use& and open tmp files to run the program in parallel.each > running is return a file of results. > i hope i helped. > i didnt use the parallel_run( i did it from linux) Thanks for the reply. I was indeed thinking about dumping scilab for this task and use a bash script approach as all the hard work is done by unix utilities. I'll give a go at parallel and so. Cheers, Antoine > computidoo > > > -- > View this message in context: http://mailinglists.scilab.org/parallel-run-and-unix-g-tp3852081p3901725.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From ycollette.nospam at free.fr Wed Apr 11 10:41:19 2012 From: ycollette.nospam at free.fr (ycollette.nospam at free.fr) Date: Wed, 11 Apr 2012 10:41:19 +0200 (CEST) Subject: Adding an html page in the doc of a toolbox In-Reply-To: <1467717523.88569882.1334133619907.JavaMail.root@zimbra35-e6.priv.proxad.net> Message-ID: <781451401.88573203.1334133679567.JavaMail.root@zimbra35-e6.priv.proxad.net> Hello, I was wondering if it is possible to do the following thing with the documentation: I put the html documentation of a code into mytoolbox/help/html (first page named index.html). Now I wanted to add a section "code documentation" in the main page of the doc. How can I do this ? the file master*.xml is auto generated and I can't modify it during build process. Best regards, YC From vincent at kelber.net Wed Apr 11 17:16:57 2012 From: vincent at kelber.net (Vincent Kelber) Date: Wed, 11 Apr 2012 17:16:57 +0200 Subject: Scilab Message-ID: Hello, my problem is, that there runs NO Scilab version on my Mac. It starts and shutdown after a few seconds. I don't have Snow Leopard: Mac OS X Version 10.6.8 2.26GHz Intel Core 2 Duo How can i solve this problem? Thanks! Vincent Kelber vincent at kelber.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Wed Apr 11 17:23:54 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 11 Apr 2012 17:23:54 +0200 Subject: [scilab-Users] Scilab In-Reply-To: References: Message-ID: <4F85A20A.9050209@centre-cired.fr> On 11/04/2012 17:16, Vincent Kelber wrote: > Hello, > my problem is, that there runs NO Scilab version on my Mac. It starts > and shutdown after a few seconds. > I don't have Snow Leopard: > > > Mac OS X > Version 10.6.8 > > 2.26GHz Intel Core 2 Duo > > How can i solve this problem? > > > Thanks! > > > Vincent Kelber > vincent at kelber.net > > > hi which version of scilab did you try? did you try http://www.scilab.org/products/scilab/download/5.4.0-alpha-1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From snoozerman at ymail.com Wed Apr 11 19:11:29 2012 From: snoozerman at ymail.com (snoozerman) Date: Wed, 11 Apr 2012 10:11:29 -0700 (PDT) Subject: Problem: Gcc compiler / Scilab 5.3.1 version - 64 bits / MinGW / Scilab demonstrations In-Reply-To: <280394.65556.qm@web45510.mail.sp1.yahoo.com> References: <280394.65556.qm@web45510.mail.sp1.yahoo.com> Message-ID: <1334164289610-3903176.post@n3.nabble.com> Hi, I too run Win7 64bit and got identical error messages when running the same example. Is there a solution to the problem? I can't find it... Regards Snoozerman -- View this message in context: http://mailinglists.scilab.org/Problem-Gcc-compiler-Scilab-5-3-1-version-64-bits-MinGW-Scilab-demonstrations-tp2892455p3903176.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From snoozerman at ymail.com Wed Apr 11 19:14:48 2012 From: snoozerman at ymail.com (snoozerman) Date: Wed, 11 Apr 2012 10:14:48 -0700 (PDT) Subject: Problem: Gcc compiler / Scilab 5.3.1 version - 64 bits / MinGW / Scilab demonstrations In-Reply-To: <280394.65556.qm@web45510.mail.sp1.yahoo.com> References: <280394.65556.qm@web45510.mail.sp1.yahoo.com> Message-ID: <1334164488945-3903192.post@n3.nabble.com> Hi, I too run Win7 64bit and got identical error messages when running the same example. Is there a solution to the problem? I can't find it... Ps. Sorry for possibly a duplicate post - my email list subscriptions seems to struggel :( Ds. Regards Snoozerman -- View this message in context: http://mailinglists.scilab.org/Problem-Gcc-compiler-Scilab-5-3-1-version-64-bits-MinGW-Scilab-demonstrations-tp2892455p3903192.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From kristoff.bonne at skypro.be Wed Apr 11 21:12:02 2012 From: kristoff.bonne at skypro.be (Kristoff Bonne) Date: Wed, 11 Apr 2012 21:12:02 +0200 Subject: frequency responds of FM modulated signal Message-ID: Hi, I don't want to sound to much like a "lazy person", but can somebody help out with something I like to do with scilab? In a couple of weeks, I will be giving a talk in our local radio-club here in Ostend on GMSK and D-STAR (ham digital voice). As most of our members are not that technical, most of the talk will be about what GMSK looks like, how it is received by a FM tranceiver and how a D-STAR stream is structured. I am just starting to learn DSP myself (and how to use scilab for that), so I know I am supposted to learn this myself, but I am a bit short on time here. I like to do a simulation of a 2400 bps bittrain (0-1-0-1-...), FSK modulate it and get a frequency analysis of the result. In addition to that, I like to do the same thing, but first apply a gaussian filter to the signal. The goal is to show why a gaussian filter is applied in GMSK, i.e. to show that a GMSK signal is smaller then a plain FSK signal. (I know, I can explain this in theory: the rizing and falling edge of a signal include high frequency, etc. etc. ... but it would be nice to have a visual way of showing this). Is there a way scilab can be used for this? Many Thanks in advance, Kr. Bonne (ON1ARF) From matusov at squarepeg.ca Thu Apr 12 02:09:43 2012 From: matusov at squarepeg.ca (Mikhail Matusov) Date: Wed, 11 Apr 2012 20:09:43 -0400 Subject: Problem calling plot through call_scilab interface Message-ID: <5A7BA3E718F34FCD9C06A8FFA3E9B577@SPCI055> Hello, I have managed to call plot using SendScilabJob("plot"). I get the plot on the screen with some demo curves displayed, but none of the controls (e.g. such as zoom) on it work. Is this expected? Thanks, /Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: From bheemal at unisim.edu.sg Thu Apr 12 04:49:11 2012 From: bheemal at unisim.edu.sg (Bheema Thiagarajan Lokesh (UniSIM)) Date: Thu, 12 Apr 2012 02:49:11 +0000 Subject: Scilab 5.4.0 alpha 1 on Lion OS Message-ID: <99DB6C645299694DBFEE370C981240D2026D58@ZIRCONIUM.uninet.edu.sg> Hi, I tried installing Scilab 5.4.0 alpha 1 on my Mac running Lion OS. Installation was successful and I can see the Scilab icon (bird). When I click on it, it just keeps jumping and I do not see the command prompt. Kindly advice Cheers Lokesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From snoozerman at ymail.com Wed Apr 11 19:01:38 2012 From: snoozerman at ymail.com (snoozerman) Date: Wed, 11 Apr 2012 10:01:38 -0700 (PDT) Subject: Problem: Gcc compiler / Scilab 5.3.1 version - 64 bits / MinGW / Scilab demonstrations In-Reply-To: <280394.65556.qm@web45510.mail.sp1.yahoo.com> References: <280394.65556.qm@web45510.mail.sp1.yahoo.com> Message-ID: <1334163698248-3903147.post@n3.nabble.com> Hi, I too run Win7 64bit and got identical error messages when running the same example. Is there a solution to the problem? I can't find it... Regards Snoozerman -- View this message in context: http://mailinglists.scilab.org/Problem-Gcc-compiler-Scilab-5-3-1-version-64-bits-MinGW-Scilab-demonstrations-tp2892455p3903147.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab-enterprises.com Thu Apr 12 14:10:01 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Thu, 12 Apr 2012 14:10:01 +0200 Subject: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS In-Reply-To: <99DB6C645299694DBFEE370C981240D2026D58@ZIRCONIUM.uninet.edu.sg> References: <99DB6C645299694DBFEE370C981240D2026D58@ZIRCONIUM.uninet.edu.sg> Message-ID: <1334232601.15204.35.camel@pomegues.inria.fr> Hello, Could you try with the nightly build of the 5.4 ? Thanks, S Le jeudi 12 avril 2012 ? 02:49 +0000, Bheema Thiagarajan Lokesh (UniSIM) a ?crit : > Hi, > > > > I tried installing Scilab 5.4.0 alpha 1 on my Mac running Lion OS. > > > > Installation was successful and I can see the Scilab icon (bird). When > I click on it, it just keeps jumping and I do not see the command > prompt. > > > > Kindly advice > > > > Cheers > > Lokesh > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From sylvestre.ledru at scilab-enterprises.com Thu Apr 12 14:05:30 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Thu, 12 Apr 2012 14:05:30 +0200 Subject: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS In-Reply-To: <99DB6C645299694DBFEE370C981240D2026D58@ZIRCONIUM.uninet.edu.sg> References: <99DB6C645299694DBFEE370C981240D2026D58@ZIRCONIUM.uninet.edu.sg> Message-ID: <1334232330.15204.31.camel@pomegues.inria.fr> Hello, Could you try with the nightly build of the 5.4 ? Thanks, S Le jeudi 12 avril 2012 ? 02:49 +0000, Bheema Thiagarajan Lokesh (UniSIM) a ?crit : > Hi, > > > > I tried installing Scilab 5.4.0 alpha 1 on my Mac running Lion OS. > > > > Installation was successful and I can see the Scilab icon (bird). When > I click on it, it just keeps jumping and I do not see the command > prompt. > > > > Kindly advice > > > > Cheers > > Lokesh > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From bheemal at unisim.edu.sg Thu Apr 12 17:29:26 2012 From: bheemal at unisim.edu.sg (Bheema Thiagarajan Lokesh (UniSIM)) Date: Thu, 12 Apr 2012 15:29:26 +0000 Subject: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS In-Reply-To: <1334232330.15204.31.camel@pomegues.inria.fr> References: <99DB6C645299694DBFEE370C981240D2026D58@ZIRCONIUM.uninet.edu.sg>,<1334232330.15204.31.camel@pomegues.inria.fr> Message-ID: <99DB6C645299694DBFEE370C981240D2026FB0@ZIRCONIUM.uninet.edu.sg> Hi Sylvestre, I downloaded scilab master-1334174471 nightly build for MAC OS and installed it. Still the bird icon just keeps jumping. I do not see the command prompt. Cheers Lokesh Privileged / Confidential information may be contained in this message. If you are not the intended recipient, you must not copy, distribute or use it for any purpose, nor disclose its contents to any other person. Please notify the sender immediately if you have received this in error. ________________________________________ From: Sylvestre Ledru [sylvestre.ledru at scilab-enterprises.com] Sent: Thursday, April 12, 2012 8:05 PM To: users at lists.scilab.org; Bheema Thiagarajan Lokesh (UniSIM) Subject: Re: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS Hello, Could you try with the nightly build of the 5.4 ? Thanks, S Le jeudi 12 avril 2012 ? 02:49 +0000, Bheema Thiagarajan Lokesh (UniSIM) a ?crit : > Hi, > > > > I tried installing Scilab 5.4.0 alpha 1 on my Mac running Lion OS. > > > > Installation was successful and I can see the Scilab icon (bird). When > I click on it, it just keeps jumping and I do not see the command > prompt. > > > > Kindly advice > > > > Cheers > > Lokesh > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From bheemal at unisim.edu.sg Thu Apr 12 17:38:40 2012 From: bheemal at unisim.edu.sg (Bheema Thiagarajan Lokesh (UniSIM)) Date: Thu, 12 Apr 2012 15:38:40 +0000 Subject: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS In-Reply-To: <1334232330.15204.31.camel@pomegues.inria.fr> References: <99DB6C645299694DBFEE370C981240D2026D58@ZIRCONIUM.uninet.edu.sg>,<1334232330.15204.31.camel@pomegues.inria.fr> Message-ID: <99DB6C645299694DBFEE370C981240D2026FCB@ZIRCONIUM.uninet.edu.sg> Hi Sylvestre, I tried reinstalling the 5.4.0 alpha 1 and now it works. Thank you for the advice. Cheers Lokesh Privileged / Confidential information may be contained in this message. If you are not the intended recipient, you must not copy, distribute or use it for any purpose, nor disclose its contents to any other person. Please notify the sender immediately if you have received this in error. ________________________________________ From: Sylvestre Ledru [sylvestre.ledru at scilab-enterprises.com] Sent: Thursday, April 12, 2012 8:05 PM To: users at lists.scilab.org; Bheema Thiagarajan Lokesh (UniSIM) Subject: Re: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS Hello, Could you try with the nightly build of the 5.4 ? Thanks, S Le jeudi 12 avril 2012 ? 02:49 +0000, Bheema Thiagarajan Lokesh (UniSIM) a ?crit : > Hi, > > > > I tried installing Scilab 5.4.0 alpha 1 on my Mac running Lion OS. > > > > Installation was successful and I can see the Scilab icon (bird). When > I click on it, it just keeps jumping and I do not see the command > prompt. > > > > Kindly advice > > > > Cheers > > Lokesh > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From rfabbri at gmail.com Fri Apr 13 08:28:50 2012 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Fri, 13 Apr 2012 03:28:50 -0300 Subject: SIP x SIVP x IPD Message-ID: Hi, Scilab has 3 major toolboxes for image processing. I quickly compiled a list which tries to describe what is special about each of them, focusing on SIP. Let me know if you think any item should be added or changed. I put this list on SIP's home page as well, and encourage IPD and SIVP developers to display a similar list on their project pages as well. *SIP vs. SIVP vs. IPD- the 'other' Scilab Image Processing toolboxes * Basically, SIP aims towards comprehensive functionality. The only price is a longer installation process to get all the features due to many third-party dependencies. - SIP prioritizes GNU/Linux. SIVP and IPD are *currently* easier for Windows users, followed by SIVP. - SIP provides unified bindings to several image processing libraries: ImageMagick, OpenCV, animal, and (soon) Leptonica. - SIP is targeted to more advanced users: aims at more functionality than SIVP and IPD, but can be harder to install. This is a design decision. - SIP has the most number of functions. As of april 2012, SIP has 74 help pages, compared to 55 from SIVP and 53 from IPD. - SIP appeared first, SIVP as a friendly fork of SIP. IPD appeared more recently. Most of the SIVP improvements have recently been merged back into SIP. - SIP is designed for very rapid prototyping of imaging solutions. - SIP has a friendly and responsive developer and user community. - SIP provides ample illustrated documentation with examples. - SIP provides state-of-the-art Euclidean morphology-related algorithms, such as dilations, erosions, distance transforms, skeletons, watershed segmentation, with reference implementations that are mostly superior to Matlab and other software. - SIVP has explicit handling of integer pixel depths, while SIP is purposedly built for double representation, for simplicity. - SIVP *currently* has support for video processing beyond SIP. - SIP focuses on ease of use, functionality, and on the *internal* speed of the provided functions, *not* on any low-level user-visible details that could complicate quick usage, such as specialized support for huge images or integer pixel depths. Most image processsing production code or complex time-consuming algorithms that need to deal with very large images should switch from Scilab to C/C++ (for example) as soon as the idea is working for medium-sized images in Scilab+SIP. - SIP may be part of Google Summer of Code 2012! - *Conclusion: All 3 Scilab IP toolboxes are great and complement each other. They even share code. * Best regards, Ricardo Fabbri -- Linux registered user #175401 www.lems.brown.edu/~rfabbri pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From rei.listas at yahoo.com Fri Apr 13 18:05:22 2012 From: rei.listas at yahoo.com (Reinaldo) Date: Fri, 13 Apr 2012 09:05:22 -0700 (PDT) Subject: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS In-Reply-To: <99DB6C645299694DBFEE370C981240D2026FCB@ZIRCONIUM.uninet.edu.sg> References: <99DB6C645299694DBFEE370C981240D2026D58@ZIRCONIUM.uninet.edu.sg>,<1334232330.15204.31.camel@pomegues.inria.fr> <99DB6C645299694DBFEE370C981240D2026FCB@ZIRCONIUM.uninet.edu.sg> Message-ID: <1334333122.85312.YahooMailNeo@web122504.mail.ne1.yahoo.com> Hi? I installed Scilab 5.4.0 - alpha 1 - in my MacBook Air (Mac OS Lion 10.7.3). However, before I installed it, I had installed Xcode (1.8 GB) from Apple Store. This Xcode is mandatory (in my opinion) to run Scilab or other software which needs C/C++ compilers. In regard to Scilab 5.4.0 for Mac, it seems working well (including runs Scilab demonstration examples). All best, R. ________________________________ De: Bheema Thiagarajan Lokesh (UniSIM) Para: Sylvestre Ledru ; "users at lists.scilab.org" Enviadas: Quinta-feira, 12 de Abril de 2012 12:38 Assunto: RE: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS Hi Sylvestre, I tried reinstalling the 5.4.0 alpha 1 and now it works. Thank you for the advice. Cheers Lokesh Privileged / Confidential information may be contained in this message. If you are not the intended recipient, you must not copy, distribute or use it for any purpose, nor disclose its contents to any other person. Please notify the sender immediately if you have received this in error. ________________________________________ From: Sylvestre Ledru [sylvestre.ledru at scilab-enterprises.com] Sent: Thursday, April 12, 2012 8:05 PM To: users at lists.scilab.org; Bheema Thiagarajan Lokesh (UniSIM) Subject: Re: [scilab-Users] Scilab 5.4.0 alpha 1 on Lion OS Hello, Could you try with the nightly build of the 5.4 ? Thanks, S Le jeudi 12 avril 2012 ? 02:49 +0000, Bheema Thiagarajan Lokesh (UniSIM) a ?crit : > Hi, > > > > I tried installing Scilab 5.4.0 alpha 1 on my Mac running Lion OS. > > > > Installation was successful and I can see the Scilab icon (bird). When > I click on it, it just keeps jumping and I do not see the command > prompt. > > > > Kindly advice > > > > Cheers > > Lokesh > > > > -- ----------------------------- Sylvestre Ledru Operation manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- -- To unsubscribe from this mailing-list, please send an empty mail to users-unsubscribe at lists.scilab.org To check the archives of this mailing list, see http://mailinglists.scilab.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Sat Apr 14 10:55:34 2012 From: rouxph.22 at gmail.com (philippe) Date: Sat, 14 Apr 2012 10:55:34 +0200 Subject: exercise on list In-Reply-To: <1333911895514-3894928.post@n3.nabble.com> References: <1333911895514-3894928.post@n3.nabble.com> Message-ID: Le 08/04/2012 21:04, abd_bela a ?crit : > > > without using (loops: for or while) create the list of numbers as follow: whitout loops it's fun :-) > 1, 2, 2, 3 3 3 4 4 4 4 5 5 5 5 5 ...... 9 9 9 9 9 9 9 9 9 easy : build a 9x9 matrix with A(i,j)=i, take the lower triangular part of A with tril), rewrite it as a one line list (with :), and keep only non zero coefficients : n=9; A=(tril(([1:n]')*ones(1:n)))'; B=A(:); C=B(find(B<>0))' > > 1 0 2 0 0 3 0 0 0 4 0 0 0 0 ..... 9 0 0 0 0 0 0 0 0 0 harder, but based on the same ideas : n=9;A=-ones(n+1,n+1); A(1,2:n+1)=[1:n]; A=triu(A);B=A(:);C=B(find(B<>0))'; C(find(C==-1))=0; C(1)=[] Philippe. From Mike at Page-One.Waitrose.com Sat Apr 14 11:32:15 2012 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Sat, 14 Apr 2012 10:32:15 +0100 Subject: [scilab-Users] Problem calling plot through call_scilab interface In-Reply-To: <5A7BA3E718F34FCD9C06A8FFA3E9B577@SPCI055> Message-ID: Hi Mikhail, Yes - I think this is happening because your thread is paused. See the user group discussion (http://mailinglists.scilab.org/Question-on-using-plot-in-call-scilab-module -td2617404.html#a2618830) for more information. I have used SendScilabJob under Windows (multi-threaded) to allow C code to use Scilab's graphics engine. Note that the code I placed on that user thread has a deliberate mistake ;-). If you can't spot it - let me know. HTH Mike. -----Original Message----- From: Mikhail Matusov [mailto:matusov at squarepeg.ca] Sent: 12 April 2012 01:10 To: users at lists.scilab.org Subject: [scilab-Users] Problem calling plot through call_scilab interface Hello, I have managed to call plot using SendScilabJob("plot"). I get the plot on the screen with some demo curves displayed, but none of the controls (e.g. such as zoom) on it work. Is this expected? Thanks, /Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at scilab-enterprises.com Sat Apr 14 13:00:18 2012 From: calixte.denizet at scilab-enterprises.com (Calixte DENIZET) Date: Sat, 14 Apr 2012 13:00:18 +0200 Subject: [scilab-Users] Re: exercise on list In-Reply-To: References: <1333911895514-3894928.post@n3.nabble.com> Message-ID: <4F8958C2.2080403@scilab-enterprises.com> Hi, Funny exercise... :) i) N=9;L=zeros(1,N*(N+1)/2 - 1);L(cumsum(1:(N - 1)))=1;L=[1 cumsum(L) + 1] The first idea is to use a diff on the result to observe that there is ones at position 1,3,6,10,.... and to "revert" a diff use a cumsum. ii) N=9;L=zeros(1,(N+1)*(N+2)/2 - 1);L(cumsum(1:N))=1:N The idea is to observe that you've a number at position 1,3,6,10,... so just put this number at the right position. Calixte On 14/04/2012 10:55, philippe wrote: > Le 08/04/2012 21:04, abd_bela a ?crit : >> >> >> without using (loops: for or while) create the list of numbers as >> follow: > > whitout loops it's fun :-) > >> 1, 2, 2, 3 3 3 4 4 4 4 5 5 5 5 5 ...... 9 9 9 9 9 9 9 9 9 > > easy : build a 9x9 matrix with A(i,j)=i, take the lower triangular > part of A with tril), rewrite it as a one line list (with :), and keep > only non zero coefficients : > > n=9; > A=(tril(([1:n]')*ones(1:n)))'; B=A(:); C=B(find(B<>0))' > >> >> 1 0 2 0 0 3 0 0 0 4 0 0 0 0 ..... 9 0 0 0 0 0 0 0 0 0 > > harder, but based on the same ideas : > > n=9;A=-ones(n+1,n+1); A(1,2:n+1)=[1:n]; > A=triu(A);B=A(:);C=B(find(B<>0))'; C(find(C==-1))=0; C(1)=[] > > > Philippe. > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From ychattah at iai.co.il Sun Apr 15 08:30:21 2012 From: ychattah at iai.co.il (computidoo) Date: Sat, 14 Apr 2012 23:30:21 -0700 (PDT) Subject: optim_ga Message-ID: <1334471421099-3911478.post@n3.nabble.com> Hello, I'm using optim_ga function. I need that the optim_ga will look only for the minimum value. Is it passible to edit the optim_ga function for looking only the minimum value? BR computidoo -- View this message in context: http://mailinglists.scilab.org/optim-ga-tp3911478p3911478.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From samuel.enibe at unn.edu.ng Mon Apr 16 01:49:16 2012 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Sun, 15 Apr 2012 19:49:16 -0400 Subject: SCILAB GRAPHICS ON UBUNTU LINUX 11.10 Message-ID: Dear Sirs, i have been a heavy user of the excellent software SCILAB for over a year now on the UBUNTU LINUX distributions. Recently, I purchased a new laptop and installed UBUNTU 11.10 in it. Unfortunately, the SCILAB 5.3.3 I installed from the UBUNTU website does not display any graphic images, but does other jobs well. I tried to overcome this problem by downloading SCILAB 5.4.0 ALPHA and installing it manually but this does not work properly as it did in UBUNTU 11.04. A fellow staff who recently upgraded from UBUNTU 11.04 to 11.10 is experiencing the same problem. It will be appreciated if you can help me solve this problem. -- Prof S O Enibe University of Nigeria, Nsukka, Nigeria -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristoff.bonne at skypro.be Mon Apr 16 11:57:36 2012 From: kristoff.bonne at skypro.be (Kristoff Bonne) Date: Mon, 16 Apr 2012 11:57:36 +0200 Subject: SCILAB GRAPHICS ON UBUNTU LINUX 11.10 In-Reply-To: References: Message-ID: Hi Samuel, On 16-04-12 01:49, Samuel Enibe wrote: > i have been a heavy user of the excellent software SCILAB for over a > year now on the UBUNTU LINUX distributions. > Recently, I purchased a new laptop and installed UBUNTU 11.10 in it. > Unfortunately, the SCILAB 5.3.3 I installed from the UBUNTU website does > not display any graphic images, but does other jobs well. I tried to > overcome this problem by downloading SCILAB 5.4.0 ALPHA and installing > it manually but this does not work properly as it did in UBUNTU 11.04. (...) > It will be appreciated if you can help me solve this problem. I had the same problem. I found this information that helped for me: http://bugzilla.scilab.org/show_bug.cgi?id=10106 (see comment 10) sudo apt-get install libgl1-mesa-swx11 > Prof S O Enibe > University of Nigeria, Nsukka, Nigeria I hope this helps. Cheerio! Kr. Bonne. From sylvestre.ledru at scilab-enterprises.com Mon Apr 16 12:02:02 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Mon, 16 Apr 2012 12:02:02 +0200 Subject: [scilab-Users] Re: SCILAB GRAPHICS ON UBUNTU LINUX 11.10 In-Reply-To: References: Message-ID: <4F8BEE1A.2040206@scilab-enterprises.com> Le 16/04/2012 11:57, Kristoff Bonne a ?crit : > Hi Samuel, > > > > > On 16-04-12 01:49, Samuel Enibe wrote: >> i have been a heavy user of the excellent software SCILAB for over a >> year now on the UBUNTU LINUX distributions. >> Recently, I purchased a new laptop and installed UBUNTU 11.10 in it. >> Unfortunately, the SCILAB 5.3.3 I installed from the UBUNTU website does >> not display any graphic images, but does other jobs well. I tried to >> overcome this problem by downloading SCILAB 5.4.0 ALPHA and installing >> it manually but this does not work properly as it did in UBUNTU 11.04. > (...) >> It will be appreciated if you can help me solve this problem. > > I had the same problem. I found this information that helped for me: > http://bugzilla.scilab.org/show_bug.cgi?id=10106 (see comment 10) > > sudo apt-get install libgl1-mesa-swx11 It is a bug from Ubuntu in the mesa packaging. They introduced a patch which breaks mesa rendering... CF: https://jogamp.org/bugzilla/show_bug.cgi?id=566 https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/965798 https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/877491 http://bugzilla.scilab.org/show_bug.cgi?id=10106 Sylvestre From samuel.enibe at unn.edu.ng Mon Apr 16 15:48:26 2012 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Mon, 16 Apr 2012 14:48:26 +0100 Subject: [scilab-Users] Re: SCILAB GRAPHICS ON UBUNTU LINUX 11.10 In-Reply-To: <4F8BEE1A.2040206@scilab-enterprises.com> References: <4F8BEE1A.2040206@scilab-enterprises.com> Message-ID: Dear Sylvestre, Thank you so much. I have tried it and the programme now works perfectly. God bless you. Samuel Enibe On Mon, Apr 16, 2012 at 11:02 AM, Sylvestre Ledru < sylvestre.ledru at scilab-enterprises.com> wrote: > Le 16/04/2012 11:57, Kristoff Bonne a ?crit : > > Hi Samuel, > > > > > > > > > > On 16-04-12 01:49, Samuel Enibe wrote: > >> i have been a heavy user of the excellent software SCILAB for over a > >> year now on the UBUNTU LINUX distributions. > >> Recently, I purchased a new laptop and installed UBUNTU 11.10 in it. > >> Unfortunately, the SCILAB 5.3.3 I installed from the UBUNTU website does > >> not display any graphic images, but does other jobs well. I tried to > >> overcome this problem by downloading SCILAB 5.4.0 ALPHA and installing > >> it manually but this does not work properly as it did in UBUNTU 11.04. > > (...) > >> It will be appreciated if you can help me solve this problem. > > > > I had the same problem. I found this information that helped for me: > > http://bugzilla.scilab.org/show_bug.cgi?id=10106 (see comment 10) > > > > sudo apt-get install libgl1-mesa-swx11 > It is a bug from Ubuntu in the mesa packaging. They introduced a patch > which breaks mesa rendering... > > CF: > https://jogamp.org/bugzilla/show_bug.cgi?id=566 > https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/965798 > https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/877491 > http://bugzilla.scilab.org/show_bug.cgi?id=10106 > > Sylvestre > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > -- Samuel Ogbonna Enibe BEng (Nig), MSc (Reading, England), PhD (Nig) Professor of Mechanical Engineering Director, National Centre for Equipment Maintenance & Development University of Nigeria, Nsukka, Nigeria Tel: +2348063646798 Email: samuel.enibe at unn.edu.ng enibesam at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Apr 16 15:57:59 2012 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 16 Apr 2012 15:57:59 +0200 (CEST) Subject: Fileexchange & Atoms resources hidden to Open Search engines In-Reply-To: <1608471144.145689296.1334584654596.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1583636990.145690119.1334584679397.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, Beeing a sharer on Scilab Filexchange, i was wondering about why resources uploaded there are not referenced by Search engines like Google. The reason is that http://fileexchange.scilab.org/robots.txt is presently set to User-agent: * Allow: /index.cgi Disallow: / where / disallows all pages -- included the portal -- to be referenced, and where /index.cgi does not exists and returns a 404 error. The situation is the same for the ATOMS's portal for external modules: http://atoms.scilab.org/robots.txt User-agent: * Allow: /index.cgi Disallow: / whereas the bug http://bugzilla.scilab.org/show_bug.cgi?id=10896 also prevents the Scilab ATOMS interface to propose many available resources. For my part, i do not see any interest in going on uploading resources that i want to share if it is on a site that hides them from Search engines robots. These ones should be able to scan and refer to all pages of these resources. Otherwise, it would be easy and more consistent to upload resources elsewhere and just to set on fileexchange a pointer to them. Hoping to read other scilab users about that (since other potential users cannot be reached and polled ;) Best regards Samuel Gougeon From vogt at centre-cired.fr Mon Apr 16 16:09:24 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 16 Apr 2012 16:09:24 +0200 Subject: [scilab-Users] Fileexchange & Atoms resources hidden to Open Search engines In-Reply-To: <1583636990.145690119.1334584679397.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1583636990.145690119.1334584679397.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <4F8C2814.1000504@centre-cired.fr> Hi For the record, I agree. As a file user (not sharer), i find it very unpractical not being able to reach something on atoms or fileexchange just by typing the name on google. Just an example: http://www.google.com/search?q=atoms+scilab+mingw&hl=en How could this search not return http://atoms.scilab.org/toolboxes/mingw/ ? I actually spend part of my time showing my colleagues where to get mingw for scilab. I would really prefer google to do it for me. Best regards On 16/04/2012 15:57, sgougeon at free.fr wrote: > Hello, > > Beeing a sharer on Scilab Filexchange, i was wondering > about why resources uploaded there are not referenced > by Search engines like Google. The reason is that > http://fileexchange.scilab.org/robots.txt > is presently set to > > User-agent: * > Allow: /index.cgi > Disallow: / > > where / disallows all pages -- included the portal -- > to be referenced, and where /index.cgi does not exists > and returns a 404 error. > > The situation is the same for the ATOMS's portal for external > modules: http://atoms.scilab.org/robots.txt > > User-agent: * > Allow: /index.cgi > Disallow: / > > whereas the bug > http://bugzilla.scilab.org/show_bug.cgi?id=10896 > also prevents the Scilab ATOMS interface to propose many > available resources. > > For my part, i do not see any interest in going on > uploading resources that i want to share if it is on > a site that hides them from Search engines robots. > These ones should be able to scan and refer to all > pages of these resources. > Otherwise, it would be easy and more consistent to > upload resources elsewhere and just to set on fileexchange > a pointer to them. > > Hoping to read other scilab users about that (since > other potential users cannot be reached and polled ;) > > Best regards > Samuel Gougeon > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.gareste at scilab.org Mon Apr 16 17:50:02 2012 From: simon.gareste at scilab.org (Simon GARESTE) Date: Mon, 16 Apr 2012 17:50:02 +0200 Subject: [scilab-Users] Fileexchange & Atoms resources hidden to Open Search engines In-Reply-To: <4F8C2814.1000504@centre-cired.fr> References: <1583636990.145690119.1334584679397.JavaMail.root@zimbra75-e12.priv.proxad.net> <4F8C2814.1000504@centre-cired.fr> Message-ID: <4F8C3FAA.8040107@scilab.org> Hi, This comes from a misconfiguration from our part, and was not an intended behavior. I'll change this as soon as possible. I don't understand which flag are you talking about on ATOMS, could you be more specific? I will add a note on the website to indicate that windows modules need to be in a different version if we want to make them available for the 5.4 : we do not currently have a way on atoms to have both a <5.4 and 5.4 valid compiled module on the same version of the module. Simon On 04/16/2012 04:09 PM, Adrien Vogt-Schilb wrote: > Hi > > For the record, I agree. > > As a file user (not sharer), i find it very unpractical not being able > to reach something on atoms or fileexchange just by typing the name on > google. > > Just an example: > http://www.google.com/search?q=atoms+scilab+mingw&hl=en How could > this search not return http://atoms.scilab.org/toolboxes/mingw/ ? > > I actually spend part of my time showing my colleagues where to get > mingw for scilab. I would really prefer google to do it for me. > > Best regards > > > On 16/04/2012 15:57, sgougeon at free.fr wrote: >> Hello, >> >> Beeing a sharer on Scilab Filexchange, i was wondering >> about why resources uploaded there are not referenced >> by Search engines like Google. The reason is that >> http://fileexchange.scilab.org/robots.txt >> is presently set to >> >> User-agent: * >> Allow: /index.cgi >> Disallow: / >> >> where / disallows all pages -- included the portal -- >> to be referenced, and where /index.cgi does not exists >> and returns a 404 error. >> >> The situation is the same for the ATOMS's portal for external >> modules:http://atoms.scilab.org/robots.txt >> >> User-agent: * >> Allow: /index.cgi >> Disallow: / >> >> whereas the bug >> http://bugzilla.scilab.org/show_bug.cgi?id=10896 >> also prevents the Scilab ATOMS interface to propose many >> available resources. >> >> For my part, i do not see any interest in going on >> uploading resources that i want to share if it is on >> a site that hides them from Search engines robots. >> These ones should be able to scan and refer to all >> pages of these resources. >> Otherwise, it would be easy and more consistent to >> upload resources elsewhere and just to set on fileexchange >> a pointer to them. >> >> Hoping to read other scilab users about that (since >> other potential users cannot be reached and polled ;) >> >> Best regards >> Samuel Gougeon >> >> -- >> To unsubscribe from this mailing-list, please send an empty mail to >> users-unsubscribe at lists.scilab.org >> To check the archives of this mailing list, see >> http://mailinglists.scilab.org/ > -- -- Simon Gareste Support& Development Engineer Consortium Scilab-DIGITEO -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Mon Apr 16 18:19:08 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 16 Apr 2012 18:19:08 +0200 Subject: [scilab-Users] Fileexchange & Atoms resources hidden to Open Search engines In-Reply-To: <4F8C3FAA.8040107@scilab.org> References: <1583636990.145690119.1334584679397.JavaMail.root@zimbra75-e12.priv.proxad.net> <4F8C2814.1000504@centre-cired.fr> <4F8C3FAA.8040107@scilab.org> Message-ID: <4F8C467C.2010707@centre-cired.fr> On 16/04/2012 17:50, Simon GARESTE wrote: > I don't understand which flag are you talking about on ATOMS, could > you be more specific? I will add a note on the website to indicate > that windows modules need to be in a different version if we want to > make them available for the 5.4 : we do not currently have a way on > atoms to have both a <5.4 and 5.4 valid compiled module on the same > version of the module. > > Simon Are you asking me? i am ot sure i understood the question. As far as i am concerned, my only problem was the lack of indexing by search engines. The problem i pointed out was an illustration (if one does not reach the atoms web page through google, he likely does not reach the page at tall and does not get the information that he needs a particular mingw distribution) -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Apr 16 23:09:57 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 16 Apr 2012 23:09:57 +0200 Subject: [scilab-Users] Fileexchange & Atoms resources hidden to Open Search engines In-Reply-To: <4F8C3FAA.8040107@scilab.org> References: <1583636990.145690119.1334584679397.JavaMail.root@zimbra75-e12.priv.proxad.net> <4F8C2814.1000504@centre-cired.fr> <4F8C3FAA.8040107@scilab.org> Message-ID: <4F8C8AA5.6000402@free.fr> Hello Simon, Le 16/04/2012 17:50, Simon GARESTE a ?crit : > Hi, > > This comes from a misconfiguration from our part, and was not an > intended behavior. I'll change this as soon as possible. > I don't understand which flag are you talking about on ATOMS, could > you be more specific? I will add a note on the website to indicate > that windows modules need to be in a different version if we want to > make them available for the 5.4 : we do not currently have a way on > atoms to have both a <5.4 and 5.4 valid compiled module on the same > version of the module. About what i call "the flag": The script run by the ATOMS's server to build the list of modules that will be listed by the ATOMS's interface under Scilab, declares some modules in the built, and skips other ones (that then are not proposed through the GUI). The criterium according to which a module is "exported" for the GUI or conversely is not exported, is not clear, and is not published. I am calling it "the flag". It is likely a mixed condition. No-one but you may have access to it. I'm sorry, i do not understand the last part of your answer. Some modules -- like the Socket one -- with only macros (+ a jar for help pages. Is building them the issue? Installation by hand works with Scilab 5.4...) and that can run "as is" with Scilab 5.4 as they already do with Scilab 5.3 -- are not exported to the zip and therefore are not listed by the GUI. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Tue Apr 17 15:12:10 2012 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Tue, 17 Apr 2012 14:12:10 +0100 Subject: SCILAB BOOKS/TUTORIALS Message-ID: Dear Sirs, I have recently adopted SCILAB for an Engineering Postgraduate Course on numerical analysis. I also use it to teach interested persons at seminars. Up to this moment, I have relied on the INTRODUCTION TO SCILAB and other documents available from SCILAB website, the online help and books on MATLAB. Could you please point me to any available online book or teaching material specifically developed for SCILAB. Thank you very much. -- Prof Samuel Enibe Professor of Mechanical Engineering University of Nigeria, Nsukka, Nigeria -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Apr 17 15:17:48 2012 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 17 Apr 2012 15:17:48 +0200 (CEST) Subject: [scilab-Users] SCILAB BOOKS/TUTORIALS In-Reply-To: Message-ID: <1381856590.150381575.1334668668786.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, You may have a look at the documentation section of the Scilab's Wiki: http://wiki.scilab.org/Documentation Regards Samuel Gougeon ----- Mail original ----- De: "Samuel Enibe" ?: users at lists.scilab.org Envoy?: Mardi 17 Avril 2012 15:12:10 Objet: [scilab-Users] SCILAB BOOKS/TUTORIALS Dear Sirs, I have recently adopted SCILAB for an Engineering Postgraduate Course on numerical analysis. I also use it to teach interested persons at seminars. Up to this moment, I have relied on the INTRODUCTION TO SCILAB and other documents available from SCILAB website, the online help and books on MATLAB. Could you please point me to any available online book or teaching material specifically developed for SCILAB. Thank you very much. -- Prof Samuel Enibe Professor of Mechanical Engineering University of Nigeria, Nsukka, Nigeria From david.cheze at cea.fr Tue Apr 17 16:31:04 2012 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Tue, 17 Apr 2012 07:31:04 -0700 (PDT) Subject: SCILAB BOOKS/TUTORIALS In-Reply-To: References: Message-ID: <1334673064425-3917426.post@n3.nabble.com> Hello, you may have a look to this post: http://mailinglists.scilab.org/up-to-date-book-about-Xcos-tp3728731p3728780.html it's a book about Scilab and Scicos, upon which is based Xcos. I found it personnally a good teaching book for Scilab/Xcos 5.4 I'm currently using (not scicoslab). David -- View this message in context: http://mailinglists.scilab.org/SCILAB-BOOKS-TUTORIALS-tp3917207p3917426.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From craig at fasortronics.com Wed Apr 18 07:05:56 2012 From: craig at fasortronics.com (CraigD) Date: Tue, 17 Apr 2012 22:05:56 -0700 (PDT) Subject: GUI Creation -- use of guimaker or uicontrol Message-ID: <1334725556317-3919097.post@n3.nabble.com> Hi, I wish to add a two-column list of variable descriptors and the variable next to my figure so that I can edit values and re-run the model. The first example in the 'guimaker' help documentation is good start, but I would like it to appear in the same window as my figure. I have also tried using the examples in the 'cb_uicontrol_plot3d' file with some success in creating a frame next to my own figure, but I cannot figure out how to add the variable list in order to edit their values. Can anyone offer a suggestion? I am new to SciLab and learning along the way. Thanks, Craig -- View this message in context: http://mailinglists.scilab.org/GUI-Creation-use-of-guimaker-or-uicontrol-tp3919097p3919097.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From craig at fasortronics.com Wed Apr 18 17:50:03 2012 From: craig at fasortronics.com (CraigD) Date: Wed, 18 Apr 2012 08:50:03 -0700 (PDT) Subject: GUI Creation -- use of guimaker or uicontrol In-Reply-To: <1334725556317-3919097.post@n3.nabble.com> References: <1334725556317-3919097.post@n3.nabble.com> Message-ID: <1334764203738-3920447.post@n3.nabble.com> Thought I would update my post with new information that I found. Looking in the how to/guicontrol Documentation section (I've looked there before but what I read before was probably beyond my understanding at the time) and reading through the "Creating Dialogs with uicontrol" FAQ's section, I see that it may not be possible to add an editable list of values to the graphics window. Evidently, you can add frames, text, sliders, buttons -- but you cannot "list" a variable and ask the user to edit its value? If anyone has an interest, I would like to open a discussion regarding this question and the GUI creation in general. Does anyone have experience trying to use Qt Creator for GUI creation with Scilab? I have it installed on my Lion MacBookPro and might give it a try. I am using Scilab 5.4-alpha on a MacBookPro_v2.1 using Lion 10.7.3. I have the March 2012 Xcode installed as well as MacPorts with Octave, Maxima, and others. Craig -- View this message in context: http://mailinglists.scilab.org/GUI-Creation-use-of-guimaker-or-uicontrol-tp3919097p3920447.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed Apr 18 23:16:02 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 18 Apr 2012 23:16:02 +0200 Subject: [scilab-Users] Re: GUI Creation -- use of guimaker or uicontrol In-Reply-To: <1334764203738-3920447.post@n3.nabble.com> References: <1334725556317-3919097.post@n3.nabble.com> <1334764203738-3920447.post@n3.nabble.com> Message-ID: <4F8F2F12.1090000@free.fr> Hello, The style of the uicontrol component should be "edit". Multiple lines editing has been requested there: http://bugzilla.scilab.org/show_bug.cgi?id=7085 Before its implementation, you may run a loop other unique line edition. Best regards Samuel Gougeon Le 18/04/2012 17:50, CraigD a ?crit : > Thought I would update my post with new information that I found. Looking in > the how to/guicontrol Documentation section (I've looked there before but > what I read before was probably beyond my understanding at the time) and > reading through the "Creating Dialogs with uicontrol" FAQ's section, I see > that it may not be possible to add an editable list of values to the > graphics window. Evidently, you can add frames, text, sliders, buttons -- > but you cannot "list" a variable and ask the user to edit its value? > > If anyone has an interest, I would like to open a discussion regarding this > question and the GUI creation in general. > > Does anyone have experience trying to use Qt Creator for GUI creation with > Scilab? I have it installed on my Lion MacBookPro and might give it a try. > > I am using Scilab 5.4-alpha on a MacBookPro_v2.1 using Lion 10.7.3. I have > the March 2012 Xcode installed as well as MacPorts with Octave, Maxima, and > others. > > Craig > > -- > View this message in context: http://mailinglists.scilab.org/GUI-Creation-use-of-guimaker-or-uicontrol-tp3919097p3920447.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > > From enaitza at hotmail.com Thu Apr 19 18:22:35 2012 From: enaitza at hotmail.com (Enaitz Alustiza) Date: Thu, 19 Apr 2012 16:22:35 +0000 Subject: scicos_block4.h Message-ID: Good afternoon, my name is Enaitz Alustiza. I?m studing in EHU/UPV (The University of the Basque Country, Spain) and I?m finishing the studies of Engineering of Industrial Organization. To develop my final project, I have to define new functions in Xcos (Scilab) programming in C. I?m trying to follow the attached tutorial, but I have an error that says: !lim_int_comp.c(5) : fatal error C1083: No se puede abrir el archivo incluir: 'scicos/scicos_block4.h': No such file or d! ! irectory So I understand that I need the scicos_block4.h library. Could you please tell me how and where can I find this library? I will thank you very much if you were able to send me any kind of example about this issue. Thank you very much. Receive my best regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Thu Apr 19 19:24:14 2012 From: allan.cornet at scilab.org (allan.cornet at scilab.org) Date: Thu, 19 Apr 2012 19:24:14 +0200 Subject: [scilab-Users] =?UTF-8?Q?scicos=5Fblock=34=2Eh?= In-Reply-To: References: Message-ID: <17c6dbdb3d3150838097b304804f77b4@scilab.org> Hi, What is your Scilab Version and OS platform ? Thanks Allan On Thu, 19 Apr 2012 16:22:35 +0000, Enaitz Alustiza wrote: > Good afternoon, > > my name is Enaitz Alustiza. I?m studing in EHU/UPV (The University of > the Basque Country, Spain) and I?m finishing the studies of > Engineering of Industrial Organization. > > To develop my final project, I have to define new functions in Xcos > (Scilab) programming in C. I?m trying to follow the attached > tutorial, but I have an error that says: > > _!LIM_INT_COMP.C(5) : FATAL ERROR C1083: NO SE PUEDE ABRIR EL ARCHIVO > INCLUIR: 'SCICOS/SCICOS_BLOCK4.H': NO SUCH FILE OR D!_ > > _! IRECTORY ___ > > So I understand that I need the _scicos_block4.h_ library. Could you > please tell me how and where can I find this library? I will thank > you > very much if you were able to send me any kind of example about this > issue. > > Thank you very much. > > Receive my best regards, From craig at fasortronics.com Fri Apr 20 19:01:34 2012 From: craig at fasortronics.com (CraigD) Date: Fri, 20 Apr 2012 10:01:34 -0700 (PDT) Subject: GUI Creation -- use of guimaker or uicontrol In-Reply-To: <4F8F2F12.1090000@free.fr> References: <1334725556317-3919097.post@n3.nabble.com> <1334764203738-3920447.post@n3.nabble.com> <4F8F2F12.1090000@free.fr> Message-ID: <1334941294546-3926629.post@n3.nabble.com> Samuel, Thanks for responding to my questions on GUI control. I tried using 'uicontrol' but found that I could only add text in a frame alongside my graphics figure -- I could not get 'edit' working. From what I have read in the help documentation, it looks like 'edit' within a graphics figure is not supported. What I ended up doing is use the 'guimaker' function, which creates a new window for every instance of a call. It works, but a new window is created every time even if I try to dock the window (like I have the graphics figure docked) in the Scilab desktop. QUESTION: If there is a way to have 'guimaker' continue to use the same window that would be great -- and allow me to keep it docked in the desktop. I am using a copy of this function so that I can make changes to it. I tried assigning a fixed window 'tag' but it did not help. I ended up turning the 'OK' variable into a global variable so that I could know if the user submitted new values. Here is what I ended up doing with 'guimaker'. Note that the first part of the function prepares my graphics figure for adding a frame, but then I abandoned that idea and used a modified 'guimaker' function -- turns out the only modification is to make the variable 'OK' a global; though I tried many things to get the window to stay docked. function [AAParams]=GUI_Interact(AAParams, ZZout) // Create GUI interface for figure // Alter figure to prepare for edit list window alongside raytrace_pump = scf(100); // Choose correct graphics image // Remove certain graphics menus & toolbar delmenu(raytrace_pump.figure_id, gettext("&?")); toolbar(raytrace_pump.figure_id, "off"); raytrace_pump.background = -2; // Changes background to white raytrace_pump.figure_position = [-1 -1]; // Orphan window control raytrace_pump.figure_name = gettext("YAG Rod Pump Crossection"); // Add new menu item h = uimenu( "parent", raytrace_pump, ... "label" , gettext("TraceRays Figure")); uimenu( "parent" , h, ... "label" , gettext("Close"), ... "callback" , "raytrace_pump=get_figure_handle(100);delete(raytrace_pump);", ... "tag" , "close_menu"); // Make new window for data entry exec ('mod_guimaker.sci'); // Load function until a proper library compile is completed global OK // Added so that this variable is shared with mod_guimaker Values=[]; page=list(); page($+1)=list(list([1 3],'text','')); // Add padding above top of frame page($+1)=list(list([1 11],'frame','Input Parameters')); page($+1)=list(list('text','Lens focal length [mm]'),list('edit',string(AAParams(7)))); page($+1)=list(list('text','Lens distance from slit [mm]'),list('edit',string(AAParams(10)))); page($+1)=list(list('text','Pump beam incident angle [degree]'),list('edit',string(AAParams(12)))); page($+1)=list(list('text','Pump beam divergence [degree]'),list('edit',string(AAParams(14)))); page($+1)=list(list('text','Pump beam profile [1 or 0]'),list('edit',string(AAParams(15)))); page($+1)=list(list('text','Pump beam size [radius, mm]'),list('edit',string(AAParams(16)))); page($+1)=list(list('text','Rod thickness [mm]'),list('edit',string(AAParams(24)))); page($+1)=list(list('text','Width of slit [mm]'),list('edit',string(AAParams(29)))); page($+1)=list(list('text','Total pump power [W]'),list('edit',string(AAParams(35)))); page($+1)=list(list('text','Number of rays to trace [#]'),list('edit',string(AAParams(13)))); page($+1)=list(list([1 2],'text','')); page($+1)=list(list([1 9],'frame','Output Values')); page($+1)=list(list('text','Power back out slit [%]'),list('text',string(ZZout(1)))); page($+1)=list(list('text','Power clipped by slit [%]'),list('text',string(ZZout(2)))); page($+1)=list(list('text','Power absorbed in ellipse [%]'),list('text',string(ZZout(5)))); page($+1)=list(list('text','Power extracted by beam [W]'),list('text',string(ZZout(6)/100*AAParams(35)))); page($+1)=list(list('text','Power absorbed by rod [%]'),list('text',string(ZZout(9)))); page($+1)=list(list('text','Power absorbed first crossing [%]'),list('text',string(ZZout(13)))); page($+1)=list(list('text','Power absorbed second crossing [%]'),list('text',string(ZZout(14)))); page($+1)=list(list('text','Power absorbed third crossing [%]'),list('text',string(ZZout(15)))); page($+1)=list(list([1 2],'text','')); page($+1)=list(list(1),list([3 1],'pushbutton','Submit New Values','callback','OK=%T'),... list(1),list('pushbutton','Exit','callback','CANCEL=%T'),list(1)); [Values]=mod_guimaker(page,list('TraceRays Model Parameters')); // Write new Values into AAParams if OK then AAParams(7)=Values(1); AAParams(10)=Values(2); AAParams(12)=Values(3); AAParams(14)=Values(4); AAParams(15)=Values(5); AAParams(16)=Values(6); AAParams(24)=Values(7); AAParams(29)=Values(8); AAParams(30)=Values(8); // Both are set to same value AAParams(35)=Values(9); AAParams(13)=Values(10); end endfunction -- View this message in context: http://mailinglists.scilab.org/GUI-Creation-use-of-guimaker-or-uicontrol-tp3919097p3926629.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From slalleme at dlaoctet.com Mon Apr 23 15:06:39 2012 From: slalleme at dlaoctet.com (solmyr) Date: Mon, 23 Apr 2012 06:06:39 -0700 (PDT) Subject: Problem with the function Graypolarplot Message-ID: <1335186399199-3932414.post@n3.nabble.com> Hi, I need to build an angular sound cartography. For this, I have a row vector called "theta" for the value of the angle, a row vector called "r" for the value of radius. I also have a matrix of size [theta, r] in which are placed the values of sound level in dB(A). I found the function graypolarplot very good for that but I guess there's a problem of scale of colour... I tried the example of the documentation and it works well. I tried to use this example like base to build my own map but when I put my matrix in place of the original function, the scale of colormap is totally wrong... For example, my scale goes from 59 to 83 dB(A) and the colours displayed are from 60 to 70 dB(A)... I can copy and paste my code for you try it and tell me if you have the same problem. Thanks by advance ! ///Background value of noise (dB(A)) Lbdf=46; //Matrix values in dB(A), each line represents the radius z0=[80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5]; z1=[75.5 74.5 73.1 72.5 73.1 79.6 73.1 74.1 74.6 75.5 75.5 76.3 77.9 79.3 78.3 78.7 75.5]; z2=[72.5 70 71 68.5 68.5 68.6 70 70 70.9 72.4 71.8 71.8 73.3 73 73 73.1 72.5]; z3=[70 67.6 67.3 65.4 65.7 66.1 67.9 67 68 68.5 68.9 70.2 69.8 70.5 70.1 69.9 70]; z4=[67.6 66.5 66.1 64.2 64 67.5 65.3 65.1 67 66.6 66 65.8 66.5 67 67.3 67.4 67.6]; z5=[66.5 64.9 63.9 63.3 61.8 61.5 62.7 63.9 63.7 64.9 64.6 67.8 64.8 65.1 68.1 66.7 66.5]; //Values of discretization theta=(0:%pi/8:2*%pi); //Basic discretization for the angle thetai=(0:%pi/64:2*%pi); //Thin discretization to smooth the map for the angle r=(0:5); //Basic discretization for the radius ri=(0:0.1:5); //Thin discretization to smooth the map for the radius //Smoothing of the matrix, I will simplify this later... d0=splin(theta,z0); z0i=interp(thetai,theta,z0,d0); d1=splin(theta,z1); z1i=interp(thetai,theta,z1,d1); d2=splin(theta,z2); z2i=interp(thetai,theta,z2,d2); d3=splin(theta,z3); z3i=interp(thetai,theta,z3,d3); d4=splin(theta,z4); z4i=interp(thetai,theta,z4,d4); d5=splin(theta,z5); z5i=interp(thetai,theta,z5,d5); Z=[z0i' z1i' z2i' z3i' z4i' z5i']; for i=1:length(Z(:,1)) d(i,:)=splin(r,Z(i,:)); Zi(i,:)=interp(ri,r,Z(i,:),d(i,:)); end //Removing background noise to the smooth noise matrix Lz=floor((20*log10(10^(Zi/20)-10^(Lbdf/20)))*10)/10; //Variables for the mapping zmin=min(Lz); zmax=max(Lz); nz=floor((zmax-zmin)/0.1); //This is for the resolution h=jetcolormap(nz); //Creation of the colormap //Display of the result clf() graypolarplot(thetai,ri,Lz) xset('colormap',h) colorbar(floor(zmin), floor(zmax+1)) title('Angular Noise Cartography','fontsize',3)/ -- View this message in context: http://mailinglists.scilab.org/Problem-with-the-function-Graypolarplot-tp3932414p3932414.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From meni.tima at hotmail.com Mon Apr 23 15:11:28 2012 From: meni.tima at hotmail.com (Tima) Date: Mon, 23 Apr 2012 06:11:28 -0700 (PDT) Subject: Dynamic tracing functions Message-ID: <1335186688268-3932426.post@n3.nabble.com> Hi, Does anybody knows a way to plot different functions dynamically. /For example/, at t=1..10, it appears f1(..) at t=11..20, I indicate another function f2() and it appears f2() at t=21..30, I indicate another function f3() and it appears f3() .... Thanks a lot, Regards, Tima -- View this message in context: http://mailinglists.scilab.org/Dynamic-tracing-functions-tp3932426p3932426.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Mon Apr 23 16:09:26 2012 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Mon, 23 Apr 2012 16:09:26 +0200 Subject: [scilab-Users] Dynamic tracing functions In-Reply-To: <1335186688268-3932426.post@n3.nabble.com> References: <1335186688268-3932426.post@n3.nabble.com> Message-ID: <7324_1335190163_4F956293_7324_6631_1_908CBC9017354841B2F32BBEC70A05A101C3798F0C73@THSONEA01CMS01P.one.grp> Hello, If the variable t is discrete, then you may define the function f123 as a table of values [f1(1:10), f2(11:20), f3(21:30)]. If not, one can use a smooth "step" function like SSF(t)=1/2+1/%pi*atan(t/dt), which, if dt is sufficiently small, will be 0 if t <-dt and 1 if t > +dt. f123(t)=SSF(10 -t)*f1(t)+(SSF(20-t)-SSF(t-30))*f2(t)+SSF(t-30)*f3(t); dt can be used as a "smoothing parameter" at the boundaries. HTH Denis -----Message d'origine----- De?: Tima [mailto:meni.tima at hotmail.com] Envoy??: lundi 23 avril 2012 15:11 ??: users at lists.scilab.org Objet?: [scilab-Users] Dynamic tracing functions Hi, Does anybody knows a way to plot different functions dynamically. /For example/, at t=1..10, it appears f1(..) at t=11..20, I indicate another function f2() and it appears f2() at t=21..30, I indicate another function f3() and it appears f3() .... Thanks a lot, Regards, Tima -- View this message in context: http://mailinglists.scilab.org/Dynamic-tracing-functions-tp3932426p3932426.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -- To unsubscribe from this mailing-list, please send an empty mail to users-unsubscribe at lists.scilab.org To check the archives of this mailing list, see http://mailinglists.scilab.org/ From denis.crete at thalesgroup.com Mon Apr 23 16:13:27 2012 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Mon, 23 Apr 2012 16:13:27 +0200 Subject: [scilab-Users] Dynamic tracing functions In-Reply-To: <7324_1335190163_4F956293_7324_6631_1_908CBC9017354841B2F32BBEC70A05A101C3798F0C73@THSONEA01CMS01P.one.grp> References: <1335186688268-3932426.post@n3.nabble.com> <7324_1335190163_4F956293_7324_6631_1_908CBC9017354841B2F32BBEC70A05A101C3798F0C73@THSONEA01CMS01P.one.grp> Message-ID: <7324_1335190404_4F956384_7324_6892_1_908CBC9017354841B2F32BBEC70A05A101C3798F0CA4@THSONEA01CMS01P.one.grp> Sorry, f123(t)=SSF(10 -t)*f1(t)+SSF(20-t)*SSF(t-10)*f2(t)+SSF(t-30)*f3(t); Denis -----Message d'origine----- De?: CRETE Denis [mailto:denis.crete at thalesgroup.com] Envoy??: lundi 23 avril 2012 16:09 ??: users at lists.scilab.org Objet?: RE: [scilab-Users] Dynamic tracing functions Hello, If the variable t is discrete, then you may define the function f123 as a table of values [f1(1:10), f2(11:20), f3(21:30)]. If not, one can use a smooth "step" function like SSF(t)=1/2+1/%pi*atan(t/dt), which, if dt is sufficiently small, will be 0 if t <-dt and 1 if t > +dt. f123(t)=SSF(10 -t)*f1(t)+(SSF(20-t)-SSF(t-30))*f2(t)+SSF(t-30)*f3(t); dt can be used as a "smoothing parameter" at the boundaries. HTH Denis -----Message d'origine----- De?: Tima [mailto:meni.tima at hotmail.com] Envoy??: lundi 23 avril 2012 15:11 ??: users at lists.scilab.org Objet?: [scilab-Users] Dynamic tracing functions Hi, Does anybody knows a way to plot different functions dynamically. /For example/, at t=1..10, it appears f1(..) at t=11..20, I indicate another function f2() and it appears f2() at t=21..30, I indicate another function f3() and it appears f3() .... Thanks a lot, Regards, Tima -- View this message in context: http://mailinglists.scilab.org/Dynamic-tracing-functions-tp3932426p3932426.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -- To unsubscribe from this mailing-list, please send an empty mail to users-unsubscribe at lists.scilab.org To check the archives of this mailing list, see http://mailinglists.scilab.org/ -- To unsubscribe from this mailing-list, please send an empty mail to users-unsubscribe at lists.scilab.org To check the archives of this mailing list, see http://mailinglists.scilab.org/ From sgougeon at free.fr Mon Apr 23 21:21:56 2012 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 23 Apr 2012 21:21:56 +0200 (CEST) Subject: [scilab-Users] Dynamic tracing functions In-Reply-To: <1335186688268-3932426.post@n3.nabble.com> Message-ID: <613249299.172737180.1335208916795.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, Do you mean that you whish to plot only one curve piecewise? Something like plot(t, [ f1(t(1:10),...) f2(t(11:20),..) f3(t(21:30),..) ]) assuming that fi : R --> R is vectorized with respect to t Hope this helps Samuel Gougeon >----- Mail original ----- >De: "Tima" >?: users at lists.scilab.org >Envoy?: Lundi 23 Avril 2012 15:11:28 >Objet: [scilab-Users] Dynamic tracing functions > >Hi, > >Does anybody knows a way to plot different functions dynamically. >/For example/, > at t=1..10, it appears f1(..) > at t=11..20, I indicate another function f2() and it appears f2() > at t=21..30, I indicate another function f3() and it appears f3() > .... > > Thanks a lot, > Regards, > Tima From richard.shadbolt at btinternet.com Tue Apr 24 01:35:12 2012 From: richard.shadbolt at btinternet.com (shadders) Date: Mon, 23 Apr 2012 16:35:12 -0700 (PDT) Subject: Matlab XCORR - Equivalent SciLab Message-ID: <1335224112098-3933952.post@n3.nabble.com> Hi, I cannot find the equialent function to the Matlab "xcorr" function. (http://www.mathworks.co.uk/help/toolbox/signal/ref/xcorr.html) i have examined correl, corr etc., and the signal processing correlation functions that seem to implement a frequency transform based correlation. Can anyone guide me as to the most efficient implementation of the Matlab xcorr function using SciLab ?. Thanks. Regards, Richard. -- View this message in context: http://mailinglists.scilab.org/Matlab-XCORR-Equivalent-SciLab-tp3933952p3933952.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Tue Apr 24 17:13:18 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 24 Apr 2012 17:13:18 +0200 Subject: [scilab-Users] Matlab XCORR - Equivalent SciLab In-Reply-To: <1335224112098-3933952.post@n3.nabble.com> References: <1335224112098-3933952.post@n3.nabble.com> Message-ID: <4F96C30E.6080307@inria.fr> Please find attached a function that matches the Matlab xcorr function. The Scilab corr function computes the "biased" correlation of x-mean(x) and y-mean(y) and only returns the positive lag number coefficients. The xcorr will be included in next Scilab version. Serge Steer Le 24/04/2012 01:35, shadders a ?crit : > Hi, > > I cannot find the equialent function to the Matlab "xcorr" function. > > (http://www.mathworks.co.uk/help/toolbox/signal/ref/xcorr.html) > > i have examined correl, corr etc., and the signal processing correlation > functions that seem to implement a frequency transform based correlation. > > Can anyone guide me as to the most efficient implementation of the Matlab > xcorr function using SciLab ?. Thanks. > > Regards, > > Richard. > > -- > View this message in context: http://mailinglists.scilab.org/Matlab-XCORR-Equivalent-SciLab-tp3933952p3933952.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > -------------- next part -------------- // This file is part Scilab // Copyright (C) 2012 - INRIA - Serge Steer // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt function [c,lagindex]=xcorr(x,varargin) nv=size(varargin) if nv>0&type(varargin(nv))==10 then validemodes=["biased","unbiased","coeff","none"] scalemode=varargin(nv) if and(scalemode<>validemodes) then error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),... "xcorr",nv+1,strcat(""""+validemodes+"""",","))) end nv=nv-1; else scalemode="none" end //test de validit? de x szx=size(x) if type(x)<>1|and(szx>1) then error(msprintf(_("%s: Wrong type for input argument #%d: Real or complex vector expected.\n"),... "xcorr",1)) end autocorr=%t maxlags=[] if nv==1 then if size(varargin(1),'*')==1 then //xcorr(x,maxlags) autocorr=%t maxlags=int(varargin(1)) if type( maxlags)<>1|size(maxlags,'*')>1|~isreal(maxlags)|maxlags<>int(maxlags) then error(msprintf(_("%s: Wrong type for argument %d: an integer expected.\n"),... "xcorr",2)) end if maxlags<1 then error(msprintf(_("%s: Wrong value for argument %d: the expected value must be greater than %s.\n"),... "xcorr",2,1)) end else //xcorr(x,y) autocorr=%f y=varargin(1) if type(y)<>1|and(size(y)>1) then error(msprintf(_("%s: Wrong type for input argument #%d: Real or complex vector expected.\n"),... "xcorr",2)) end maxlags=[] end elseif nv==2 then //xcorr(x,y,maxlag) autocorr=%f y=varargin(1) if type(y)<>1|and(size(y)>1) then error(msprintf(_("%s: Wrong type for input argument #%d: Real or complex vector expected.\n"),... "xcorr",2)) end maxlags=int(varargin(2)) if type( maxlags)<>1|size(maxlags,'*')>1|~isreal(maxlags)|maxlags<>int(maxlags) then error(msprintf(_("%s: Wrong type for argument %d: an integer expected.\n"),... "xcorr",2)) end if maxlags<1 then error(msprintf(_("%s: Wrong value for argument %d: the expected value must be greater than %s.\n"),... "xcorr",2,1)) end end if autocorr then //auto correlation x=matrix(x,-1,1);n=size(x,'*') if maxlags==[] then maxlags=n,end npad=2^nextpow2(2*n-1) x(npad)=0; t=fft(x); c=ifft(real(t.*conj(t))) if isreal(x) then c=real(c);end else //cross correlation x=matrix(x,-1,1);nx=size(x,1) xx=sum(abs(x)^2) y=matrix(y,-1,1);ny=size(y,1) yy=sum(abs(y)^2) if nx References: <1335186399199-3932414.post@n3.nabble.com> Message-ID: <4F970243.4080700@laas.fr> Le 23/04/12 15:06, solmyr a ?crit : > Hi, > > I need to build an angular sound cartography. For this, I have a row vector > called "theta" for the value of the angle, a row vector called "r" for the > value of radius. I also have a matrix of size [theta, r] in which are placed > the values of sound level in dB(A). I found the function graypolarplot very > good for that but I guess there's a problem of scale of colour... > I tried the example of the documentation and it works well. I tried to use > this example like base to build my own map but when I put my matrix in place > of the original function, the scale of colormap is totally wrong... > For example, my scale goes from 59 to 83 dB(A) and the colours displayed are > from 60 to 70 dB(A)... > I can copy and paste my code for you try it and tell me if you have the same > problem. > Thanks by advance ! > > > ///Background value of noise (dB(A)) > Lbdf=46; > > //Matrix values in dB(A), each line represents the radius > z0=[80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 > 80.5 80.5 80.5]; > z1=[75.5 74.5 73.1 72.5 73.1 79.6 73.1 74.1 74.6 75.5 75.5 76.3 77.9 79.3 > 78.3 78.7 75.5]; > z2=[72.5 70 71 68.5 68.5 68.6 70 70 70.9 72.4 71.8 71.8 73.3 73 73 73.1 > 72.5]; > z3=[70 67.6 67.3 65.4 65.7 66.1 67.9 67 68 68.5 68.9 70.2 69.8 70.5 70.1 > 69.9 70]; > z4=[67.6 66.5 66.1 64.2 64 67.5 65.3 65.1 67 66.6 66 65.8 66.5 67 67.3 67.4 > 67.6]; > z5=[66.5 64.9 63.9 63.3 61.8 61.5 62.7 63.9 63.7 64.9 64.6 67.8 64.8 65.1 > 68.1 66.7 66.5]; > > //Values of discretization > theta=(0:%pi/8:2*%pi); //Basic discretization for the angle > thetai=(0:%pi/64:2*%pi); //Thin discretization to smooth the map for the > angle > r=(0:5); //Basic discretization for the radius > ri=(0:0.1:5); //Thin discretization to smooth the map for the radius > > //Smoothing of the matrix, I will simplify this later... > > d0=splin(theta,z0); > z0i=interp(thetai,theta,z0,d0); > > d1=splin(theta,z1); > z1i=interp(thetai,theta,z1,d1); > > d2=splin(theta,z2); > z2i=interp(thetai,theta,z2,d2); > > d3=splin(theta,z3); > z3i=interp(thetai,theta,z3,d3); > > d4=splin(theta,z4); > z4i=interp(thetai,theta,z4,d4); > > d5=splin(theta,z5); > z5i=interp(thetai,theta,z5,d5); > > Z=[z0i' z1i' z2i' z3i' z4i' z5i']; > > for i=1:length(Z(:,1)) > d(i,:)=splin(r,Z(i,:)); > Zi(i,:)=interp(ri,r,Z(i,:),d(i,:)); > end > > //Removing background noise to the smooth noise matrix > > Lz=floor((20*log10(10^(Zi/20)-10^(Lbdf/20)))*10)/10; > > //Variables for the mapping > > zmin=min(Lz); > zmax=max(Lz); > nz=floor((zmax-zmin)/0.1); //This is for the resolution > > h=jetcolormap(nz); //Creation of the colormap > > //Display of the result > > clf() > graypolarplot(thetai,ri,Lz) > xset('colormap',h) > colorbar(floor(zmin), floor(zmax+1)) > title('Angular Noise Cartography','fontsize',3)/ > > -- > View this message in context: http://mailinglists.scilab.org/Problem-with-the-function-Graypolarplot-tp3932414p3932414.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. Hi, I just had a look at your code. It seems that there is something weird with graypolarplot. If you replace : graypolarplot(thetai,ri,Lz) by grayplot(thetai,ri,Lz) you have a normal grayplot and the color scale is fine. I hope it helps. Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Apr 24 22:42:31 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 24 Apr 2012 22:42:31 +0200 Subject: [scilab-Users] Problem with the function Graypolarplot In-Reply-To: <1335186399199-3932414.post@n3.nabble.com> References: <1335186399199-3932414.post@n3.nabble.com> Message-ID: <4F971037.6030402@laas.fr> Le 23/04/12 15:06, solmyr a ?crit : > Hi, > > I need to build an angular sound cartography. For this, I have a row vector > called "theta" for the value of the angle, a row vector called "r" for the > value of radius. I also have a matrix of size [theta, r] in which are placed > the values of sound level in dB(A). I found the function graypolarplot very > good for that but I guess there's a problem of scale of colour... > I tried the example of the documentation and it works well. I tried to use > this example like base to build my own map but when I put my matrix in place > of the original function, the scale of colormap is totally wrong... > For example, my scale goes from 59 to 83 dB(A) and the colours displayed are > from 60 to 70 dB(A)... > I can copy and paste my code for you try it and tell me if you have the same > problem. > Thanks by advance ! > > > ///Background value of noise (dB(A)) > Lbdf=46; > > //Matrix values in dB(A), each line represents the radius > z0=[80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 80.5 > 80.5 80.5 80.5]; > z1=[75.5 74.5 73.1 72.5 73.1 79.6 73.1 74.1 74.6 75.5 75.5 76.3 77.9 79.3 > 78.3 78.7 75.5]; > z2=[72.5 70 71 68.5 68.5 68.6 70 70 70.9 72.4 71.8 71.8 73.3 73 73 73.1 > 72.5]; > z3=[70 67.6 67.3 65.4 65.7 66.1 67.9 67 68 68.5 68.9 70.2 69.8 70.5 70.1 > 69.9 70]; > z4=[67.6 66.5 66.1 64.2 64 67.5 65.3 65.1 67 66.6 66 65.8 66.5 67 67.3 67.4 > 67.6]; > z5=[66.5 64.9 63.9 63.3 61.8 61.5 62.7 63.9 63.7 64.9 64.6 67.8 64.8 65.1 > 68.1 66.7 66.5]; > > //Values of discretization > theta=(0:%pi/8:2*%pi); //Basic discretization for the angle > thetai=(0:%pi/64:2*%pi); //Thin discretization to smooth the map for the > angle > r=(0:5); //Basic discretization for the radius > ri=(0:0.1:5); //Thin discretization to smooth the map for the radius > > //Smoothing of the matrix, I will simplify this later... > > d0=splin(theta,z0); > z0i=interp(thetai,theta,z0,d0); > > d1=splin(theta,z1); > z1i=interp(thetai,theta,z1,d1); > > d2=splin(theta,z2); > z2i=interp(thetai,theta,z2,d2); > > d3=splin(theta,z3); > z3i=interp(thetai,theta,z3,d3); > > d4=splin(theta,z4); > z4i=interp(thetai,theta,z4,d4); > > d5=splin(theta,z5); > z5i=interp(thetai,theta,z5,d5); > > Z=[z0i' z1i' z2i' z3i' z4i' z5i']; > > for i=1:length(Z(:,1)) > d(i,:)=splin(r,Z(i,:)); > Zi(i,:)=interp(ri,r,Z(i,:),d(i,:)); > end > > //Removing background noise to the smooth noise matrix > > Lz=floor((20*log10(10^(Zi/20)-10^(Lbdf/20)))*10)/10; > > //Variables for the mapping > > zmin=min(Lz); > zmax=max(Lz); > nz=floor((zmax-zmin)/0.1); //This is for the resolution > > h=jetcolormap(nz); //Creation of the colormap > > //Display of the result > > clf() > graypolarplot(thetai,ri,Lz) > xset('colormap',h) > colorbar(floor(zmin), floor(zmax+1)) > title('Angular Noise Cartography','fontsize',3)/ > > -- > View this message in context: http://mailinglists.scilab.org/Problem-with-the-function-Graypolarplot-tp3932414p3932414.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. Got it! It's a bug in the function graypolarplot (I think!). Just add this at the end of your script: h=gcf(); h.children(2).children.children(35).cdata_mapping="scaled"; and you'll get fancy colors! The problem is that the way data is mapped (ie translated into color) is not "scaled" but "direct" whereas it's "scaled" in the colorbar. Antoine From richard.shadbolt at btinternet.com Tue Apr 24 22:56:59 2012 From: richard.shadbolt at btinternet.com (shadders) Date: Tue, 24 Apr 2012 13:56:59 -0700 (PDT) Subject: Matlab XCORR - Equivalent SciLab In-Reply-To: <4F96C30E.6080307@inria.fr> References: <1335224112098-3933952.post@n3.nabble.com> <4F96C30E.6080307@inria.fr> Message-ID: <1335301019115-3936598.post@n3.nabble.com> Hi Serge, Thanks - i see you have created a sci file that is effectively a short programming sequence - i was unsure if there was a short cut to implementing the xcorr function - being new to scilab - some functions i am not fully conversant with - thanks for this - much appreciated. Regards, Richard. -- View this message in context: http://mailinglists.scilab.org/Matlab-XCORR-Equivalent-SciLab-tp3933952p3936598.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From slalleme at dlaoctet.com Wed Apr 25 08:18:08 2012 From: slalleme at dlaoctet.com (solmyr) Date: Tue, 24 Apr 2012 23:18:08 -0700 (PDT) Subject: Problem with the function Graypolarplot In-Reply-To: <4F971037.6030402@laas.fr> References: <1335186399199-3932414.post@n3.nabble.com> <4F971037.6030402@laas.fr> Message-ID: <1335334688981-3937438.post@n3.nabble.com> It works ! Thank you a lot Antoine ! -- View this message in context: http://mailinglists.scilab.org/Problem-with-the-function-Graypolarplot-tp3932414p3937438.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Thu Apr 26 08:16:31 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 26 Apr 2012 08:16:31 +0200 Subject: [scilab-Users] Re: Problem with the function Graypolarplot In-Reply-To: <1335334688981-3937438.post@n3.nabble.com> References: <1335186399199-3932414.post@n3.nabble.com> <4F971037.6030402@laas.fr> <1335334688981-3937438.post@n3.nabble.com> Message-ID: <4F98E83F.3080108@laas.fr> Le 25/04/12 08:18, solmyr a ?crit : > It works ! Thank you a lot Antoine ! Do you mind if I use your script and data to fill in a bug report to get this problem solved? Cheers, Antoine > > -- > View this message in context: http://mailinglists.scilab.org/Problem-with-the-function-Graypolarplot-tp3932414p3937438.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From slalleme at dlaoctet.com Thu Apr 26 09:44:54 2012 From: slalleme at dlaoctet.com (solmyr) Date: Thu, 26 Apr 2012 00:44:54 -0700 (PDT) Subject: Problem with the function Graypolarplot In-Reply-To: <4F98E83F.3080108@laas.fr> References: <1335186399199-3932414.post@n3.nabble.com> <4F971037.6030402@laas.fr> <1335334688981-3937438.post@n3.nabble.com> <4F98E83F.3080108@laas.fr> Message-ID: <1335426294001-3940507.post@n3.nabble.com> No problem Antoine, you can ;). Good day ! -- View this message in context: http://mailinglists.scilab.org/Problem-with-the-function-Graypolarplot-tp3932414p3940507.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ludo.wag at laposte.net Thu Apr 26 11:50:27 2012 From: ludo.wag at laposte.net (Orbeman) Date: Thu, 26 Apr 2012 02:50:27 -0700 (PDT) Subject: How to install xls_link in Scilab 5.3.3 (64 bits) Message-ID: <1335433827287-3940764.post@n3.nabble.com> Hi, I have some trouble to install xls_link in Scilab 5.3.3 with Windows Seven. It does not appear in the ATOMS list. Nevertheless, I have an another computer with also Scilab 5.3.3 but with Windows XP. With this other computer it works good (the ATOMS list is also more large). I've never succed to install any module without the ATOMS interface. That I've undertood is I need also install Visual Studio but I'm not sure. I have copy the folder of Scilab in XP to Seven, it works but is not very tidy. Does anyone explain to me the correct procedure to install this module or another. Thanks. Sorry, for my bad english, it's not my native language. -- View this message in context: http://mailinglists.scilab.org/How-to-install-xls-link-in-Scilab-5-3-3-64-bits-tp3940764p3940764.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Thu Apr 26 14:02:14 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 26 Apr 2012 14:02:14 +0200 Subject: equivalent of intg on a "discrete interval" (cumsum-like behaviour) Message-ID: <4F993946.4050108@centre-cired.fr> Hi Scilab has a proceudre that integrates any given real function or external: [v]=intg(a,b,f) I have a function f and would like to calculate the integral for a set of values , say in A:B Does anyone know if there is something more efficient than a loop on b to do? Currently I do this: segment = A:B; for i=1:size(segment,"*") [v(i)]=intg(A,segment(i),f) end It's a shame, because I guess that that there should be a way to optimize what intg does in this case -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 *73 77* -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Apr 26 14:27:19 2012 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Thu, 26 Apr 2012 14:27:19 +0200 Subject: [scilab-Users] equivalent of intg on a "discrete interval" (cumsum-like behaviour) In-Reply-To: <4F993946.4050108@centre-cired.fr> References: <4F993946.4050108@centre-cired.fr> Message-ID: <145A7E3C-6AA0-43D6-8D1D-2BBF04CFDA7D@utc.fr> Hello, I suggest sorti c Le 26 avr. 2012 ? 14:02, Adrien Vogt-Schilb a ?crit : > Hi > > Scilab has a proceudre that integrates any given real function or external: > > [v]=intg(a,b,f) > > I have a function f and would like to calculate the integral for a set of values , say in A:B > > Does anyone know if there is something more efficient than a loop on b to do? Currently I do this: > > segment = A:B; > > for i=1:size(segment,"*") > [v(i)]=intg(A,segment(i),f) > end > > It's a shame, because I guess that that there should be a way to optimize what intg does in this case > > > -- > Adrien Vogt-Schilb (Cired) > Tel: (+33) 1 43 94 73 77 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Apr 26 14:33:10 2012 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Thu, 26 Apr 2012 14:33:10 +0200 Subject: [scilab-Users] equivalent of intg on a "discrete interval" (cumsum-like behaviour) In-Reply-To: <4F993946.4050108@centre-cired.fr> References: <4F993946.4050108@centre-cired.fr> Message-ID: (sorry for the incomplete message) I suggest sorting all the bounds ti and then solve the ode y'=f, then compute the integrals by substracting y(tj)-y(ti), where A=tj, B=tj. See ? S. Le 26 avr. 2012 ? 14:02, Adrien Vogt-Schilb a ?crit : > Hi > > Scilab has a proceudre that integrates any given real function or external: > > [v]=intg(a,b,f) > > I have a function f and would like to calculate the integral for a set of values , say in A:B > > Does anyone know if there is something more efficient than a loop on b to do? Currently I do this: > > segment = A:B; > > for i=1:size(segment,"*") > [v(i)]=intg(A,segment(i),f) > end > > It's a shame, because I guess that that there should be a way to optimize what intg does in this case > > > -- > Adrien Vogt-Schilb (Cired) > Tel: (+33) 1 43 94 73 77 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Thu Apr 26 14:36:35 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 26 Apr 2012 14:36:35 +0200 Subject: [scilab-Users] equivalent of intg on a "discrete interval" (cumsum-like behaviour) In-Reply-To: References: <4F993946.4050108@centre-cired.fr> Message-ID: <4F994153.80301@centre-cired.fr> Good answer, thanks! For the record: instead of calculating F = intg (a,b,f), i should solve F' = f on a..b with the scilab macro ode On 26/04/2012 14:33, St?phane Mottelet wrote: > (sorry for the incomplete message) > > I suggest sorting all the bounds ti and then solve the ode y'=f, then > compute the integrals by substracting y(tj)-y(ti), where A=tj, B=tj. > See ? > > S. > > Le 26 avr. 2012 ? 14:02, Adrien Vogt-Schilb > a ?crit : > >> Hi >> >> Scilab has a proceudre that integrates any given real function or >> external: >> >> >> [v]=intg(a,b,f) >> >> I have a function f and would like to calculate the integral for a >> set of values , say in A:B >> >> Does anyone know if there is something more efficient than a loop on >> b to do? Currently I do this: >> >> segment = A:B; >> >> for i=1:size(segment,"*") >> [v(i)]=intg(A,segment(i),f) >> end >> >> It's a shame, because I guess that that there should be a way to >> optimize what intg does in this case >> >> >> -- >> Adrien Vogt-Schilb (Cired) >> Tel: (+33) 1 43 94 *73 77* -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Thu Apr 26 18:28:14 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 26 Apr 2012 18:28:14 +0200 Subject: [scilab-Users] equivalent of intg on a "discrete interval" (cumsum-like behaviour) In-Reply-To: <4F993946.4050108@centre-cired.fr> References: <4F993946.4050108@centre-cired.fr> Message-ID: <4F99779E.70007@inria.fr> Le 26/04/2012 14:02, Adrien Vogt-Schilb a ?crit : > Hi > > Scilab has a proceudre that integrates any given real function or > external: > > > [v]=intg(a,b,f) > > I have a function f and would like to calculate the integral for a set > of values , say in A:B > > Does anyone know if there is something more efficient than a loop on b > to do? Currently I do this: > > segment = A:B; > > for i=1:size(segment,"*") > [v(i)]=intg(A,segment(i),f) > end > > It's a shame, because I guess that that there should be a way to > optimize what intg does in this case > > > -- > Adrien Vogt-Schilb (Cired) > Tel: (+33) 1 43 94 *73 77* The following code should be more efficient for i=2:size(segment,"*") v(i)=intg(segment(i-1),segment(i),f) end v=cumsum(v) Serge Steer -------------- next part -------------- An HTML attachment was scrubbed... URL: From dkajah at gmail.com Fri Apr 27 01:58:28 2012 From: dkajah at gmail.com (Daniel Penalva) Date: Thu, 26 Apr 2012 16:58:28 -0700 Subject: Scilab Graphic Branch getenv() function Message-ID: Hi pals, Iam having problem to use getenv("ENV_VAR") with environment variables that i defined in bash by exporting and editing bash startup files like .bashrc and /etc/bash.bashrc. The getenv cant find my vars, but it can find PATH, HOME and maybe other main vars. Do you know what is going on ? Thanks in advance !! -- Daniel Penalva State related activity, currently: Phd - Physics in Institute for Theoretical Physics - http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php Transparency portal: http://hera.ethymos.com.br:1080/paainel/casca/ *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* FLOSS and related ideas enthusiastic -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Fri Apr 27 08:57:05 2012 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 27 Apr 2012 08:57:05 +0200 Subject: [scilab-Users] Scilab Graphic Branch getenv() function In-Reply-To: References: Message-ID: <4F9A4341.5030402@limsi.fr> Hello, I can tell you it works at home from a shell: mathieu at fromzewood:~$ echo $ADA_INCLUDE_PATH /home/mathieu/adainclude mathieu at fromzewood:~$ scilab -nwni [...] --> getenv("ADA_INCLUDE_PATH") ans = /home/mathieu/adainclude If you launch scilab from your desktop (not from a shell) I think you have to edit ~/.xessionrc (this file is executed when you login from X-window) logout and re-login. As an example here is my .xsessionrc: mathieu at fromzewood:~$ more .xsessionrc export ADA_INCLUDE_PATH=~/adainclude export ADA_OBJECTS_PATH=~/adalib HTH, Mathieu (@fromzewood) Le 27/04/2012 01:58, Daniel Penalva a ?crit : > Hi pals, > > Iam having problem to use getenv("ENV_VAR") with environment variables > that i defined in bash by exporting and editing bash startup files like > .bashrc and /etc/bash.bashrc. The getenv cant find my vars, but it can > find PATH, HOME and maybe other main vars. > Do you know what is going on ? > > Thanks in advance !! > > -- > Daniel Penalva > > State related activity, currently: > Phd - Physics in Institute for Theoretical Physics - > http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php > Transparency portal: http://hera.ethymos.com.br:1080/paainel/casca/ > *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* > > FLOSS and related ideas enthusiastic From dkajah at gmail.com Fri Apr 27 20:55:37 2012 From: dkajah at gmail.com (Daniel Penalva) Date: Fri, 27 Apr 2012 11:55:37 -0700 Subject: [scilab-Users] Scilab Graphic Branch getenv() function In-Reply-To: <4F9A4341.5030402@limsi.fr> References: <4F9A4341.5030402@limsi.fr> Message-ID: no, iam lauching from terminal at home: humannoise at humannoise-laptop:~$ sudo scilab -nwni [sudo] password for humannoise: ___________________________________________ scilab-branch-graphic ... -->getenv('SCIDATSSAMPL') !--error 999 getenv: Undefined environment variable SCIDATSSAMPL. -->getenv('HOME') ans = /home/humannoise ... humannoise at humannoise-laptop:~$ echo $SCIDATSSAMPL /home/humannoise/Desktop/UOne/academic/sampledata but thank you anyway. Anyone ? or maybe it is a bug and i must file it in bugzilla ? On Thu, Apr 26, 2012 at 11:57 PM, Mathieu Dubois wrote: > Hello, > > I can tell you it works at home from a shell: > mathieu at fromzewood:~$ echo $ADA_INCLUDE_PATH > /home/mathieu/adainclude > mathieu at fromzewood:~$ scilab -nwni > [...] > --> getenv("ADA_INCLUDE_PATH") > ans = > > /home/mathieu/adainclude > > If you launch scilab from your desktop (not from a shell) I think you have > to edit ~/.xessionrc (this file is executed when you login from X-window) > logout and re-login. > > As an example here is my .xsessionrc: > mathieu at fromzewood:~$ more .xsessionrc > export ADA_INCLUDE_PATH=~/adainclude > export ADA_OBJECTS_PATH=~/adalib > > HTH, > Mathieu (@fromzewood) > > Le 27/04/2012 01:58, Daniel Penalva a ?crit : > > Hi pals, >> >> Iam having problem to use getenv("ENV_VAR") with environment variables >> that i defined in bash by exporting and editing bash startup files like >> .bashrc and /etc/bash.bashrc. The getenv cant find my vars, but it can >> find PATH, HOME and maybe other main vars. >> Do you know what is going on ? >> >> Thanks in advance !! >> >> -- >> Daniel Penalva >> >> State related activity, currently: >> Phd - Physics in Institute for Theoretical Physics - >> http://www.ift.unesp.br/**posgrad/ramais-alunos-pos.php >> Transparency portal: http://hera.ethymos.com.br:**1080/paainel/casca/ >> *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* >> >> FLOSS and related ideas enthusiastic >> > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.**scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.**org/ > > -- Daniel Penalva State related activity, currently: Phd - Physics in Institute for Theoretical Physics - http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php Transparency portal: http://hera.ethymos.com.br:1080/paainel/casca/ *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* FLOSS and related ideas enthusiastic -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Fri Apr 27 22:11:34 2012 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 27 Apr 2012 22:11:34 +0200 Subject: [scilab-Users] Scilab Graphic Branch getenv() function In-Reply-To: References: <4F9A4341.5030402@limsi.fr> Message-ID: <4F9AFD76.8050000@limsi.fr> Why are you using sudo? This causes the error (I think that sudo starts a new shell so reads root's bashrc or something like that). If you really need sudo, use the -E option which preserves environement. Le 27/04/2012 20:55, Daniel Penalva a ?crit : > no, iam lauching from terminal at home: > > humannoise at humannoise-laptop:~$ sudo scilab -nwni > [sudo] password for humannoise: > ___________________________________________ > scilab-branch-graphic > ... > > -->getenv('SCIDATSSAMPL') > !--error 999 > getenv: Undefined environment variable SCIDATSSAMPL. > > > -->getenv('HOME') > ans = > > /home/humannoise > ... > > humannoise at humannoise-laptop:~$ echo $SCIDATSSAMPL > /home/humannoise/Desktop/UOne/academic/sampledata > > > but thank you anyway. Anyone ? or maybe it is a bug and i must file it > in bugzilla ? > > On Thu, Apr 26, 2012 at 11:57 PM, Mathieu Dubois > > wrote: > > Hello, > > I can tell you it works at home from a shell: > mathieu at fromzewood:~$ echo $ADA_INCLUDE_PATH > /home/mathieu/adainclude > mathieu at fromzewood:~$ scilab -nwni > [...] > --> getenv("ADA_INCLUDE_PATH") > ans = > > /home/mathieu/adainclude > > If you launch scilab from your desktop (not from a shell) I think > you have to edit ~/.xessionrc (this file is executed when you login > from X-window) logout and re-login. > > As an example here is my .xsessionrc: > mathieu at fromzewood:~$ more .xsessionrc > export ADA_INCLUDE_PATH=~/adainclude > export ADA_OBJECTS_PATH=~/adalib > > HTH, > Mathieu (@fromzewood) > > Le 27/04/2012 01:58, Daniel Penalva a ?crit : > > Hi pals, > > Iam having problem to use getenv("ENV_VAR") with environment > variables > that i defined in bash by exporting and editing bash startup > files like > .bashrc and /etc/bash.bashrc. The getenv cant find my vars, but > it can > find PATH, HOME and maybe other main vars. > Do you know what is going on ? > > Thanks in advance !! > > -- > Daniel Penalva > > State related activity, currently: > Phd - Physics in Institute for Theoretical Physics - > http://www.ift.unesp.br/__posgrad/ramais-alunos-pos.php > > Transparency portal: > http://hera.ethymos.com.br:__1080/paainel/casca/ > > *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* > > FLOSS and related ideas enthusiastic > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.__scilab.org > > To check the archives of this mailing list, see > http://mailinglists.scilab.__org/ > > > > > -- > Daniel Penalva > > State related activity, currently: > Phd - Physics in Institute for Theoretical Physics - > http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php > Transparency portal: http://hera.ethymos.com.br:1080/paainel/casca/ > *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* > > FLOSS and related ideas enthusiastic From dkajah at gmail.com Fri Apr 27 22:28:03 2012 From: dkajah at gmail.com (Daniel Penalva) Date: Fri, 27 Apr 2012 13:28:03 -0700 Subject: [scilab-Users] Scilab Graphic Branch getenv() function In-Reply-To: <4F9AFD76.8050000@limsi.fr> References: <4F9A4341.5030402@limsi.fr> <4F9AFD76.8050000@limsi.fr> Message-ID: u got the point, thank you just a very bad habit of sudoing things On Fri, Apr 27, 2012 at 1:11 PM, Mathieu Dubois wrote: > Why are you using sudo? > > This causes the error (I think that sudo starts a new shell so reads > root's bashrc or something like that). > > If you really need sudo, use the -E option which preserves environement. > > Le 27/04/2012 20:55, Daniel Penalva a ?crit : > >> no, iam lauching from terminal at home: >> >> humannoise at humannoise-laptop:~**$ sudo scilab -nwni >> [sudo] password for humannoise: >> ______________________________**_____________ >> scilab-branch-graphic >> ... >> >> -->getenv('SCIDATSSAMPL') >> !--error 999 >> getenv: Undefined environment variable SCIDATSSAMPL. >> >> >> -->getenv('HOME') >> ans = >> >> /home/humannoise >> ... >> >> humannoise at humannoise-laptop:~**$ echo $SCIDATSSAMPL >> /home/humannoise/Desktop/UOne/**academic/sampledata >> >> >> but thank you anyway. Anyone ? or maybe it is a bug and i must file it >> in bugzilla ? >> >> On Thu, Apr 26, 2012 at 11:57 PM, Mathieu Dubois >> >> >> wrote: >> >> Hello, >> >> I can tell you it works at home from a shell: >> mathieu at fromzewood:~$ echo $ADA_INCLUDE_PATH >> /home/mathieu/adainclude >> mathieu at fromzewood:~$ scilab -nwni >> [...] >> --> getenv("ADA_INCLUDE_PATH") >> ans = >> >> /home/mathieu/adainclude >> >> If you launch scilab from your desktop (not from a shell) I think >> you have to edit ~/.xessionrc (this file is executed when you login >> from X-window) logout and re-login. >> >> As an example here is my .xsessionrc: >> mathieu at fromzewood:~$ more .xsessionrc >> export ADA_INCLUDE_PATH=~/adainclude >> export ADA_OBJECTS_PATH=~/adalib >> >> HTH, >> Mathieu (@fromzewood) >> >> Le 27/04/2012 01:58, Daniel Penalva a ?crit : >> >> Hi pals, >> >> Iam having problem to use getenv("ENV_VAR") with environment >> variables >> that i defined in bash by exporting and editing bash startup >> files like >> .bashrc and /etc/bash.bashrc. The getenv cant find my vars, but >> it can >> find PATH, HOME and maybe other main vars. >> Do you know what is going on ? >> >> Thanks in advance !! >> >> -- >> Daniel Penalva >> >> State related activity, currently: >> Phd - Physics in Institute for Theoretical Physics - >> http://www.ift.unesp.br/__**posgrad/ramais-alunos-pos.php >> >> > >> Transparency portal: >> http://hera.ethymos.com.br:__**1080/paainel/casca/ >> >> >> > >> *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* >> >> FLOSS and related ideas enthusiastic >> >> >> -- >> To unsubscribe from this mailing-list, please send an empty mail to >> users-unsubscribe at lists.__scil**ab.org >> >> > >> >> To check the archives of this mailing list, see >> http://mailinglists.scilab.__**org/ >> > >> >> >> >> >> >> -- >> Daniel Penalva >> >> State related activity, currently: >> Phd - Physics in Institute for Theoretical Physics - >> http://www.ift.unesp.br/**posgrad/ramais-alunos-pos.php >> Transparency portal: http://hera.ethymos.com.br:**1080/paainel/casca/ >> *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* >> >> FLOSS and related ideas enthusiastic >> > > -- > To unsubscribe from this mailing-list, please send an empty mail to > users-unsubscribe at lists.**scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.**org/ > > -- Daniel Penalva State related activity, currently: Phd - Physics in Institute for Theoretical Physics - http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php Transparency portal: http://hera.ethymos.com.br:1080/paainel/casca/ *look for bolitutti user in Log AA/usu?rio pAAnel for my workflow* FLOSS and related ideas enthusiastic -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Sat Apr 28 21:08:44 2012 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 28 Apr 2012 21:08:44 +0200 Subject: [ANN] Scipad-8.70 Message-ID: <4F9C403C.20101@free.fr> ANNOUNCE: Scipad version 8.70 ============================= A new version of the Scipad text editor for Scilab and Scicoslab is available. CHANGES SINCE PREVIOUS VERSION ============================== NEW: * Hide/show Modelica annotations can now be selected in the options menu since I fixed Tk bug 3021557 concerning text elision * tkdnd is now distributed with Scipad (win32 only) FIXED BUGS: * Fixed bug with block selection: the starting place was difficult to set properly when in word wrap mode * Fixed non working incremental search with special characters, e.g. "ini * Bug fixed and better efficiency in showing the green/yellow modified lines tags, since I fixed Tk bugs 3288113 and 3288121 about marks in the text widget WHAT IS SCIPAD ? ================ Scipad is a powerful editor and graphical debugger for programs written in Scilab language. It is a mature and highly configurable programmer's editor, including features like syntax colorization, regexp search/replace, parentheses matching, logical/physical line numbering, peer windows, line and block text editing, and much more. Scipad can be used along with Scicoslab or Scilab, but even as a standalone text editor. Used as internal Sci(cos)lab editor, it interacts tightly with the interpreter, allowing: - Scilab code execution control - conditional breakpointing - variable retrieval and tooltip display - Scilab help lookup - access to source code of Scilab library function - control of Scilab facilities for Matlab code and creation of help documents - and much more Scipad also includes basic Modelica and XML syntax colorization; it is currently localized in 13 languages and further localizations can easily be added. Scipad is entirely written in Tcl/Tk and Scilab language. It has been tested and developed under various versions of Windows and Linux. WHERE CAN SCIPAD BE FOUND? ========================== Project page @ SourceForge.net: http://sourceforge.net/p/scipad/ Direct download: - for Scilab: http://sourceforge.net/projects/scipad/files/scipad-8.70/scipad-8.70-Scilab5.zip/download - for Scicoslab: http://sourceforge.net/projects/scipad/files/scipad-8.70/scipad-8.70-Scicoslab.zip/download Installation instructions: http://sourceforge.net/p/scipad/wiki/Installation/ Details regarding the tested platforms: http://sourceforge.net/p/scipad/wiki/Tested%20on/ LICENSE ======= Scipad is a free software distributed under the terms of the GPL (V2) license. From kurt at hamcom.dk Sun Apr 29 01:34:39 2012 From: kurt at hamcom.dk (OZ7OU) Date: Sat, 28 Apr 2012 16:34:39 -0700 (PDT) Subject: Probem with MicroWave ToolBox Message-ID: <1335656079216-3947457.post@n3.nabble.com> I am new to SciLab but still think I am doing the right things :) I have installed version windows version 5.3.3. and the Microwave Toolbox version 0.41-2 installed via ATOM. I get an error when isng the function uW_S2P_read saying that there is an undefineable variable uW_dB2lin at line 39. If I use uW_S1P_read it happens at line 37 I have found version 0.41-1 but that does have the same problem Anybody having a clue Kine regards kurt Poulsen -- View this message in context: http://mailinglists.scilab.org/Probem-with-MicroWave-ToolBox-tp3947457.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From kevinm at aavatech.com Mon Apr 30 16:48:34 2012 From: kevinm at aavatech.com (Kevin McCoy) Date: Mon, 30 Apr 2012 07:48:34 -0700 (PDT) Subject: Strange poly() results Message-ID: <1335797314324-3950900.post@n3.nabble.com> When I run the following: clean(coeff(poly(roots(poly([1 1 1],"x","c")),"x","r"))) I get ... ans = 1. + 0.4330127i 1. 1. But I'm expecting ... ans = 1. 1. 1. The documentation says that roots() and poly() are inverse functions, that is, if I construct a polynomial (using poly(pr,"x","r"), where pr are the roots of a polynomial), then I should get back that original polynomial. Here are some other outputs: clean(coeff(poly(roots(poly([1 1],"x","c")),"x","r"))) --> 1. 1. [correct] clean(coeff(poly(roots(poly([1 0 1],"x","c")),"x","r"))) --> 1. 0. 1. [correct] clean(coeff(poly(roots(poly([1 0 0 1],"x","c")),"x","r"))) --> 0.625 + 0.2165064i 0.4330127i 0 1. [incorrect] clean(coeff(poly(roots(poly([2 1 1],"x","c")),"x","r"))) --> 2. + 0.6614378i 1. 1. [incorrect] However, if I change the code to only use the real part of poly() I get my expected results: clean(coeff(real(poly(roots(poly([1 1 1],"x","c")),"x","r")))) --> 1. 1. 1. [correct] What am I doing wrong? Thanks! -- View this message in context: http://mailinglists.scilab.org/Strange-poly-results-tp3950900.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From kevinm at aavatech.com Mon Apr 30 16:39:24 2012 From: kevinm at aavatech.com (Kevin McCoy) Date: Mon, 30 Apr 2012 07:39:24 -0700 (PDT) Subject: Strange poly() results Message-ID: <1335796764859-3950884.post@n3.nabble.com> When I run the following: clean(coeff(poly(roots(poly([1 1 1],"x","c")),"x","r"))) I get ... ans = 1. + 0.4330127i 1. 1. But I'm expecting ... ans = 1. 1. 1. Am I doing something wrong? The documentation says that roots() and poly() are inverse functions, that is, if I construct a polynomial (using poly(pr,"x","r"), where pr are the roots of a polynomial), then I should get back that original polynomial. Here are some other outputs: clean(coeff(poly(roots(poly([1 1],"x","c")),"x","r"))) --> 1. 1. [correct] clean(coeff(poly(roots(poly([1 0 1],"x","c")),"x","r"))) --> 1. 0. 1. [correct] clean(coeff(poly(roots(poly([1 0 0 1],"x","c")),"x","r"))) --> 0.625 + 0.2165064i 0.4330127i 0 1. [incorrect] clean(coeff(poly(roots(poly([1 1 2],"x","c")),"x","r"))) --> 0.5 + 0.1653595i 0.5 1. [incorrect] What am I doing wrong? Thanks! -- View this message in context: http://mailinglists.scilab.org/Strange-poly-results-tp3950884.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.