[Scilab-users] Help with reading data (csvRead)

2016-12-10 Thread Claus Futtrup
Hi I'm trying to read a datafile with csvRead, it might be the wrong function. Please help. The file itself looks like this (only showing select lines - the file contains 391 lines): * FILE:C:\Users\claus\example.zma * INFO: Arb1 * Data: Im

[Scilab-users] Untwinkle a sequence of graphics

2016-12-10 Thread Jens Simon Strom
Hallo Scilab experts, How would you avoid the 'twinkling' when clicking for the next image? xdel(); cf=figure('position',[100 100 1200 800],'background',8); ca=gca(); x=[0 1 0]; y=[0 0 1]; z=[1 1 1]; for i=1:8 plot3d(x',y',z'*i/5) ca.box="off";ca.axes_visible = ["off","off","off"]; ca

Re: [Scilab-users] Help with reading data (csvRead)

2016-12-10 Thread Samuel Gougeon
Hello Claus, Could you please post a true extract of your file, as a file /in attachement/, after that you checked than the issue occurs also with this extract file? It will be easier to test the issue, and it will lead to more reliable tests than copying/pasting a part of your message in a fil

Re: [Scilab-users] Untwinkle a sequence of graphics

2016-12-10 Thread Samuel Gougeon
Hello Jens, Le 10/12/2016 11:55, Jens Simon Strom a écrit : Hallo Scilab experts, How would you avoid the 'twinkling' when clicking for the next image? For instance by using plot3d() options: xdel(); figure('position',[100 100 1200 800],'background',-2); xtitle('Click into figure and watc

Re: [Scilab-users] Calling a java method in a Scilab function

2016-12-10 Thread Samuel Gougeon
Hello Pierre, Le 07/12/2016 10:04, Pierre Vuillemin a écrit : Hi all, I have to create unique IDs for some object in Scilab. For that purpose, someone kindly guided me towards the UUID class of java, which lead me to create this function in Scilab, function id = make_id() UUID = jimp

Re: [Scilab-users] Help with reading data (csvRead)

2016-12-10 Thread Rafael Guerra
Hi Claus, I do not know how to handle multiple spaces separators in csvRead, but you can use following code (adapted from recent post by Serge Steer): // START OF CODE: u=mopen("example.zma","r"); mgetl(u,5);// reads 5-line header r=mfscanf(-1,u,"%f %f %f\n"); mclose(u) // END OF CODE Regar

Re: [Scilab-users] Help with reading data (csvRead)

2016-12-10 Thread Claus Futtrup
Hi Rafael So I gather that the separator has to be a single character, when using csvRead. Thanks for the tip, I'll use mfscanf instead, it seems to be tolerant ... /Claus On 10-12-2016 15:31, Rafael Guerra wrote: Hi Claus, I do not know how to handle multiple spaces separators in csvRead

Re: [Scilab-users] Help with reading data (csvRead)

2016-12-10 Thread Samuel Gougeon
Claus, You may use simply [Mread, header] = fscanfMat(filename); tested on the file sent. There may be an equivalent with csvRead(), using the substitute option. To be confirmed. Anyway it would be more complicated than using fscanfMat(). BR Samuel Le 10/12/2016 15:26, Claus Futtrup a écri

Re: [Scilab-users] Calling a java method in a Scilab function

2016-12-10 Thread n.gulunay
Hi, I thought I unsubscribed from this mailing list but I am still getting them.  I even deleted my user name at one point but still kept getting them.  Currently I appear to be unsubscribed as the system suggests I subscribe yet I am still getting many emails. I would rather sign on and loo

Re: [Scilab-users] Help with reading data (csvRead)

2016-12-10 Thread Claus Futtrup
Hi Samuel Indeed it looks simpler than using csvRead, I will look into this function as well. It looks like it cuts off some of the decimals. Thanks for the tip. Best regards, Claus On 10-12-2016 15:54, Samuel Gougeon wrote: Claus, You may use simply [Mread, header] = fscanfMat(filename

Re: [Scilab-users] Help with reading data (csvRead)

2016-12-10 Thread Samuel Gougeon
Le 10/12/2016 16:18, Claus Futtrup a écrit : Hi Samuel Indeed it looks simpler than using csvRead, I will look into this function as well. It looks like it cuts off some of the decimals. Very unlikely. At least not a single one for the full file you sent to me: f = mgetl(filename); f(1:5) = [

Re: [Scilab-users] Calling a java method in a Scilab function

2016-12-10 Thread Samuel Gougeon
Le 10/12/2016 16:03, n.gulunay a écrit : Hi, I thought I unsubscribed from this mailing list but I am still getting them. I even deleted my user name at one point but still kept getting them. Currently I appear to be unsubscribed as the system suggests I subscribe yet I am still getting man

Re: [Scilab-users] Help with reading data (csvRead)

2016-12-10 Thread Claus Futtrup
Hi Samuel OK, I trust it's just a matter of how the Mread matrix is displayed. /Claus On 10-12-2016 16:41, Samuel Gougeon wrote: Le 10/12/2016 16:18, Claus Futtrup a écrit : Hi Samuel Indeed it looks simpler than using csvRead, I will look into this function as well. It looks like it cuts o

Re: [Scilab-users] Untwinkle a sequence of graphics

2016-12-10 Thread Jens Simon Strom
Hallo Samuel, That works perfectly. Thanks a lot! Tuning graphics is always a big challenge - consuming more time than the mathematical part. Kind regards Jens Am 10.12.2016 14:46, schrieb Samuel Gougeon: Hello Jens, Le 10/12/2016 11

Re: [Scilab-users] Calling a java method in a Scilab function

2016-12-10 Thread n.gulunay
Thank you Samuel. Sent via the Samsung GALAXY S® 5, an AT&T 4G LTE smartphone Original message From: Samuel Gougeon Date: 12/10/16 9:44 AM (GMT-06:00) To: Users mailing list for Scilab Subject: Re: [Scilab-users] Calling a java method in a Scilab function Le

[Scilab-users] Influencing the automatic rotation_angles setting in advance

2016-12-10 Thread Jens Simon Strom
Hallo Scilab experts, During execution of plot3d, param3d, surf, etc. Scilab *automatically* chooses the axes property *rotation_angles*. Is there a way to influence this automatic? I do not mean ca=gca(); ca.rotation_angles=[ang1 ang2]. The setting should be positioned in the script***before

Re: [Scilab-users] Influencing the automatic rotation_angles setting in advance

2016-12-10 Thread Serge Steer
Le 10/12/2016 à 21:00, Jens Simon Strom a écrit : Hallo Scilab experts, During execution of plot3d, param3d, surf, etc. Scilab *automatically* chooses the axes property *rotation_angles*. Is there a way to influence this automatic? I do not mean ca=gca(); ca.rotation_angles=[ang1 ang2]. The

[Scilab-users] image area mask for applying for filter

2016-12-10 Thread Erhy
Hello! My interest ist to image processing. Are there tools to mask an area of an image, that a filter is only applied for the masked area? Thank you for tips Erhy -- View this message in context: http://mailinglists.scilab.org/image-area-mask-for-applying-for-filter-tp4035216.html Sent from t

Re: [Scilab-users] Influencing the automatic rotation_angles setting in advance

2016-12-10 Thread Samuel Gougeon
Le 10/12/2016 21:00, Jens Simon Strom a écrit : Hallo Scilab experts, During execution of plot3d, param3d, surf, etc. Scilab *automatically* chooses the axes property *rotation_angles*. Is there a way to influence this automatic? I do not mean ca=gca(); ca.rotation_angles=[ang1 ang2]. The se

Re: [Scilab-users] Influencing the automatic rotation_angles setting in advance

2016-12-10 Thread Samuel Gougeon
Le 10/12/2016 21:34, Samuel Gougeon a écrit : Le 10/12/2016 21:00, Jens Simon Strom a écrit : Hallo Scilab experts, During execution of plot3d, param3d, surf, etc. Scilab *automatically* chooses the axes property *rotation_angles*. Is there a way to influence this automatic? I do not mean ca=

Re: [Scilab-users] Influencing the automatic rotation_angles setting in advance

2016-12-10 Thread Jens Simon Strom
Hallo Serge, Perfect remedy! The twinkling has come to an end. Thanks a lot! Kind regards Jens -- Am 10.12.2016 21:25, schrieb Serge Steer: Le 10/12/2016 à 21:00, Jens Simon Strom a écrit : Hallo Sci

Re: [Scilab-users] image area mask for applying for filter

2016-12-10 Thread Philipp Mühlmann
Hi Erhy, please find a code snipplet for extrascting an area of interest from an image. Way 1: mask is extracted from original image and stored as a new variable. original_img = rand(100,100).*256; extract_img = original_img (25:74,25:74); Way 2: make a copy of the original image // to keep

Re: [Scilab-users] Influencing the automatic rotation_angles in advance

2016-12-10 Thread Daniel Penalva
On Dec 10, 2016 6:00 PM, "Jens Simon Strom" wrote: > > Hallo Scilab experts, > During execution of plot3d, param3d, surf, etc. Scilab automatically chooses the axes property rotation_angles. Is there a way to influence this automatic? I do not mean ca=gca(); ca.rotation_angles=[ang1 ang2]. The s