Re: [Scilab-users] String and integer

2020-11-20 Thread paul francedixhuit
Based on your advices, I've fix my issue. Thanks Paul ### i = 1FileName = "MyFile"// PreviouslyNewFileName1 = FileName + string(i)// NowNewFileName2 = FileName + msprintf("%.4d",i)i = 666NewFileName3 = FileName + msprintf("%.4d",i) Le ven. 20 nov.

Re: [Scilab-users] String and integer

2020-11-20 Thread CHEZE David 227480
Hi Paul, --> msprintf("%04d",3) ans = "0003" David De : users De la part de paul francedixhuit Envoyé : vendredi 20 novembre 2020 14:49 À : Users mailing list for Scilab Objet : [Scilab-users] String and integer Hi all In ordre to change files names, I need to convert integers into

Re: [Scilab-users] String and integer

2020-11-20 Thread CRETE Denis
Hello msprintf(‘%04d’,1) seems to do the job HTH Denis De : users De la part de paul francedixhuit Envoyé : vendredi 20 novembre 2020 14:49 À : Users mailing list for Scilab Objet : [Scilab-users] String and integer Hi all In ordre to change files names, I need to convert integers into strings

Re: [Scilab-users] String and integer

2020-11-20 Thread Jean-Yves Baudais
Hi, A solution, of course not the best, --> if i<10, s=msprintf("000%d",i) end with iteration for high number, or with 3-floor(log10(i)) added zeros? --Jean-Yves - Original Message - > From: "paul francedixhuit" > To: "Users mailing list for Scilab" > Sent: Friday, 20 November, 2020

[Scilab-users] String and integer

2020-11-20 Thread paul francedixhuit
Hi all In ordre to change files names, I need to convert integers into strings but with zeros prior to it Example if i=1 i need 0001 and not 1 I don't know how to use something like "%4d" with "string" Thanks Paul ___ users mailing list

Re: [Scilab-users] mesh2d - finding identical points

2020-11-20 Thread Stéphane Mottelet
Yes, just mesh the set of (u,v) coordinates corresponding to your (x,y,z) reference points. S. Le 20/11/2020 à 13:05, P M a écrit : I guess I do have such an u-v-plane. The background of the background : The task is to map an image onto a 3D geometry. The image includes reference points,

Re: [Scilab-users] mesh2d - finding identical points

2020-11-20 Thread P M
I guess I do have such an u-v-plane. The background of the background : The task is to map an image onto a 3D geometry. The image includes reference points, which correspond to known x-y-z coordinates. So the image plane is (my guess) the u-v-plane. BR Philipp Am Fr., 20. Nov. 2020 um

Re: [Scilab-users] mesh2d - finding identical points

2020-11-20 Thread Stéphane Mottelet
In order to use mesh2d with your data, there must exist a plane (u,v) on which you could project your (x,y,z) data. The mesh obtained on projected data (u,v) would give you the triangulation of the (x,z,y) data. This won't be possible with mesh2d if you take for example scattered points on a

Re: [Scilab-users] mesh2d - finding identical points

2020-11-20 Thread P M
Am Fr., 20. Nov. 2020 um 11:47 Uhr schrieb Stéphane Mottelet < stephane.motte...@utc.fr>: > Hi again, > Le 20/11/2020 à 11:30, P M a écrit : > > OK, > some more background: > > I actually want to perform a delaunay triangulation on a set of > X-Y-Z-coordinates. > > I suppose you mean a

Re: [Scilab-users] mesh2d - finding identical points

2020-11-20 Thread Stéphane Mottelet
Hi again, Le 20/11/2020 à 11:30, P M a écrit : OK, some more background: I actually want to perform a delaunay triangulation on a set of X-Y-Z-coordinates. I suppose you mean a triangulation of scattered X-Y-Z but you call mesh2d with X-Y only ? I know of CGLAB, but it seems only available

Re: [Scilab-users] mesh2d - finding identical points

2020-11-20 Thread P M
OK, some more background: I actually want to perform a delaunay triangulation on a set of X-Y-Z-coordinates. I know of CGLAB, but it seems only available to Scilab 6.0.x, while I am on Scilab 6.1.0 So the nearest thing to a delaunay triangulation I found is mesh2d... Because of the delaunay

Re: [Scilab-users] mesh2d - finding identical points

2020-11-20 Thread Stéphane Mottelet
Hi Philipp, Glad to hear that some people use mesh2d. I know we have to improve the error message by getting the numbers at the Fortran level... There is also other errors which are not easy to fix without knowing the number of the problematic point (point too close to the boundary, for

Re: [Scilab-users] {EXT} mesh2d - finding identical points

2020-11-20 Thread Dang Ngoc Chan, Christophe
Hello, > De : users De la part de P M Envoyé : > vendredi 20 novembre 2020 10:04 > > How to identify these points and remove the duplicates? You might try to use unique(). Maybe the following discussion can help:

Re: [Scilab-users] mesh2d - finding identical points

2020-11-20 Thread paul francedixhuit
Hi Have a look to "unique" to identify (and remove) duplicates Paul Le ven. 20 nov. 2020 à 10:04, P M a écrit : > Dear all, > > using the mesh2d - function I get an error: mesh2di: some points are > identical. > > > How to identify these points and remove the duplicates? > > There are

[Scilab-users] mesh2d - finding identical points

2020-11-20 Thread P M
Dear all, using the mesh2d - function I get an error: mesh2di: some points are identical. How to identify these points and remove the duplicates? There are roughly 500'000 coordinates Thank you, Philipp ___ users mailing list