[Scilab-users] adding a %nan entry to an xlssheet(Mlist) type of variable

2019-02-23 Thread christophk
I have A, a 344x1 size xlssheet(Mlist). A(1:100) consists of double entries A(101:$) consists of string entries. I want to add a new line to that mlist that contains the "%nan" entry for the first row: When I do the following: A.text = ["";A.text]; A.value =[%nan;A.value]; then A(1) returns an emp

[Scilab-users] adding a %nan entry to an xlssheet(Mlist) type of variable

2019-02-19 Thread christophk
Hi, I have A, a 344x1 size xlssheet(Mlist). A(1:100) consists of double entries A(101:$) consists of string entries. I want to add a new line to that mlist that contains the "%nan" entry for the first row: When I do the following: A.text = ["";A.text]; A.value =[%nan;A.value]; then A(1) returns a

Re: [Scilab-users] problems with "mtlb_dir" variable when porting scilab 5.6 code to scilab 6.0

2017-08-03 Thread christophk
Just realized I used the wrong function name in the subject line. It's supposed to be "mtlb_dir" instead of "mtl_mode". Sorry for the confusion. Is there anyone out there that can comment on the error that Scilab throws in my code example? -- View this message in context: http://mailinglists.s

[Scilab-users] problems with "mtlb_mode" variable when porting scilab 5.6 code to scilab 6.0

2017-07-13 Thread christophk
Hi there, I used to program in a matlab environment and made a small script some time ago that handles multiple files using "mtlb_dir". I am dealing with Excel files and found out along the way that Scilab 5.6 couldn't handle to read the new xlsx-format. (not sure whether that changed with the upd

Re: [Scilab-users] {EXT} tweaking the appearance of error bars created by errbar()

2016-12-16 Thread christophk
Awesome - thanks Christophe! :-) If anyone knows how I can add some T-stops to the errorbars please let me know. Perhaps there is an atoms package that takes care of this? Without the vertical bars on either side of the error bars - the graph looks kind of weird to me. -- View this message in co

[Scilab-users] tweaking the appearance of error bars created by errbar()

2016-12-16 Thread christophk
So my question is simple, how do I change the appearance of error bars that are created with the errbar() command? I want to access its line thickness, its line color and most of all I want to add horizontal lines to the upper and lower end of the error bars to mark their end. I did not see that

[Scilab-users] converting a variable name into a string

2016-12-06 Thread christophk
Ok here is another question for the Scilab experts around. Is there a way to convert the name of a variable into a string in Scilab? Lets say, I have: //START OF CODE s = 2; //then: string(s) // returns "2" //is there a function f with f(s) == "s" ?? //END OF CODE Searched the web, but could on

Re: [Scilab-users] How to use a string variable as a childname in a structure?

2016-12-02 Thread christophk
Dear Rafael and Samuel, this is truly amazing! I never thought it would be that easy. I guess that this would allow even for dynamic variable allocation. Finally I can generalize some repetitive code into functions that do mostly the same thing but on different fieldnames! Thank you so much - th

[Scilab-users] How to use a string variable as a childname in a structure?

2016-12-01 Thread christophk
Hi there, is there a way to use a string variable during a children-call in a scilab structure? Here is an example for what i want to do: function myvalue = getchild(myparent,mychild) //this function doesn't work and is just meant to show the idea of what I want to do: //"mychild" is a str

Re: [Scilab-users] moving axis ticks around orthogonally to their axes?

2016-11-19 Thread christophk
"So what about this?...see attachment." It's beautiful - how did you do this? -- View this message in context: http://mailinglists.scilab.org/Re-moving-axis-ticks-around-orthogonally-to-their-axes-tp4035009p4035043.html Sent from the Scilab users - Mailing Lists Archives mailing list archive

Re: [Scilab-users] {EXT} Re: moving axis ticks around orthogonally to their axes?

2016-11-18 Thread christophk
Unfortunately by.parent.thickness=1.5; has the same effect as a.thickness=1.5; It does not change the thickness of the axis drawn by "drawaxis". I'm beginning to think that there probably is not easy way to change the thickness of axes created by "drawaxis". Perhaps there are other ways of addi

Re: [Scilab-users] moving axis ticks around orthogonally to their axes?

2016-11-17 Thread christophk
Hey Christophe, that was my first guess too, but it doesn't work because drawaxis does not have a "thickness" parameter, see: https://help.scilab.org/docs/5.3.3/en_US/drawaxis.html -- View this message in context: http://mailinglists.scilab.org/Re-moving-axis-ticks-around-orthogonally-to-their

Re: [Scilab-users] moving axis ticks around orthogonally to their axes?

2016-11-16 Thread christophk
Hello again, thanks all for your feedback - I managed to come a long way by use of your input. Phillip, your example was nice, but it turned out that the axes were on a different layer when attempting a zoom on the graph, nothing zoomed except for the new axis ticks. They also had false labels fr

[Scilab-users] moving axis ticks around orthogonally to their axes?

2016-11-15 Thread christophk
Hello folks, sorry for spamming this forum. I came across another interesting problem: Consider the following code example: x = linspace(-2*%pi,2*%pi,201); y = cos(x); plot2d(x,y,2) a=get("current_axes"); set(a,"box","on"); set(a,"grid",[1 1]); set(a,"x_location","origin") set(a,"y_location","ori

Re: [Scilab-users] {EXT} Re: finding reasonable axis markers for plotting a random data set

2016-11-15 Thread christophk
Hi Christoph and Samuel, "Nevertheless, I think you could get something from: - estimating the step size on the entire sample - if 0 is inside, estimating the step size in each sub-range so there is at least one step in this range - taking the smallest step size which would reduce the amount of "i

Re: [Scilab-users] {EXT} Re: finding reasonable axis markers for plotting a random data set

2016-11-14 Thread christophk
Btw, Christophe - your solution does not give the option to specify the desired number axismarkers which I express using the function input variable "steps". I have now compressed the code from my example further according to your good suggestions and attach it as a file in case anyone likes to t

Re: [Scilab-users] {EXT} Re: finding reasonable axis markers for plotting a random data set

2016-11-14 Thread christophk
Hey Christophe, I don't think " to have only decimal number i.e. the last number displayed increases by one at each tick." would be good enough for every case. Or perhaps I'm not getting your idea entirely Consider the following range examples: 1. xmin = 8.31 xmax = 9.23 Then lets specify a some

Re: [Scilab-users] {EXT} Re: finding reasonable axis markers for plotting a random data set

2016-11-14 Thread christophk
Hey Christophe, thank you for taking your time to respond to my post. Your feedback is really valuable for me. Of course I should have thought on the log10 -function, I don't know why it hasn't occurred to me. :) So this is the code I am testing with and that made me want to create more reasonabl

Re: [Scilab-users] finding reasonable axis markers for plotting a random data set

2016-11-10 Thread christophk
Here is the code in a testfile to make things easier for those who want to give it a shot and test it. I know there are some duplicate lines that could be avoided by changing the boolean logic a bit but I fear that the readability of the code will suffer (as it is quite bad already). Also please be

[Scilab-users] ignore function output variable

2016-11-10 Thread christophk
Hey there, is there any way in Scilab to ignore a function output variable? I did a a quick search in the mailing list archive and on the internet but couldn't find anything. Example: a = [ 0 1 0 1 1]; // working usual function call and throwing away b in Scilab [b,c] = unique(a); clear b; // Ma

Re: [Scilab-users] determining the amount of excelsheets in an xls(mlist)-variable

2016-11-04 Thread christophk
Hi Rafael, it worked - you are a life-saver! :-) It's actually mentioned here as well: https://help.scilab.org/doc/5.5.2/en_US/readxls.html I just got confused because the "sheets" variable seems to be identical to it's field name "sheets" in the example: "sheets = readxls(file_path) .. Given an

[Scilab-users] determining the amount of excelsheets in an xls(mlist)-variable

2016-11-03 Thread christophk
Hello dear Scilab fellows, I'm new to Scilab and try to find a solution to finding the amount of excelsheets in a an xls(mlist)-variable. I have been looking on the internet for an entire day without getting any further. So here is some code to clarify what I am looking for: // Let's assume I rea