Re: [Scilab-users] Changing properties of mark_mode polyline in param3d1

2022-05-01 Thread P M
Hello, are you bound to param3d1 or can you use scatter3d instead? scatter3d([1 2 3],[3 4 2],[5 2 4],36,['red1' 'green1' 'blue1'],'fill');a = gca();a.data_bounds = [0,0,0;7,7,7]; BR Philipp Am Fr., 29. Apr. 2022 um 12:57 Uhr schrieb Izabela Wójcik-Grząba < i...@il.pw.edu.pl>: > Hello, > > I

Re: [Scilab-users] scicv toolbox

2022-03-07 Thread P M
maintained... I do not remember a "final statement" of this. BR Philipp Am Mo., 7. März 2022 um 09:31 Uhr schrieb Stéphane Mottelet < stephane.motte...@utc.fr>: > Hi Philipp, > > The active tolbox using OpenCV is IPCV, and the author is > chinluh@bytecode-a

[Scilab-users] scicv toolbox

2022-03-06 Thread P M
Dear developers, in the help page of the scicv toolbox, I find following statement: "The purpose of this toolbox is to provide an access to all the functions and objects of OpenCV in Scilab." Now, although I do very much like this statement in itself, I do not think that all functions are

Re: [Scilab-users] please help, I have just a mental blockade

2022-02-07 Thread P M
Hallo Claus, would you like to explain, why you thought of images as input? I worked a little in the field of finding lines/edges in noisy images and a cumsum approach crossed my way some years ago. So maybe here, there is something to learn for me? Best Regards, Philipp Am Mo., 7. Feb.

Re: [Scilab-users] question to surf()

2022-01-04 Thread P M
Yes, that helped. Thank you, Philipp Am Di., 4. Jan. 2022 um 14:37 Uhr schrieb Samuel Gougeon : > Le 04/01/2022 à 14:29, P M a écrit : > > ...indeed..no problems with Scilab 6.1.1 > > > Likely because this example needs a bigger Java heap used for graphics. > The default Ja

Re: [Scilab-users] question to surf()

2022-01-04 Thread P M
...indeed..no problems with Scilab 6.1.1 Thank you, Philipp Am Di., 4. Jan. 2022 um 12:22 Uhr schrieb Heinz Nabielek < heinznabie...@me.com>: > SurfPlot is no problem here. > Scilab Version: 6.1.1.988271013 > macOS Catalina Version 10.15.7 > Heinz > > > > > On

[Scilab-users] question to surf()

2022-01-04 Thread P M
Dear, is there a limitation for surf(), when displaying big matrices? Background: Imagine an image of size 900 x 1500. Scilab crashes, when I try to display the image using surf(). - I know there is imshow, Matplot etc... - for some cases it is nice to use surf() and take the pixel values as

Re: [Scilab-users] clarification in data type preciscion needed

2021-12-04 Thread P M
... Is it possible to delete this question? I guess a int64_t variable should not be represented by a floating point datatype... Scilab 6 offers int64 datatype... Seems more correct. BR Philipp Am Samstag, 4. Dezember 2021 schrieb P M : > Dear programmers, > > I need/want to foll

[Scilab-users] clarification in data type preciscion needed

2021-12-04 Thread P M
Dear programmers, I need/want to follow some C-library code with Scilab. The C-libarary defines a lot of variables by "int64_t". - So far I understand int64_t is a datatype of exactly 64bit length (8 byte signed integer) What would be the correct equivalent data type in Scilab? -

Re: [Scilab-users] scilab and xlsx - files

2021-11-08 Thread P M
; > S. > > > Le 5 nov. 2021 à 10:43, P M a écrit : > > > >  > > Dear, > > > > thanks to the xls-link toolbox I am able to read data directly from an > xlsx-file. > > > > however, there is a strange data conversion going on:

[Scilab-users] Scilab crashes on x_choose_modeless

2021-10-24 Thread P M
Hi, What is the expected behaviour of x_choose_modeless ? Executing the help example [image: grafik.png] I get the window below and Scilab does not react to anything. Experienced under Scilab 6.1.0 (64-bit) on a Win10 PC. [image: grafik.png] Philipp

[Scilab-users] Messagebox - button pre-selection

2021-10-22 Thread P M
Dear, in a messagebox: Is it possible to have a button other than the first one pre-selected? e.g.: I'd like to have "No" pre-selected in the example below? In my application the buttons must stay in their order as they are...so simply changing the order (button label) is no option. Thank

[Scilab-users] reading binary files with some plain text

2021-10-01 Thread P M
Hi, there is a binary file I would like to extract some info from. If one opens the file witha text editor (such as notepad) it turns out, that some human readable parts are inside of the binary file. With Scilab I can get these data parts by: fd = mopen(files(i),'r');// with

Re: [Scilab-users] datatips in multiple axes plot

2021-09-30 Thread P M
David, if you can express your data by a function, maybe something like this can help? BR Philipp // ## //define functions for data generationfunction res=func1(x) res = sin(x);endfunction function res=func2(x) res = x .* x;endfunction function

Re: [Scilab-users] restriction for fileinfo (?)

2021-09-29 Thread P M
..typo: it is scilab 6.1.0 that I use in this case Am Mi., 29. Sept. 2021 um 10:24 Uhr schrieb P M : > Hallo Samuel, > > the whole thing is strange, since I also could create and read a path name > on a win7 machine using Scilab 6.0.1. > Here the path was in total 287 charact

Re: [Scilab-users] restriction for fileinfo (?)

2021-09-29 Thread P M
se name is 272-character long, when calling fileinfo() with > the huge name in the path. > So the issue may come from elsewhere. May be from a symbolic link (no test > done on my side)? > > Samuel > > - Mail d'origine - > De: P M > À: International users mai

[Scilab-users] restriction for fileinfo (?)

2021-09-28 Thread P M
Dear, is there a restriction in path length when using fileinfo() ? I find files paths with a total length of > 256 characters. e.g.: total file name length = 77 characters // including the file extension total path length = 265 characters [ret, err] = fileinfo(

Re: [Scilab-users] find all files of specific type on hard drive

2021-09-27 Thread P M
> Best regards, > Claus > > On 27-09-2021 20:37, P M wrote: > > @ Denis: > - I forgot to mention: The files are under windows. > > @ Claus: > - [...] I create a list of all files in that directory and read all of > them [] > > Yes , this is what I s

Re: [Scilab-users] find all files of specific type on hard drive

2021-09-27 Thread P M
@ Denis: My fault: unix_g seem to be promising. f = unix_g('dir /A: *.txt /S') looks promising. thank you for the hint. BR Philipp Am Mo., 27. Sept. 2021 um 20:37 Uhr schrieb P M : > @ Denis: > - I forgot to mention: The files are under windows. > > @ Claus: > -

Re: [Scilab-users] find all files of specific type on hard drive

2021-09-27 Thread P M
quot;); > > > ... > > imax=max(size(filelist)); > > ... > > printf("Loop %i times: ",imax);for i=1:imax do > printf("%i ",i) // Show progress > [path fname extension] = fileparts(filelist(i)); > if isnum(fname) then// ch

[Scilab-users] find all files of specific type on hard drive

2021-09-27 Thread P M
Dear All, I need to find and list all files of a specific type on my hard driveHow to do that in the most elegant way? E.g.: - find all *.txt files in "D:\" - also find all '*.txt' files in each sub - directory, sub-sub-directory, ..etc - create a list that stores the absolute path names to

Re: [Scilab-users] Redrawing a maximized figure changes its original size and other problem

2021-09-03 Thread P M
Hi Federico, Assuming that you ALWAYS want to have the figure at max screen size: Question 1: You can work with the screen width/height values to maximize the figure. To get the screen values you can use: - screenWidth = getsystemmetrics('SM_CXSCREEN') - screenHeight =

Re: [Scilab-users] Fwd: avoid auto-zoom when rotating a 3D graphic

2021-07-16 Thread P M
gt; are still some glitches which have to fo be fixed (e,g, problems when > zooming in isoview mode) but we have some time to think about it. > > S. > Le 07/07/2021 à 08:49, P M a écrit : > > > Dear, > > is it possible to avoid the effect of auto-zoom / streching when

[Scilab-users] Fwd: problem with subplot

2021-07-15 Thread P M
Hi Federico, my best guess: In your example only subplot(4,1,4) gets the x_label Since this needs space, the diagram is smaller. Workaround:create label for x-axis via xstring Or: Assign a x_label for each subplot, but hide it. This will assign "space" for the label, but it won't be

Re: [Scilab-users] Fwd: avoid auto-zoom when rotating a 3D graphic

2021-07-07 Thread P M
the feature in Scilab 6 family? Thank you, Philipp Am Mi., 7. Juli 2021 um 10:19 Uhr schrieb Stéphane Mottelet < stephane.motte...@utc.fr>: > Philipp, you should at least add > > gc(a().isoview = "on" > > > Le 07/07/2021 à 08:49, P M a écrit : > > > D

[Scilab-users] Fwd: avoid auto-zoom when rotating a 3D graphic

2021-07-07 Thread P M
Dear, is it possible to avoid the effect of auto-zoom / streching when rotating a graph in 3D-view?...see result of attached code. My best guess is that one would have to set the a.margins according to the actual a.rotation_angles for each framebut is there a easier way? Thank you, Philipp

Re: [Scilab-users] plot(x) - define color

2021-02-19 Thread P M
..because the question also mentions the line style: in addition to: colour=["red","blue","chocolate1",...]; // help color_list you can also create lineStyle = [ 1, 2, 3, 4, 2, 1 , ..] // help polyline and do: for j=1:20 h = plot(TestPH(j,:))

Re: [Scilab-users] xpoly in x-y-z coordinates

2021-02-17 Thread P M
Hi Samuel, please see my answers below in blue. Thank you, Philipp Am Mi., 17. Feb. 2021 um 13:09 Uhr schrieb Samuel Gougeon : > Hello Philipp, > > Le 08/02/2021 à 21:36, P M a écrit : > > Dear Users, > > > > I have a 3D-plot. > > > > Onto

Re: [Scilab-users] Scilab & cdf-file format

2021-02-13 Thread P M
Dear, thanks for the suggestions. I did install scilab 5.5.2 & the scinetcdf-toolbox. Turns out: The cdf-file at hand is of other format: ncread(inFile, "GMT"); !--error 999 ncread: nc_open() returned the error -51: NetCDF: Unknown file format. BR Philipp Am Fr., 12.

[Scilab-users] scicv - CV_FOURCC

2021-02-10 Thread P M
Dear , from the scicv toolbox I use the new_VideoWriter - function: videoWriter = new_VideoWriter(filename, fourcc, fps, frameSize) Everything fine so far, except: There are artefacts in the final video., which I guess are connected to compression. Here are some lines from my code:

[Scilab-users] Scilab & cdf-file format

2021-02-10 Thread P M
Dear Users, Is there any Scilab toolbox available, handling the cdf-file-format? cdf = "common data file", which was original developed by NASA : https://cdf.gsfc.nasa.gov/ Thank you, Philipp ___ users mailing list users@lists.scilab.org

Re: [Scilab-users] xpoly in x-y-z coordinates

2021-02-08 Thread P M
sorry I am completely fine with xarrows instead of xpoly. Philipp Am Mo., 8. Feb. 2021 um 21:36 Uhr schrieb P M : > Dear Users, > > I have a 3D-plot. > > Onto that, I would like to add a xpoly-line with the following specs: > > xpoly ( [0 1], [0 0], [-0.4 -0.4], 'l

[Scilab-users] xpoly in x-y-z coordinates

2021-02-08 Thread P M
Dear Users, I have a 3D-plot. Onto that, I would like to add a xpoly-line with the following specs: xpoly ( [0 1], [0 0], [-0.4 -0.4], 'lines' 0) in other words: The polyline should be at the X-Y Plane, but shifted to Z = -0.4 I know that I can just plot the line, but that would destroy the

Re: [Scilab-users] Default x|y|z labels and title font size = 2?

2021-02-02 Thread P M
Dear Samual, thanks for the proposal...I fully agree with it. Best Regards, Philipp Am Di., 2. Feb. 2021 um 09:53 Uhr schrieb CHEZE David 227480 < david.ch...@cea.fr>: > Dear Samuel, > > > > I also have the same feeling that larger default font size would suit > better, most of the time, as

Re: [Scilab-users] Update library and help

2021-01-28 Thread P M
Hello Jean-Yves, please let me forward Samuel Gougeon's answer to your question. Best Regards, Philipp Hello Jean-Yves, Jan 18, 2021; 2:54pm jbaudais[Scilab-users] Update library and help Hello, When I modify the file myfunction.sci in my librairie "mylib", the update works as expected

Re: [Scilab-users] users@ interruptions?

2021-01-22 Thread P M
Yes, I did receive that message. Best Regards, Philipp Am Fr., 22. Jan. 2021 um 21:05 Uhr schrieb Samuel Gougeon : > Hello, > Has anyone received the recent message archived @ > > http://mailinglists.scilab.org/Scilab-users-Update-library-and-help-tt4041262.html > ? > I have not. > BR > Samuel

Re: [Scilab-users] New constant %chars to get sets of symbols

2020-12-31 Thread P M
Dear, if the content of e.g. %chars.greek.lower is a string: Why not even subdivide this further, such as: %chars.greek.lower.alpha = "α" %chars.greek.lower.beta = "β" ... Some work to create at first, but handy to use Best Regards, Philppp Am Do., 31. Dez. 2020 um 16:37 Uhr schrieb

Re: [Scilab-users] IPCV upscaling of image

2020-12-21 Thread P M
37 Uhr schrieb Claus Futtrup : > Hi Philipp > > The file was saved automatically. I don't think you can set what to save, > or even the name of the file. > I also did a xs2png, but that only saves the current figure. In my case a > 610 x 460 pixel image (=the screen figure). > >

Re: [Scilab-users] IPCV upscaling of image

2020-12-21 Thread P M
also see that the upscale is > not 2x2 = 4, but it is 4x4 so the upscaled image is huge. The output file > is saved - I believe - in wherever your Scilab file browser is currently > active. > > Best regards, > Claus > > On 20-12-2020 22:55, P M wrote: > > Dear Claus, >

Re: [Scilab-users] IPCV upscaling of image

2020-12-20 Thread P M
Dear Claus, you need to feed a list into imsuperres()not directly the image. Following should work. imgList = list();imgList(1) = imread('path_to_image');imgOut = imsuperres(imgList); figure();imshow(imgList(1));figure();imshow(imgOut); BR Philipp Am So., 20. Dez. 2020 um 19:42 Uhr

Re: [Scilab-users] Atoms Modules

2020-12-18 Thread P M
Hi Samuel. Chin Luh, Ok...let me command as a user. I hesitated to comment, because I am not sure if I am educated enough to answer the question, if IPCV maintenance should be continued. My first question back to Chin Luh would be...What do you mean by maintenance?... Adding new functions? My

Re: [Scilab-users] ipcv vs scicv

2020-12-07 Thread P M
Please enlighten meon my PC the current situation is like this: Scilab 6.1.0 Loading order 1: - scicv - IPCV --> in console: help imread --> img = imread(filename[,flag])// hence the imread function from scicv is found / used (?) --- Loading order 2: - IPCV - scicv --> in

[Scilab-users] scicv - camera calibration

2020-11-24 Thread P M
Dear scicv developers, is camera calibration possible with scicv? Help states: The following feature domains are (or will be) covered: [...] - Camera calibration (calib3d) [...] I also do find a "opencv_calib3d2413.dll" somewhere in the scicv installation folders. However I do not find

Re: [Scilab-users] ipcv vs scicv

2020-11-24 Thread P M
king Pythonic here, like if you import for example numpy, you can > write import numpy as np ... from hereon, you write np.pi for the > definition of pi (=3.14159 ... ), and so on. > > Maybe something for Scilab 7 (?) > > Cheers, > Claus > > On 24-11-2020 14:15, P M wro

[Scilab-users] ipcv vs scicv

2020-11-24 Thread P M
Dear developers, as I have many scripts with "imread" I wonder if some time in the future duplicate functions names from IPCV and SCICV are going to be removed/changed. It's kind of disturbing to have to use atomsInstall/atomsRemove when using different scripts. I think this was discussed

[Scilab-users] image insertion using scicv

2020-11-24 Thread P M
Dear Experts, I would like to implement a small image into a part of a big image. I would know how to do that with IPCV, but the small image is loaded using scicv "imread". The help to "Mat" states: - insertion: syntax is the same a the usual Scilab insertion, and accepts a Scilab

Re: [Scilab-users] converting octave script imremap to scilab

2020-11-22 Thread P M
08:55 Uhr schrieb Stéphane Mottelet < stephane.motte...@utc.fr>: > Hi, > > Does interp2 works by using the triangulation ? > > S. > > Le 21 nov. 2020 à 22:56, P M a écrit : > >  > Dear All, > > I am trying to map an image onto a 3D surface. > The ima

[Scilab-users] converting octave script imremap to scilab

2020-11-21 Thread P M
Dear All, I am trying to map an image onto a 3D surface. The image contains reference points, which with known 2D pixel coordinates. The 3D equivalent of these reference points is as well known. The 3D shape is represented by a set of X-Y-Z coordinates. For mapping the image onto a

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

2020-11-20 Thread P M
ata. This won't > be possible with mesh2d if you take for example scattered points on a > sphere. However, any non-linear transformation "unfolding" the data could > also help to use pure 2d tools like mesh2d. > > S. > Le 20/11/2020 à 12:05, P M a écrit : > > > > Am Fr

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-coord

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

2020-11-20 Thread P M
t; file a bug on BZ ? > > S. > Le 20/11/2020 à 10:03, 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? > >

[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

Re: [Scilab-users] IPCV imread

2020-11-12 Thread P M
nchinluh/IPCV/tags > <https://github.com/tanchinluh/IPCV/tags> and use the extra input to force > reading in 3 layers. img = imread(imPath, IMREAD_COLOR = 1);Hope this > helps.Regards,Chin Luh On Wed, 11 Nov 2020 20:20:18 +0800 P M > > wrote Dear > Experts,please improve

[Scilab-users] IPCV imread

2020-11-11 Thread P M
Dear Experts, please improve my understanding of the IPCV function imread for following context: I have an image which is told to be a 3-channel image. At least with IrfanView I get a bit depth of 24 ... so I expect it to be an RBG image. However: The image contains - on purpose - only 2

Re: [Scilab-users] {EXT} Fwd: plotting dots vs xfarc

2020-10-02 Thread P M
Monmayrant < antoine.monmayr...@laas.fr>: > > On 01/10/2020 09:05, Dang Ngoc Chan, Christophe wrote: > > Hello, > > > >> De la part de P M > >> Envoyé : mercredi 30 septembre 2020 16:50 > >> > >> exact dot-coordinates, drawn as filled

[Scilab-users] Fwd: plotting dots vs xfarc

2020-09-30 Thread P M
Dear community, I need to create images, which includes exact dot-coordinates, drawn as filled circles. All pixel coordinates of such an area would have to have exactly one single pixel value. The resulting graphic right now is stored via: xs2bmp. to create the dots I naturally would

Re: [Scilab-users] Read file (.txt)

2020-09-10 Thread P M
I think csvRead is just fine. [data header] = csvRead(fname, ' ', '.', 'string', [], [], [], 0); As you may notice the data Matrix contains a lot of empty columns. This is due to the many white spaces in the text file anyways, after reading the dta in you may use evstr() to convert into

Re: [Scilab-users] need help with image post processing

2020-07-16 Thread P M
for i=2:n > im(im_labeled==k(i))=0; > end > > subplot(1,2,2) > imshow(im) > > S. > Le 15/07/2020 à 20:39, P M a écrit : > > Stéphane, > > Thanks for the hint. > > This is nice for dots being completely surrounded by the green area. > > In general t

Re: [Scilab-users] need help with image post processing

2020-07-15 Thread P M
> > S. > > > Le 15/07/2020 à 17:58, P M a écrit : > > Dear Scilab community, > > Thanks to Antoine's functions I am able to read tif-files as M x N x > Channel - matrix. > > Px values are: > > red => 255, 0, 0 > green=> 0, 255, 0 > bl

[Scilab-users] need help with image post processing

2020-07-15 Thread P M
Dear Scilab community, Thanks to Antoine's functions I am able to read tif-files as M x N x Channel - matrix. Px values are: red => 255, 0, 0 green=> 0, 255, 0 black => 0, 0, 0 white => 255, 255, 255 Now: I want to only keep the green pixel values. This can be done due

Re: [Scilab-users] Fwd: Re: scilab and tif-files

2020-07-14 Thread P M
20:39:20 +0200 > From: Antoine Monmayrant > > To: P M > > Hello Philipp, > > I played a bit with tiff format a while ago (as none of the image > processing toolboxes could be installed on my work computers). > The long story short: one of our microscope is storing data

[Scilab-users] saving an image as b/w image

2020-07-10 Thread P M
Dear Experts, I try to save a black/white image as a binary image. That means: An image with bit depth of 1. "imwrite" from IPCV however seems to save the image at least as a 8-bit-image. The array I want to save as an image consists of "0" and "1" only. The output file type must be ".jpg".

[Scilab-users] data augmentation with scilab for neural networks

2020-06-24 Thread P M
Dear Scilabers, probably not the correct forum to ask this question, but i do not know better. Dealing with neural networks and image segmentation I write some Scilab code for data augmentation. This is to increase my training data set. ( = more images) Data augmentation (for now) is done by:

[Scilab-users] imrotate

2020-06-24 Thread P M
Dear Experts, using imrotate() from IPCV-toolbox: imout = imrotate(im1,deg,crp) crp : Returns only central portion output image which is the same size as source if set to 1 My input image is 512x512 pixel. The output image shall be of the same size. For this I try crop = 1 and also crop = 0

Re: [Scilab-users] Plotting a New Xpoly Directly Inside a Compound

2020-06-19 Thread P M
Hallo Robert, If you use xpoly() it means you know your data before you plot it? --> I mean: you do not click in the figure to get the coordinates --> Why not plot all data at once? E.g.: Can you not plot all polylines in one single plot2d command? If you can't, you may try following

Re: [Scilab-users] Auto adjust level of a color image

2020-06-10 Thread P M
Dear Mat, not sure if this helps, but here is a way, how to set brightness using a constant value. I guess for automatization one can figure out a way using mean pixel value. Best Regards, Philipp img = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png')); // image size = 512 x 512 //

Re: [Scilab-users] Pong contest (new version)

2020-06-08 Thread P M
Pong2 score @ Win10 [image: grafik.png] Regards, Philipp Am Mo., 8. Juni 2020 um 14:23 Uhr schrieb Stéphane Mottelet < stephane.motte...@utc.fr>: > > Le 08/06/2020 à 10:46, Stéphane Mottelet a écrit : > > Hello all, > > Here is a new version of the game using realtime() to fix a framerate

Re: [Scilab-users] Pong contest

2020-06-07 Thread P M
nice. However on my win7 64bit Laptop the speed suddenly changes from very slow to very fast and even back to slowso kind of unpredictable... probably a feature :-) Greetings Virenfrei.

Re: [Scilab-users] Corona modelling

2020-03-30 Thread P M
R = recovered = people who can not infect others anymore...this includes the dead people... (or not?) there are some nice introducton videos at YouTube about thiseven showing the mentioned model... numberphile: https://www.youtube.com/watch?v=k6nLfCbAzgo 3brown1blue:

[Scilab-users] read database file (sqlite)

2020-03-13 Thread P M
Dear Experts, I try to read a database file (*.db). The file is obviously written with SQLite format 3...at least a online viewer can show me the file contentand at the file beginning it's written: sqlite format 3 Any chance, that I can read/view this file with Scilab? Thank you,

Re: [Scilab-users] Which module to use for hassle-free image processing with scilab ?

2020-03-08 Thread P M
Hi Chin Luh, thank you very much for the historical insight. I've been working with this US-company and AIVP for 2 or 3 years...interesting to see how it is all connected. Best regards, Philipp Am So., 8. März 2020 um 14:49 Uhr schrieb Chin Luh Tan < chinluh@bytecode-asia.com>: > Hi

Re: [Scilab-users] [EXTERNAL] Count specific values in text file

2020-02-12 Thread P M
Hi, Option 1: You manually put a "." inside the file and run the script. Since you only mentioned "pi" and "e" it's little efford. Option 2: You still can use csvRead even without having a "." as separator. Note: Search range adapted to count only in digits behind the decimal sign. You may

Re: [Scilab-users] [EXTERNAL] Count specific values in text file

2020-02-11 Thread P M
Hi, is this what you're looking for? // path to the txt filepath = 'pathToFile' // read the file as stringpiAsString = csvRead(path, [],['.'],'string') // split the string at the decimal[piAsString] = strsplit(piAsString,'.'); // just get the digitspiDigits = strtod(strsplit(piAsString(2))); //

Re: [Scilab-users] ?==?utf-8?q? plotting a function that changes with x

2020-02-09 Thread P M
Hi, with the if-loop-approach you probably thought about this: x=(0:1:72)for i=1:length(x) if ((x(i)<18) == %T) // elementwise comparison then y(i) = sin(x(i)*%pi/24) else y(i)= 0.1*x(i) endendplot2d(x,y,2) However it's a if-loop within a for loop...

[Scilab-users] correctly applying A-weighting onto sound (dB-to-dBA)

2020-01-07 Thread P M
Dear All, for a simulation temperatures shall be converted into a sound. E.g.: Each temperature value represents a frequency. Low temperatures = low frequency High temperature = high frequency. For creating the sound I use following approach: - create empty array, that will represent the

[Scilab-users] adding sound to avi-file within Scilab

2019-12-23 Thread P M
Dear Experts, is it possible to merge sound and video in one of the Scilab toolboxes? >From what I find the image processing toolboxes can create avi's, but only put image as frames into the avi. My current approach would be: - create (or already have) a set of images...each one represents a

Re: [Scilab-users] designing a sound file

2019-12-22 Thread P M
e, sum > an attenuated version of the result to the dry signal. > > Redards, > > Federico Miyara > > > On 21/12/2019 17:16, P M wrote: > > Dear experts, > > I try to compose (design) a small sound file, made of several wav-files. > > My question: H

[Scilab-users] designing a sound file

2019-12-21 Thread P M
Dear experts, I try to compose (design) a small sound file, made of several wav-files. My question: How to approach this task in the best way? Here some input: - sound 1: Tick-sound of a clock - sound 2: Tock-sound of a clock each wav-file has these properties: - length: 0.1 sec -

Re: [Scilab-users] Scilab API sciprint to print on the same line

2019-12-13 Thread P M
...even more strange than the reported bug: clc(1) seems to behave different when directly written into the console vs used from SciNotes. from SciNotes: clc();for i=1:10 mprintf("%d\n",i)endclc(1) result in console: 1 2 3 4 5 6 7 // note that number 8,9,10 are cleared..so it's 3 lines, not

Re: [Scilab-users] ?= GUI hel

2019-12-03 Thread P M
> > So why do they use "clear" at the beginning of every script? This is > like a Matlab signature. > I am no matlabber, but like to start my scripts with: clc() clear("all") delete("all") // in older days also: stacksize("max") At least so long, as I am working on a script. Pressing F5 for

Re: [Scilab-users] ?==?utf-8?q? GUI help

2019-11-28 Thread P M
Hallo Claus, from what I understand the question is: How can GUI updated outside of the function "calc" ? In other words: right now "calc" updates the GUI. I guess the aim is that "calc" only returns output values, which will be used to update the GUI . Way 1: Use global variables, which can be

[Scilab-users] using transparency in Scilab

2019-11-18 Thread P M
Dear Scilab developers, it seems that the topic of using transparency in Scilab pops up now and then. So wouldn't it be useful to implement transparency once and for all into Scilab instead of using work-arounds? Just a humble question :-) Best regards, Philipp

Re: [Scilab-users] ?==?utf-8?q? rotate x_tick labels

2019-10-18 Thread P M
Dear Antoine, that does it. Thank you, Philipp Am Do., 17. Okt. 2019 um 18:49 Uhr schrieb Antoine Monmayrant < amonm...@laas.fr>: > Houps, > > I meant: > > a.x_ticks.labels(i)="$\rotatebox{90} {"+myLabels+"}$"; > > Antoine > > Le Jeudi, Octobr

[Scilab-users] rotate x_tick labels

2019-10-17 Thread P M
Dear all, how can one insert the values of a string vector into a latex-formatted string? Example: myLabels = [ 'label1'; 'label2'; ; label_n]; // myLabels = vector of strings I am struggling by trying to use the entries of myLabel as automatic generated LaTex-labels for x_ticks. for i

Re: [Scilab-users] convert matlab code to scilab

2019-10-16 Thread P M
then A=C(ic), i.e. > values in ic are the indices of corresponding unique value in C. They can > be recovered with the quick and dirty following loop: > > for i=1:length(a) > ia(i)=find(a(i)==C) > end > S. > > Le 16/10/2019 à 12:10, P M a écrit : > > [ans,ans,M

Re: [Scilab-users] convert matlab code to scilab

2019-10-16 Thread P M
)); I try to convert via: mask = matrix(Minstances_hat-1,size(B)); but no success. Am Mi., 16. Okt. 2019 um 11:50 Uhr schrieb Stéphane Mottelet < stephane.motte...@utc.fr>: > Hello > Le 16/10/2019 à 11:46, P M a écrit : > > Dear experts, > > trying to convert a matl

[Scilab-users] convert matlab code to scilab

2019-10-16 Thread P M
Dear experts, trying to convert a matlab code to scilab I come across following line: [~,~,Minstances_hat] = unique(B(:)); How to replace the "~" symbol? B is the blue channel of a RGB image...hence a m x n matrix of integers (type(B) = 8 ) Thank you, Philipp

Re: [Scilab-users] How to identify componants in a figure ?

2019-10-11 Thread P M
Hi, if you want to count how many axes-children there are in a figure, you may work with "tags". Quick-n-dirty example below. best regards, Philipp clc;clear(); // create the figuref = figure(); // first axesplot3d();a3d = gca();a3d.tag = 'axes'; // menumenu_1=uimenu(f,'label',

[Scilab-users] Scilab + neural Networks (CNN / FCNN)

2019-08-23 Thread P M
Dear experts, I am investigating if Scilab is capable to build a CNN or FCNN. So far I understood the ANN-Toolbox is not able to build these neural network types. Also the Neural-Network-Module does not seem to support CNN's or FCNN's. However it seems to be possible by using caffee together

Re: [Scilab-users] gui2bitmap 1.0 is released

2019-08-13 Thread P M
Ted, if one is able to execute following commands from Scilab: - GetActiveWindow - GetFocus What is the result? - a window handle to the active window - a handle to the window that has the keyboard focus I am no hardcore programmer, but to my understanding still there was no screenshot taken.

Re: [Scilab-users] gui2bitmap 1.2 is released

2019-08-09 Thread P M
Hi Samuel, I confirm: - test with Win10 Laptop - screen resolution 1920 x 1080 px - screen scale factor 100 & 125% using: gui2bitmap("setScale", 100); // 125 respectively gui2bitmap("setBorders", [%F %F %F]);gui2bitmap(f, pathName, %t) // with no borders left, bottom, right results in a

Re: [Scilab-users] How to print GUI window?

2019-08-06 Thread P M
beside the Images names, both Images are created with exact the same codesee attachment Note: The appearance of the borders in the Win7 Image. I guess it is the window style setting that leads to the difference. Am Di., 6. Aug. 2019 um 14:45 Uhr schrieb P M : > ..forgot a second Im

Re: [Scilab-users] How to print GUI window?

2019-08-06 Thread P M
..forgot a second Image Am Di., 6. Aug. 2019 um 14:45 Uhr schrieb P M : > nice, so we getting closer. > > I would blame win10 for the scaling... > > This is, because in win7 I do get the correct Image, when executing the > code I tested under win10. > > > &

Re: [Scilab-users] How to print GUI window?

2019-08-06 Thread P M
nice, so we getting closer. I would blame win10 for the scaling... This is, because in win7 I do get the correct Image, when executing the code I tested under win10. Am Di., 6. Aug. 2019 um 14:03 Uhr schrieb VTX1801 : > Philipp, > Your hint was the answer. > However, there is a

Re: [Scilab-users] How to print GUI window?

2019-08-06 Thread P M
ck to 100% and the image looks different still there are pixels around the GUI from the background, but at least the complete figure is screen shotted Am Di., 6. Aug. 2019 um 10:33 Uhr schrieb P M : > Hi Ted, > > I confirm the issue you describe with: > > - DELL Laptop > - Win 10

Re: [Scilab-users] How to print GUI window?

2019-08-05 Thread P M
Hi Ted, please confirm: - your screen is: 1920 x 1080 - The GUI position is 125,25 - The GUI size is 1300 x 780...including borders and menu bars so if: f = handle of your figure than: f.position = [125, 25 , 1300, 780] ?? - The resulting image from gui2bitmap shows the GUI

Re: [Scilab-users] gui2bitmap 1.0 is released

2019-08-05 Thread P M
: 650 x 400 px Am So., 4. Aug. 2019 um 22:22 Uhr schrieb P M : > After updating Atoms it works now...thanks. > > So here are some tests: > > Screen: 1280 x 1024 px > Graphic Card: NVIDIA GeForce 210: > View images with IrfanView. > > From the 1st example of gui2bitma

Re: [Scilab-users] gui2bitmap 1.0 is released

2019-08-04 Thread P M
lease from ATOMS. >> Either the issue is from my zipper (but i use the same for the 6.0 >> binary, and there is not >> this issue...!), or from the ATOMS server (that knows the absolute >> path when uploading >> the zip. This is the only explanation i see for now... But s

Re: [Scilab-users] gui2bitmap 1.0 is released

2019-08-03 Thread P M
Hallo Samuel, I know...old system, but still Win XP Scilab 5.5.2 - Install gui2ibtmap from atoms. copy paste the first example into the console gives follwing -->// Generate a nice GUI (from demos) -->exec("SCI/modules/gui/demos/uicontrol_plot3d.dem.sce",-1); -->// -->f = gcf();

Re: [Scilab-users] How to print GUI window?

2019-08-02 Thread P M
...to start with: I guess you try the gui2bitmap toolbox To answer your questions: You need to download & install IrfanView on your Laptop. Make sure that the IrfanView install path in your code is exactly as it is on your machine. Besides of this: You may already have IrfanView installed,

  1   2   >