Re: [Scilab-users] compiling scilab

2017-03-24 Thread Clément David
Hello all, Sorry for answering that late, I can offer more :) . The error comes from the buggy parallel OCaml compilation of the Modelica compiler. This is a known issue and I currently failed to resolve it : you should compile with `make -j1` to succeed. I was only able to reproduce it on sys

Re: [Scilab-users] compiling scilab

2017-03-24 Thread Florian Blachère
Hello, I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux using the PKGBUILD from the AUR (https://aur.archlinux.org/packages/scilab/) and with modelica activated ('--with-modelica') the build fails even with the '-j1' option. Regards, Florian On 24/03/17 09:53, Clément David

[Scilab-users] Building Scilab 6.0 with Visual Studio 2015?

2017-03-24 Thread Dirk Reusch
Hello, Has anybody successfully build Scilab 6.0 from source for Windows 64Bit using Visual Studio 2015? If yes, does it work out-of-the-box following the instructions given here https://wiki.scilab.org/Compilation%20of%20Scilab ? Thanks, Dirk ___ use

Re: [Scilab-users] add number arrays efficiently, how?

2017-03-24 Thread Erhy
PabloF wrote > May be im missing something, but i think in both cases you need to know > the arrays in advance, dont you? > > Also, i think SumArr = [SumArr toAdd] has better performance... > Perhaps im not understanding the question.. Perhaps merge arrays would be a appropriate subject. If I c

Re: [Scilab-users] add number arrays efficiently, how?

2017-03-24 Thread Rafael Guerra
Erhy, Your code only works if the input arrays are oriented similiarly (both column or row vectors). For the following input your code would not run: SumArr = [ 1 2 3 ]; toAdd = [ 7 8 9 10 ]'; SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = toAdd; !--error 15 Submatrix incorrec

Re: [Scilab-users] {EXT} Re: add number arrays efficiently, how?

2017-03-24 Thread Dang Ngoc Chan, Christophe
Hello, > De : Rafael Guerra > Envoyé : vendredi 24 mars 2017 13:16 > > Your code only works if the input arrays are oriented similiarly (both > column or row vectors). > [...] > > SumArr = [ 1 2 3 ]; > toAdd = [ 7 8 9 10 ]' You can transform it to line vectors (or column vectors) with matrix()

Re: [Scilab-users] {EXT} Re: add number arrays efficiently, how?

2017-03-24 Thread Rafael Guerra
with no logic to respect the SumArr orientation the following is even simpler: [SumArr(:); toAdd(:)] Rgds, Rafael -- View this message in context: http://mailinglists.scilab.org/add-number-arrays-efficiently-how-tp4035946p4035978.html Sent from the Scilab users - Mailing Lists Archives mailin

Re: [Scilab-users] mixed data type matrix

2017-03-24 Thread fujimoto2005
Dear All Thanks for your helpful answers. I could solve the problem. Best regards. -- View this message in context: http://mailinglists.scilab.org/mixed-data-type-matrix-tp4035956p4035979.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.

Re: [Scilab-users] Reading numerical and string vectors from txt-file

2017-03-24 Thread Jens Simon Strom
mgetl(filename) is a good alternative. I have used it in a function because retrieving numbers comes up frequently for me. function cv=!cv(fp,colspan,varargin)//Extracts a numeric Colum Vector from ASCII file //Data separator in file: spaces only, number may differ from line to line to co

[Scilab-users] 3D interpolation

2017-03-24 Thread paul . carrico
Hi all, I don't know if my question is relavante (or not), but I'm wondering what is the best way to perform a 3D interpolation, from for the matrix definition to the interpolation procedure. Let me using a basic example: I've some curves y = f(x,T) defining a material behaviour at different temp

Re: [Scilab-users] 3D interpolation

2017-03-24 Thread CRETE Denis
Hello ! Did you try cshep2d + eval_cshep2d ? HTH Denis [@@ THALES GROUP INTERNAL @@] Unité Mixte de Physique CNRS / THALES 1 Avenue Augustin Fresnel 91767 Palaiseau CEDEx - France Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78 e-mail : denis.cr...@thalesgroup.com

Re: [Scilab-users] 3D interpolation

2017-03-24 Thread Tim Wescott
I'm not an expert.  But: I did a quick spin through the help files and came up with splin2d and interp2d.  It looks like what you want -- get the splines in x and T using splin2d, and find the y values for a given x and T using interp2d. I don't know if this is the very best way to do this mathem

Re: [Scilab-users] 3D interpolation

2017-03-24 Thread Tim Wescott
That doesn't show up in the help for 5.5.2.  Is it a 6.x thing, or is there a toolbox?  Looks interesting, at any rate. On Fri, 2017-03-24 at 18:45 +0100, CRETE Denis wrote: > Hello ! > Did you try cshep2d + eval_cshep2d ? > HTH > Denis >   > [@@ THALES GROUP INTERNAL @@] >   > Unité Mixte de Phys

Re: [Scilab-users] {EXT} Some weirdies with 6.0.0

2017-03-24 Thread Dang Ngoc Chan, Christophe
Hello, > De : Dang Ngoc Chan, Christophe > Envoyé : mardi 21 mars 2017 10:19 > > E.g. I has two graphical windows opened and one of them did not I investigated this a bit and found a reproducible minimal case, see bug 15100 http://bugzilla.scilab.org/show_bug.cgi?id=15100 Regards -- Christophe

[Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Erhy
Hello! Again a basic question. e.g. A = [ 1 2 3 ]; I = find( A > 10); if length(I) > 0 then I = I + 1; end Is there a alternative *without the if ?* I miss the .+ operator. Thank you -- View this message in context: http://mailinglists.scilab.org/add-value-to-each-element-of-an-ar

Re: [Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Samuel Gougeon
Hello Erhy, Le 24/03/2017 à 20:36, Erhy a écrit : Hello! Again a basic question. e.g. A = [ 1 2 3 ]; I = find( A > 10); if length(I) > 0 then I = I + 1; end Is there a alternative *without the if ?* Yes, just: I = I + 1 The if is useless: 1. length(I)==0 means I==[] and then I+1 ==

Re: [Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Erhy
Samuel GOUGEON wrote > 1. length(I)==0 means I==[] and then I+1 == []+1 ==[] as if nothing But in my examples I = []; Iplus = I + 1; then Iplus is 1 -- View this message in context: http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989p4035991.h

Re: [Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Samuel Gougeon
Le 24/03/2017 à 21:08, Erhy a écrit : Samuel GOUGEON wrote 1. length(I)==0 means I==[] and then I+1 == []+1 ==[] as if nothing But in my examples I = []; Iplus = I + 1; then Iplus is 1 Not in Scilab 6, for the time being. I assumed that you were using Scilab 6. In Scilab 5: i know nothing s

Re: [Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Erhy
Samuel GOUGEON wrote > Not in Scilab 6, for the time being. I assumed that you were using Scilab > 6. so I will jump to version 6 Thank you! -- View this message in context: http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989p4035993.html Sent f

Re: [Scilab-users] 3D interpolation

2017-03-24 Thread Samuel Gougeon
Le 24/03/2017 à 18:40, paul.carr...@free.fr a écrit : Hi all, I don't know if my question is relavante (or not), but I'm wondering what is the best way to perform a 3D interpolation, from for the matrix definition to the interpolation procedure. Let me using a basic example: I've some curves

Re: [Scilab-users] 3D interpolation

2017-03-24 Thread paul . carrico
thanks all for the answers; I didn't know about ndgrid and I'm currently having a look on it (seems to be quite interesting) Samuel: from your example and the help doc, I need to understand how to proceed to perform linear interpolations (temperatures and abscissa's in my example) Paul Le 201

Re: [Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Rafael Guerra
An ugly alternative without find and without the if as requested: A = [ -1 2 7 ]; I = (A>10).*(cumsum(ones(A))+1); I(I==0) = [] I = [] I = (A>0).*(cumsum(ones(A))+1); I(I==0) = [] I = 3.4. Rgds, Rafael -- View this message in context: http://mailinglists.scilab.org/add-valu

[Scilab-users] efficient calculation for a moving window

2017-03-24 Thread fujimoto2005
Suppose x is a 1*n vector and mhttp://mailinglists.scilab.org/efficient-calculation-for-a-moving-window-tp4035997.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org h