Re: [Scilab-users] Get filename by script command

2024-01-22 Thread Jens Simon Strom
or script returns its file name as you requested: [filepath,filename]=get_absolute_file_path(); Best regards Stefan On 2024-01-18 11:42, Jens Simon Strom wrote: Hi, I look for a command which -- as part of a script -- returns a string containing the file name or full path name of the current script.

[Scilab-users] Get filename by script command

2024-01-18 Thread Jens Simon Strom
Hi, I look for a command which -- as part of a script -- returns a string containing the file name or full path name of the current script. uigetfile() seemed to be close but does something else. Regards Jens This email and any attachments are intended solely for the use of the individual

Re: [Scilab-users] Noise canceling with playsnd( )

2023-12-20 Thread Jens Simon Strom
unds right !-) First on the left, then on the right, finally both simultaneously. I looks like it is what is expected; isn’t it ? Denis De : users <mailto:users-boun...@lists.scilab.org> De la part de Jens Simon Strom Envoyé : mardi 19 décembre 2023 19:52 À : Users mailing list for Scila

[Scilab-users] Noise canceling with playsnd( )

2023-12-19 Thread Jens Simon Strom
Hallo Scilab friends, My question is at the end of the comment. fs=20050; t=0:1/fs:1; f=440; a=sin(2*%pi*f*t); // harmonic a_=asin(a); // distorted silence=zeros(1,length(a)); y=[a, silence, a; silence, a_, -a]; playsnd(y,fs); // The 1st section (channel 2 silent) and // the

[Scilab-users] Header in txt file for read command

2023-05-25 Thread Jens Simon Strom
Hi Scilab insiders, My minimum example text file has 5 lines: These data are used in a.sce and also in b.sce 0 1 1 2 2 3 The read command shall only read the numerical data as a matrix, ignoring the two header lines. How can I do that? Regards Jens This email and any attachments are

Re: [Scilab-users] Uniform distribution of non equidistant integers

2022-08-30 Thread Jens Simon Strom
Thank you all for your valuable and quick help! [1 5 9](grand(1,1,"uin",1,3)) and sample(1, [1 5 9]) are now  my favorites. Regards Jens --- Am 30.08.2022 um 01:22 schrieb Federico Miyara: Samuel, or, faster, [1 5

[Scilab-users] Uniform distribution of non equidistant integers

2022-08-29 Thread Jens Simon Strom
Hallo, to get a random number from an uniform distribution of e.g. 1, 5 and 9 I can use x=grand(1,1, "uin", 1, 3); if x==2; x=5; elseif x==3 x=9; end xI there a more straightforward way? Regards Jens ___ users mailing list users@lists.scilab.org

[Scilab-users] Problem with ticks

2022-08-03 Thread Jens Simon Strom
Hi, The code below works in version 6.1.0. But after replacing the ticks configuration by the commented one it fails. What is wrong there? Regards Jens T=15:200; P=9600../T; xdel() plot(T,P) ca=gca(); ca.grid=[1 1]; xtitle('$P=\frac{9600}{T}$'); t=ca.title; t.font_size=5;

Re: [Scilab-users] Getting the variable name used for a function input argument

2021-12-06 Thread Jens Simon Strom
Hi Samuel, Your solution is quite sophisticated. To me it was confusing to call a function without the input being bracketed. And on top of this, that a variable of type /constant/ is accepted as a /string/ within the function. Scilab seems to be more flexible than I would dare to imagine

Re: [Scilab-users] Getting the variable name used for a function input argument

2021-12-04 Thread Jens Simon Strom
em (https://xyproblem.info/) and that Jens should explain the whole story. S. Regards, Federico Miyara On 23/11/2021 17:18, Jens Simon Strom wrote: Hi Scilab friends, Given a numeric variable like xNum as an input argument of a function call, how can I produce the variable name string &quo

[Scilab-users] Getting the variable name used for a function input argument

2021-11-23 Thread Jens Simon Strom
Hi Scilab friends, Given a numeric variable like xNum as an input argument of a function call, how can I produce the variable name string "xNum" within the function? Example: function [name,y]=foo(x)    name=???    y=x^2 endfunction xNum=123. [name,y]=foo(xNum) The result for name should be

[Scilab-users] % instead of percent

2021-07-14 Thread Jens Simon Strom
Hallo Scilab family, How can I replace /percen/t by the symbol % in the command printf('Change: %5.1f percent \n',5.0) ? I use  Version 6.1.0 Kind regards Jens ___ users mailing list users@lists.scilab.org

[Scilab-users] xtitle hides figure cintent

2020-03-16 Thread Jens Simon Strom
Hallo Scilab family, After two decades of using Scilab I was not able to fix the following problem. fig=figure('visible','off'); plot(0:5,0:5) //xtitle('xtitle hides the figure content.') set(fig,'visible','on'); The script does what I expect. However when uncommenting xtitle the figure is

[Scilab-users] Polyline markers cycling through selected colors

2020-02-12 Thread Jens Simon Strom
Hallo Scilab experts, The script below should color the markers in a cyclic manner. It does - however only temporary! What should be changed? I would like to keep the plot command off the loop. Kind regards Jens xdel() x=1:15; y=x; COLO=[5 3 2 1]//selction of color IDs

[Scilab-users] Deletion of console content

2019-09-25 Thread Jens Simon Strom
Hello Scilab experts, I have two questions: * 1. After closing Scilab, is the content of what has appeared on the console during the session still accessible for computer experts? In other words: Is the console content securely deleted? * 2. After editing and executing a script and

[Scilab-users] Exclamation mark in variables

2019-08-16 Thread Jens Simon Strom
Hallo Scilab friends, can anyone roughly predict when e. g. "*!x*" will become a legal variable name again? Kind regards Jens ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

[Scilab-users] Font size of console printings on paper

2019-07-29 Thread Jens Simon Strom
Hallo Scilab community, How do you control  the font size, when printing the console content to paper. My changes in the console file menu lead to nothing. I aim at  smaller characters. Kiond regards Jens ___ users mailing list

[Scilab-users] rand("seed",s)

2019-04-29 Thread Jens Simon Strom
Hallo Scilab équipe, In my application it is vital   -  in addition to the normal focus when using seeds -  that /different/ seeds in rand("seed",seed) produce /different/ random number series. (1) Is that the case? I am aware that  seed has to be a non negative integer. (2) Are there any

Re: [Scilab-users] Wanted: Command like regexp accepting a string vector for haystack

2018-12-07 Thread Jens Simon Strom
Am 06.12.2018 14:51, schrieb Jens Simon Strom: Thanks Samuel, That works fine. Regards Jens -- Am 05.12.2018 21:50, schrieb Samuel

Re: [Scilab-users] Inserting %nan at given positions into a vector

2018-12-06 Thread Jens Simon Strom
Hallo Samuel, Tanquam ex ungue leonem! Great! Kind regards Jens - Am 05.12.2018 22:12, schrieb Samuel Gougeon: Le 05/12/2018 à 13:01, Jens Simon Strom a écrit : Hallo Scilab experts, Given is a numeric vector x of length n

Re: [Scilab-users] Wanted: Command like regexp accepting a string vector for haystack

2018-12-06 Thread Jens Simon Strom
Thanks Samuel, That works fine. Regards Jens -- Am 05.12.2018 21:50, schrieb Samuel Gougeon: Hello Jens, Le 05/12/2018 à 17:47, Jens Simon Strom a écrit : Hallo Scilab experts, I am looking for a command

[Scilab-users] Wanted: Command like regexp accepting a string vector for haystack

2018-12-05 Thread Jens Simon Strom
Hallo Scilab experts, I am looking for a command to *return the match (or position) of a character string (=needle) in a **vector**of strings (=haystack), where needle may be a regular expression* Needle occurs only once in any line of haystack. That may ease the problem. [start, final,

[Scilab-users] Inserting %nan at given positions into a vector

2018-12-05 Thread Jens Simon Strom
Hallo Scilab experts, Given is a numeric vector x of length n and an index vector i with max(i)=n. I want to insert a %nan after every x(i). Example x=[11:20] i=[2 5 8] Required result: y=[11 12 %nan 13 14 15 %nan 16 17 18 %nan 19 20] How would you proceed so that it works fast for n>50

Re: [Scilab-users] Punch a hole into a facet

2018-10-03 Thread Jens Simon Strom
heers Jens -- Am 02.10.2018 21:27, schrieb Samuel Gougeon: Le 01/10/2018 à 16:35, Jens Simon Strom a écrit : Thanks Samuel, %nan works with surf, not with plot3d. The latter is attractive because it can handle polygons - but unfortunately

Re: [Scilab-users] Punch a hole into a facet

2018-10-01 Thread Jens Simon Strom
lines and facets going through it are skipped/not rendered. HTH Samuel Le 30/09/2018 à 23:35, Jens Simon Strom a écrit : Hallo Scilab friends, Is there a way to punch a*peak through* hole into a rectangle? The result below looks like a hole but it is just white intransparent color. xdel

[Scilab-users] Punch a hole into a facet

2018-09-30 Thread Jens Simon Strom
Hallo Scilab friends, Is there a way to punch a*peak through* hole into a rectangle? The result below looks like a hole but it is just white intransparent color. xdel(); xf=[1;-1;-1;1]; yf=[1;1;-1;-1]; zf=[0;0;0;0]; plot3d(xf,yf,list(zf,5))//Facet ce=gce(); ce.hiddencolor = 5;

[Scilab-users] Punch a hole into a facet

2018-09-30 Thread Jens Simon Strom
Hallo Scilab friends, Is there a way to punch a*peak through* hole into a rectangle? The result below looks like a hole but it is just white intransparent color. xdel(); xf=[1;-1;-1;1]; yf=[1;1;-1;-1]; zf=[0;0;0;0]; plot3d(xf,yf,list(zf,5))//Facet ce=gce(); ce.hiddencolor = 5;

[Scilab-users] Notches in thick polyline

2018-09-26 Thread Jens Simon Strom
Hello Scilab afficionados, Can the notches be avoided? Cheers Jens phi=0:360; param3d(cosd(phi),zeros(phi),sind(phi)) ce=gce(); ce.thickness=20; ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] ode with algebraic constraint

2018-08-14 Thread Jens Simon Strom
Hallo Rafael, This mail arrived properly! To my taste the equation of motion of a spherical pendulum (which we are actually treating here) is much easier to understand in the way you presented it than the one in spherical coordinates filling the textbooks. Perhaps Lagrange and Hamilton are

Re: [Scilab-users] ode with algebraic constraint

2018-08-14 Thread Jens Simon Strom
Hallo Rafael, Sorry for my delayed answer! Your mail and your next one ("Bitte") accidently have gone into my recycle bin - I still have to find out why because in the case of your mail this false allocation is really annoying. Your approach seems to be correct. I have done a couple of

[Scilab-users] ode with algebraic constraint

2018-08-10 Thread Jens Simon Strom
*Hallo,** **To solve the equation of motion for a mass point m in a constant force field f=[fx; fy; fz] one can use ode(...) with the function** ** **function dz=EoM(t, z, m,f)//z=[x; y; z; vx; vy; vz] (6 x 1)** ** dz(1:3)=z(4:6)** ** dz(4:6)=f/m** **endfunction** ** **If the motion shall

Re: [Scilab-users] Scilab Cloud App

2018-07-01 Thread Jens Simon Strom
cript does not allow that. Technically speaking, this is not a web applet technology (Scilab running within the browser) but rather a web service technology (Scilab running within the cloud/servers). Thanks, -- Clément Le samedi 23 juin

[Scilab-users] Scilab Cloud App

2018-06-23 Thread Jens Simon Strom
Hallo, I happended to see the page Scilab Cloud App , and was attracted by the slogan "Don't waste your time in learning HTML/JS". I know web applets being availabe to the public via an URL and allowing some mathematical calculations after some

Re: [Scilab-users] Fill plot line properties into a list

2018-06-03 Thread Jens Simon Strom
Great,Samuel! Now my script looks much better. Thanks with kind regards Jens - Am 03.06.2018 11:26, schrieb Samuel Gougeon: Le 02/06/2018 à 22:31, Jens Simon Strom a écrit : Hello Scilab intimates, The lines Cspec=list

Re: [Scilab-users] Fill plot line properties into a list

2018-06-03 Thread Jens Simon Strom
Hi Rafael, Thanks! Not as simple as I hoped, but it works. Regards Jens -- Am 03.06.2018 01:33, schrieb Rafael Guerra: Hi Jen, Several of the arguments you would like to

[Scilab-users] Fill plot line properties into a list

2018-06-02 Thread Jens Simon Strom
Hello Scilab intimates, The lines Cspec=list('Color','r','thickness',5); plot(1:5,Cspec(:)) are functional, but the lines Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); plot([1:5],Cspec(:)) are not. What has to be changed? I would like to

Re: [Scilab-users] Exclamation mark in variable names

2018-05-27 Thread Jens Simon Strom
Hi, The `!` usage to recall a previous command is discussed here in detail. I don't miss it. My question was different. How about implementing again the "!" as a valid character in variable names as documented? How long is the reasonable response time for fixing the reported bug? Regards

[Scilab-users] Exclamation mark in variable names

2018-05-19 Thread Jens Simon Strom
Hallo Scilab intimates, Is *!a* a valid variable name in the latest version of Scilab? Vers. 6.0.1 sees an*Error: Unexpected token '!'* Kind regards Jens ___ users mailing list users@lists.scilab.org

Re: [Scilab-users] Print string matrix on console without exclamation marks

2017-10-05 Thread Jens Simon Strom
Thanks Stefan, Simpler than I thought! Regards Jens - Am 05.10.2017 10:55, schrieb Stefan Du Rietz: Hello Jens, -->M = ['a','b';'c','d']; -->mprintf("%s %s\n", M) a b c d Regards Stefan On 2017-10-05 10:41, Jens S

[Scilab-users] Print string matrix on console without exclamation marks

2017-10-05 Thread Jens Simon Strom
Hi Scilab experts, How can I print a string matrix on the console without leading and trailing exlamation marks (!)? ['a','b';'c','d'] should simply be returned as a b c d Kind regards Jens ___ users mailing list users@lists.scilab.org

Re: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count

2017-06-08 Thread Jens Simon Strom
23:09, schrieb Samuel Gougeon: Hello Jens, Le 07/06/2017 à 09:49, Jens Simon Strom a écrit : Hallo Samuel, So I better count with something like this: wpt_pos=grep(XmlDump,'<wpt'); wpt_n=length(wpt_pos); Thanks again, Jens This is a useful workaround. May i suggest adding a space to '<wpt'

Re: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count

2017-06-07 Thread Jens Simon Strom
Hallo Samuel, So I better count with something like this: wpt_pos=grep(XmlDump,'<wpt'); wpt_n=length(wpt_pos); Thanks again, Jens -- Am 06.06.2017 22:25, schrieb Samuel Gougeon: Hello Jens, Le 05/06/2017 à 02:12, Jens Simon Strom a écrit :

[Scilab-users] xmlXPath with count

2017-06-04 Thread Jens Simon Strom
Hi, Ex. 0 and 2 are o.k.. But what I want is Ex. 1. What is wrong there? //Ex. 0 doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml;); // Count the nodes with name equal to"note" xp0 = xmlXPath(doc, "count(//note)") xmlDelete(doc) //Ex. 1 t=[''+..

Re: [Scilab-users] Extracting numerical an text data from gmx files

2017-05-23 Thread Jens Simon Strom
endfunction Thanks again for your help. Regards, Jens ______ Am 22.05.2017 08:19, schrieb Jens Simon Strom: Hello Samuel, I tried the script doc=xmlRead("G:/Daten/Navigation/gpxArchiv/testfile.gpx") recent =getPrefere

Re: [Scilab-users] Extracting numerical an text data from gmx files

2017-05-22 Thread Jens Simon Strom
e called by : exec('G:\Daten\Navigation\eTrex10_GPX_Generator.sce', -1) What am I doing wrong here? Regards, Jens --------- Am 22.05.2017 01:31, schrieb Jens Simon Strom: Great, I will try this soon. Regards, Jens

[Scilab-users] Extracting numerical an text data from gmx files

2017-05-21 Thread Jens Simon Strom
Hi, I want to extract lat, lon and -name from gmx files. See the following reduced example: - xmlns="http://www.topografix.com/GPX/1/1; creator="MEDIA-TOURS"

Re: [Scilab-users] surf and plot3d

2017-05-15 Thread Jens Simon Strom
...@lists.scilab.org] *De la part de* Jens Simon Strom *Envoyé :* dimanche 14 mai 2017 18:51 *À :* International users mailing list for Scilab. <users@lists.scilab.org> *Objet :* [Scilab-users] surf and plot3d Hi, Please check the graph below: x=[0 1]; y=[0 2]; [X,Y]=_ndgrid_(x,y) Z=X+2*

[Scilab-users] surf and plot3d

2017-05-14 Thread Jens Simon Strom
Hi, Please check the graph below: x=[0 1]; y=[0 2]; [X,Y]=ndgrid(x,y) Z=X+2*Y xdel(); surf(x,y,Z) param3d(X,Y,Z) ce=gce();ce.line_mode="off";ce.mark_mode = "on";ce.mark_size = 10 ca=gca(); ca.rotation_angles=[65 290]; The facet corners do not coincide with the marks in

[Scilab-users] Scilab 6, Exclamation mark in variable names

2017-04-08 Thread Jens Simon Strom
Hi, The character "!" in variable names is parsed as "unexpected token" and terminates execution. Will this be corrected to comply with the documentation saying "Names of variables and functions must begin with a letter or one of the following special characters '|%|', '|_|', '|#|', '|!|',

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

2017-03-24 Thread Jens Simon Strom
--- Am 23.03.2017 09:51, schrieb Jan Åge Langeland: On 23.03.2017 00:25, Jens Simon Strom wrote: The test data I posted had been preprocessed manually by equalizing the spaces between the colums to a single

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

2017-03-22 Thread Jens Simon Strom
-- Am 22.03.2017 23:55, schrieb Jan Åge Langeland: On 22.03.2017 14:49, Jens Simon Strom wrote: Would you get toBAThour andBATminute the same way? I would probably have done it in a more complicated way:-), but I like this solution

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

2017-03-22 Thread Jens Simon Strom
Thanks Jan Åge, This is my further detailation of your approach: M=csvRead('G:\Daten\ScilabFun\MICAfileForMFSCANFreading.txt',.. " ",[],"string",[],[],[],7); Year=strtod(M(1:4,1)') Month=M(1:4,2)' Day=strtod(M(1:4,3)') BAThour =

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

2017-03-22 Thread Jens Simon Strom
Hi, I would like to read 5 colum vectors from the example txt-file as quoted between the dotted lines below. The desired result should be: Y=[2017;2017;2017;2017] M=['May';'June';'Jul';'Aug'] D=[26.;25.;25.;24.] BATh=[0.;%nan;1.;2.] //hour of begin of astronomical twilight.

Re: [Scilab-users] Same color for contour isolines

2017-03-18 Thread Jens Simon Strom
18.03.2017 17:14, schrieb Samuel Gougeon: Hello Jens, Le 16/03/2017 à 11:32, Jens Simon Strom a écrit : Hi, How would you avoid the loop in the following example? n2_=-1000:200:1000; nS_=-1000:200:1000; [N2,NS]=ndgrid(n2_,nS_); N1=2.6*N2+(3.6)*NS; xdel(); contour(n2_,nS_,N1/100,[-60:10:60]) ca

[Scilab-users] Same color for contour isolines

2017-03-16 Thread Jens Simon Strom
Hi, How would you avoid the loop in the following example? n2_=-1000:200:1000; nS_=-1000:200:1000; [N2,NS]=ndgrid(n2_,nS_); N1=2.6*N2+(3.6)*NS; xdel(); contour(n2_,nS_,N1/100,[-60:10:60]) ca=gca(); Comp=ca.children; //colum matrix of handles: (Compound) nComp=length(Comp); for k=1:nComp

Re: [Scilab-users] ?==?utf-8?q? Plots for scientific papers

2017-03-09 Thread Jens Simon Strom
Hallo Pierre, prettyfy is great. It will save many people a lot of time and trouble. I do not often use a legend. Leaving it out produces an error and using an empty one looks ugly. So that's my suggestion. Kind regards Jens

Re: [Scilab-users] Reading numericaldata from txt file containing headlines

2017-03-03 Thread Jens Simon Strom
e","r"); header=mgetl(u,4) data=mfscanf(-1,u,"%f %f\n") Le 03/03/2017 à 13:09, Jens Simon Strom a écrit : Hi, with x=read(file,-1,2) I can read the data from a text file containing e. g. 1 2.12 First line of text file 2.12 3.2 3 2 4 2 5 2. 6 2 7 2

Re: [Scilab-users] Reading numericaldata from txt file containing headlines

2017-03-03 Thread Jens Simon Strom
. https://help.scilab.org/docs/6.0.0/en_US/csvRead.html Is that what you are looking for ? -- Amanda Osvaldo On Fri, 2017-03-03 at 13:09 +0100, Jens Simon Strom wrote: Hi, with x=read(file,-1,2) I can read the data from a text file containing e. g. 1 2.12 First line of text file 2.12 3.2 3 2

[Scilab-users] Reading numericaldata from txt file containing headlines

2017-03-03 Thread Jens Simon Strom
Hi, with x=read(file,-1,2) I can read the data from a text file containing e. g. 1 2.12 First line of text file 2.12 3.2 3 2 4 2 5 2. 6 2 7 2 Last line empty What can I do to read only the numbers from a text file like Header 1 First line of text file Header 2

Re: [Scilab-users] surf with isoview

2017-01-07 Thread Jens Simon Strom
f"; h.isoview="on"; //END OF CODE Result seems isometric enough to me. Regards, Rafael -Original Message- From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Jens Simon Strom Sent: Friday, January 06, 2017 11:07 PM To: International users mailing list for

Re: [Scilab-users] Using uimenue to change rotation_angles

2016-12-22 Thread Jens Simon Strom
--------- Am 18.12.2016 18:04, schrieb Jens Simon Strom: Hi Samuel, what I really do is this: xdel() figure_size=[1800 900]; cf=figure(1,'position',[0 0 figure_size],'background',8,'immediate_drawing','off','visible','off');

Re: [Scilab-users] xclick with output argument cdmenu

2016-12-20 Thread Jens Simon Strom
-plotprofile -edit_curv -getcolor Not sure how easy they are to understand but you may want to let us know. Rgds, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *Jens Simon Strom *Sent:* Monday, December 19, 2016 12:21 PM *To:* International users mailing list for

Re: [Scilab-users] Using uimenue to change rotation_angles

2016-12-18 Thread Jens Simon Strom
(1)=80"); HTH Samuel Le 18/12/2016 11:36, Jens Simon Strom a écrit : Hi, I try to use uimenue() in a minimal example to toggle the aspect of a 3D curve between two values - without succes. Here is my defective script. //BEGIN OF UNFUNCTIONAL CODE xdel() figure(1) param3d([0 1 1 1],[0 0 1 1

Re: [Scilab-users] Using uimenue to change rotation_angles

2016-12-18 Thread Jens Simon Strom
= uimenu(f,'label', 'quit', 'callback', "t=%f"); t=%t; whilet==%t sleep(300);// Adjust to user speed printf("alpha=%i\r", alpha) ca.rotation_angles(1)= alpha; end close(f) //END OF CODE Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf O

[Scilab-users] Using uimenue to change rotation_angles

2016-12-18 Thread Jens Simon Strom
Hi, I try to use uimenue() in a minimal example to toggle the aspect of a 3D curve between two values - without succes. Here is my defective script. //BEGIN OF UNFUNCTIONAL CODE xdel() figure(1) param3d([0 1 1 1],[0 0 1 1],[0 0 0 1]); ce=gce(); ce.thickness=10; ca=gca();

[Scilab-users] Unexpected occurrence of identity matrix 'eye'

2016-12-12 Thread Jens Simon Strom
Hi Scilab experts, When executing a certain script I get the console output ans = eye * 1. However I do not find a line in the *.sce and called *.sci which - to my knowledge - could produce this result. What can trigger it? Where would you search? Apart from that the script

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

2016-12-10 Thread Jens Simon Strom
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 watch twinkling.') x = [0 1 0

[Scilab-users] Stepping through a script with graphics

2016-11-30 Thread Jens Simon Strom
Hi, I would like to share a function with the community which supports stepping through a script: function!XCLICK()//Stops a script and offers restart options by pressing a key //Helpful for presenting a sequence of graphics or print results step-by-step //Call: !XCLICK(), always

Re: [Scilab-users] xtitle seems to suppress plot

2016-11-28 Thread Jens Simon Strom
--- Am 28.11.2016 01:56, schrieb Rafael Guerra: Works alright every time on Scilab 5.5.2 64-bit Win7 but plot background is grey -Original Message- From: users [mailto:users-boun...@lists.scilab.org] On B

Re: [Scilab-users] xtitle seems to suppress plot

2016-11-27 Thread Jens Simon Strom
Am 27.11.2016 19:41, schrieb Jens Simon Strom: I use scilab-5.5.2. I just tried 5.4.0. There the script works. Cheers Jens -- Am 27.11.2016 19:00

Re: [Scilab-users] xtitle seems to suppress plot

2016-11-27 Thread Jens Simon Strom
I use scilab-5.5.2. I just tried 5.4.0. There the script works. Cheers Jens -- Am 27.11.2016 19:00, schrieb Tim Wescott: On Sun, 2016-11-27 at 18:06 +0100, Jens Simon Strom wrote: Hallo

[Scilab-users] xtitle seems to suppress plot

2016-11-27 Thread Jens Simon Strom
Hallo, Instead of drawlater/drawnow I prefer the below approach for starting a figure because no windows flicker temporarily on the screen. This works fine exept when 'xtitle' is used. Inspecting the figure's, axes', compound's and polyline's data I get no hint that the axes should be

Re: [Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread Jens Simon Strom
that Samuel is objecting to you starting a new topic by replying to an existing email and then changing its title and subject. When you do that, you end up with a bunch of different topics all in one thread. So -- for a new topic, start a new email. On Mon, 2016-11-21 at 23:10 +0100, Jens Simon Strom

Re: [Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread Jens Simon Strom
hing I will request a clue under this subject and hope for pardon. Regards Jens - Am 21.11.2016 20:46, schrieb Samuel Gougeon: Le 21/11/2016 18:10, Jens Simon Strom a écrit : Hallo

Re: [Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread Jens Simon Strom
() f.tag = "plot2d() example"; fc = copy(f); // Creates (and render) the copy fc.tag=="plot2d() example" HTH Samuel Gougeon - Mail original ----- De: "Jens Simon Strom" À: users@lists.scilab.org Envoyé: Lundi 21 Novembre 2016 14:32:42 Objet: [Scilab-users] Understandi

[Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread Jens Simon Strom
Hallo, The script below is to make f2 a copy of f1. However f2 is/empty/ although its axes, compound, and polyline data look as expected. (Version 5.5.2) xdel();xdel(); f1=figure(1); plot(1:3,1:3) ca1=gca()//axes with one compound child // f2=figure(2); ca2=gca()//axes without children

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-19 Thread Jens Simon Strom
:,1:i)); xend(); end / END OF CODE Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *Jens Simon Strom *Sent:* Saturday, November 19, 2016 2:23 PM *To:* Users mailing list for Scilab <users@lists.scilab.org> *Subject:* Re: [Scilab-users] Exporting g

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-19 Thread Jens Simon Strom
iver("JPG"); xdel() y=[]; for i=1:3 str = "test" + string(i) + ".jpg"; xinit(str); x=[0 1]; y(i,:)= i*x; for j=1:i plot(x,y(j,:)); end xend(); end / END OF CODE Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *Jens Simo

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-19 Thread Jens Simon Strom
est" + string(i) + ".jpg"; xinit(str); x=[0 1]; plot(x,i*x) f = gcf(); xend(); winopen(str); halt() end // END OF CODE PS: all 3 files look good in IrfanView 64-bits. Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *Jens Simon Stro

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-18 Thread Jens Simon Strom
It is 5.5.2. Thanks for responding so fast! Jens -- Am 18.11.2016 21:42, schrieb Samuel Gougeon: Le 18/11/2016 20:43, Jens Simon Strom a écrit : Correction: The first phrase should read: In the following script I would like to save the sequential

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-18 Thread Jens Simon Strom
Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs. Am 18.11.2016 20:30, schrieb Jens Simon Strom: Hi, In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt

[Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-18 Thread Jens Simon Strom
Hi, In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt the xinit/xend workaround (for xs2jpg) to this case. After execution I would like to have three JPGs containing one, two and three lines . xdel() for i=1:3 x=[0 1];

Re: [Scilab-users] pinkification of xs2jpg exported images

2016-11-18 Thread Jens Simon Strom
It's not the trivial cause. xend and winopen test.jpg were in two separate lines in my test. I tried again today and Scilab 5.5.2 freezed again. The only way to get out is Ctrl+Alt+Del. However after deleting an already existing figure on the screen by xdel() the workaround works. I have

Re: [Scilab-users] pinkification of xs2jpg exported images

2016-11-17 Thread Jens Simon Strom
17/11/2016 20:30, Jens Simon Strom a écrit : Hi , After exporting a figure (produced with plot3d and param3d) I find an ugly pink color behind the object when I open the image by Irfanview. On screen there is white as required. I am not talking about the figure property 'background

[Scilab-users] pinkification of xs2jpg exported images

2016-11-17 Thread Jens Simon Strom
Hi , After exporting a figure (produced with plot3d and param3d) I find an ugly pink color behind the object when I open the image by Irfanview. On screen there is white as required. I am not talking about the figure property 'background'. That is well contolled. How can I change pink (close

Re: [Scilab-users] Facet color in Vers. 5.5.2

2016-11-12 Thread Jens Simon Strom
length n1 and n2, and z with size n1 x n2): clear;_clf_(); plot3d([01],[01],[00;00]) ce=_gce_(); ce.color_flag=0; ce.color_mode=5;/// 5 = red; 1 = black/ Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *Jens Simon Strom *Sent:* Saturday, November 12,

Re: [Scilab-users] Converting string months to month numbers

2016-10-21 Thread Jens Simon Strom
-- Am 21.10.2016 19:24, schrieb Samuel Gougeon: Le 20/10/2016 11:32, Jens Simon Strom a écrit : Hallo, Given the string vector M=['Jan','Feb','Mar','Apr','May','Jun','Jul

Re: [Scilab-users] Converting string months to month numbers

2016-10-21 Thread Jens Simon Strom
ths to month numbers Hi Jens, grep does something like what you want. -->[r,w]=grep(Ms,M); -->matrix(w,size(Ms)) ans = 12.4. 2. 12. 6. 7. Not sure why grep produces a vector when searching for a matrix, but it seems that way. HTH, Mike. On 20 October 2016 at

Re: [Scilab-users] Converting string months to month numbers

2016-10-20 Thread Jens Simon Strom
4. 2. 12. 6. 7. Not sure why grep produces a vector when searching for a matrix, but it seems that way. HTH, Mike. On 20 October 2016 at 10:32, Jens Simon Strom <mailto:j.s.st...@hslmg.de> wrote: Hallo, Given the string vector M=['Jan','Feb','Mar','Apr','May','Jun','Jul

Re: [Scilab-users] Converting string months to month numbers

2016-10-20 Thread Jens Simon Strom
w,size(Ms)) ans = 12.4. 2. 12. 6. 7. Not sure why grep produces a vector when searching for a matrix, but it seems that way. HTH, Mike. On 20 October 2016 at 10:32, Jens Simon Strom <j.s.st...@hslmg.de <mailto:j.s.st...@hslmg.de>> wrote: Hallo,

[Scilab-users] Converting string months to month numbers

2016-10-20 Thread Jens Simon Strom
Hallo, Given the string vector M=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] which implicitly maps the string representation of the months to their number representataion I would like to map any string matrix containing elements of M into a numercal matrix showing

Re: [Scilab-users] Fwd: Re: Fwd: plotxxyyy

2016-10-13 Thread Jens Simon Strom
the measurement number. Kind regards Jens ------- Am 12.10.2016 18:16, schrieb Jens Simon Strom: Hallo Frieder, You can independently combine stack and skip of the measurement numbers by the code below. //Plotting measurement numbers with optiona

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-12 Thread Jens Simon Strom
Code is great for learningn anyway. Cheers Frieder On 2016-10-12 11:48, Jens Simon Strom wrote: Hello Frieder, Your plots look better now. You can avoid overlapping of measurement numbers by sawtooth stacking them. See example code below. xdel(); //Generating dummy measurements x,y dx=0.5:50; x=

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-12 Thread Jens Simon Strom
the feedback and help. It's really great. I used the idea of Jens Simon Strom combined with some help from last week: //Datensätze x1 = (A(:,1) - A(1,1)) * 24 * 3600; y1 = A(:,y_1); y2 = A(:,y_2); y3 = A(:,y_3); drawlater() subplot(3, 1, 1) co = color("green"); plot2d(x1

Re: [Scilab-users] RE(2): plotxxyyy

2016-10-11 Thread Jens Simon Strom
Hi Frieder, Here comes a different approach! By the nature of your non equidistant measuremet times there may be point clusters - difficult to separate. The idea is to plot the measurement number stacked on a sawtooth curve, thus separating them and render them readable. This is a

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-11 Thread Jens Simon Strom
graph is nicely placed in plotted area // Axis y3 a3=newaxes(); c=color("red"); plot2d(x3,y3,style = c); a3.font_color=c; a3.foreground=c; a3.filled="off"; a3.x_location="bottom"; a3.y_location="left"; a3.data_bounds = [0,1;10,4]; a3.margins = [0.

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-06 Thread Jens Simon Strom
*Edit in #3* Am 06.10.2016 18:20, schrieb Jens Simon Strom: Hallo Frieder, You ask many questions in one post. 1: You just divide the (numerical) time interval into an adequate number of points (which can be neatly accommodated) with linspace or ':' and plot the corresponding time text

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-06 Thread Jens Simon Strom
(1)="off"; // Masking the x axis (useless overlay) na.y_location="right"; // Y axis on the right side na.children(1).children(1).thickness=2; // Curve thickness //Secound x axis, by Frieder Nikolaisen supported by Jens Simon Strom via S

Re: [Scilab-users] Scilab control after an impossible calculation

2016-10-06 Thread Jens Simon Strom
Try errcatch(). Am 06.10.2016 10:51, schrieb paul.carr...@free.fr: Hi All I'm using Scilab as the interface between my optimizer and my finite element solver(s) and sometimes Scilab stops because of unexpected and

Re: [Scilab-users] [EXTERNAL] !--error 21

2016-10-06 Thread Jens Simon Strom
Hallo Frieder, insert the line disp(''), c=c,sizeA=size(A) before the problem line if A(c-1,3)==0 then and you will see what happens there. Regards Jens --- Am 06.10.2016 08:29, schrieb Frieder Nikolaisen: With the real Code, it's

  1   2   >