of the parameters estimated by
optim, or at least of the stability of the solution found?
Thanks in advance and regards,
Rafael Guerra
--
View this message in context:
http://mailinglists.scilab.org/Some-questions-about-Scilab-Optim-function-tp4025722.html
Sent from the Scilab users - Mailing Lists Archives
Hi,
Invalid syntax for the input variable names in: function [wert] = in(x(1) ,
x($)).
Write instead:
function wert = in(x);
wert = intg(x(1),x($),quad);
endfunction;
x = [0:4];
wert = in(x); //should work now
Regards
Rafael
--
View this message in context:
Thanks Adrien and others for the very helpful responses.
The mkdir function has indeed all the functionality required, seeming more
useful than the more basic createdir function.
Best regards,
Rafael G.
--
View this message in context:
but for functions of one variable only.
Thanks and regards,
Rafael Guerra
--
View this message in context:
http://mailinglists.scilab.org/Surface-smoothing-in-Scilab-immune-to-outliers-tp4026119.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com
linear
program.
S.
Le 04/03/13 13:23, Dang, Christophe a écrit :
Hello,
De la part de Rafael Guerra
Envoyé : lundi 4 mars 2013 04:37
Does somebody know if there are Scilab functions [...] that smooths
experimental data z=f(x,y) and is immune to strong outliers.
imho, the problem
-differentiable at the optimum (and only
there). However, it seems to work well (true value is [1,1,1]') :
L2 case :
1.165072
1.4380897
1.398408
L1 case :
0.9954939
1.0441875
0.9939874
S.
Le 04/03/13 18:51, Rafael Guerra a écrit :
Thanks Stéphane
(Smoothed values);
plot3d(x, x, zz, 70, 70);
e=gce();
e.color_flag = 1;
Best regards
Calixte
On 04/03/2013 04:36, Rafael Guerra wrote:
Hello,
Does somebody know if there are Scilab functions capable of replacing
outliers via some local robust fitting in 2D, i.e., that smooths
Hi,
The last 'for' loop provided by Stefan is the correct simple way of
implementing the basic task requested.
Just for fun, the same result can be obtained by using a single boolean math
command:
-- bool2s(y=a).*(y-b) + b
ans =
- 11. - 6. - 1.4.100.
Rgds
Rafael
-Original
Hi,
In my Win7 Scilab 5.4 your code outputs the time of execution of the fft
command:
--printf(%.20f\n,t);
0.14101000
What else do you need to know?
Rgds
Rafael
-Original Message-
From: users-boun...@lists.scilab.org [mailto:users-boun...@lists.scilab.org]
On Behalf
: Re: [Scilab-users] Search for special strings in files, from
Scinotes
Hello,
De la part de Rafael Guerra
Envoyé : mercredi 3 avril 2013 18:41
I am having trouble to search for the culprit special character string
2./ in Scinotes Edit Search Find word in files
Did you try
I am thankful too for these amazing achievements.
Best regards
Rafael Guerra
-Original Message-
From: users-boun...@lists.scilab.org [mailto:users-boun...@lists.scilab.org]
On Behalf Of Adrien Vogt-Schilb
Sent: Thursday, April 04, 2013 10:03 AM
To: International users mailing list
Hi Antoine,I have tried in Scilab 5.4 Win7 your 2-year old example script:
x=[-10:10];y1=x+10;y2=x.*x; BetweenCurves(x,y1,y2);and got a in-between
curve filling result that seams to leak (see attached picture):
Scilab5p4_BetweenCurves.gif
Antoine,
Thanks for your reply.
Your suggestion worked perfectly.
Rgds
Rafael G.
From: amonm...@laas.fr
To: users@lists.scilab.org
Date: Tue, 21 May 2013 11:26:50 +0200
Subject: Re: [Scilab-users] Reg :: Area Between two curves
Le Dimanche 19 Mai 2013 04.49 CEST, Rafael Guerra
assignment.\n at line 13 of function %0_i_st called by :
test(1)=null();Thanks and regards,Rafael Guerra
--
View this message in context:
http://mailinglists.scilab.org/Scilab-dynamic-lists-and-correct-use-of-null-tp4027237.html
Sent from the Scilab users - Mailing Lists Archives mailing
.
Stanislav
09.01.2014 21:14, Rafael Guerra пишет:
Hello,
Does anyone know if it possible to generate scaled plots in Scilab?
Say one wants to plot y=f(x), with x being a distance, at 1:1000 scale (i.e., 1
cm on the PC screen would correspond to 10 m along x-variable). Scroll bar may
be needed
];
_
De: Rafael Guerra jrafaelbgue...@hotmail.com
À: International users mailing list for Scilab. users@lists.scilab.org
Envoyé: Jeudi 9 Janvier 2014 16:46:04
Objet: Re: [Scilab-users] Scaled plot displays in Scilab?
Hi Stanislav,
Thanks but it does not guarantee that the interval [x0,x0+10
-boun...@lists.scilab.org] On Behalf Of Samuel
Gougeon
Sent: Friday, January 10, 2014 1:25 PM
To: International users mailing list for Scilab.
Subject: Re: [Scilab-users] Scaled plot displays in Scilab?
Le 09/01/2014 22:54, Rafael Guerra a écrit :
.../...
It would be very useful to be able
Samuel,
Thanks for your message.
There is something a bit confusing in all this...
If one runs the Scilab code below an error occurs:
test(1).parm1 = [ 1 2 3 4];
test(1).parm2 = ones(3,3);
test(2) = test(1);
test(2).parm3 = hello;
test(2)=[]; // OK
test(1)=[]; // Not OK
!--error 1
A
Hi Paul,
Please try the solution below using fsolve.
Could you let us know why do you want to solve that equation? Is it just for
fun or is there an underlying physical problem?
PS:
I was looking for a new version of Scilab and found a donate button, Scilab
needs our help.
Regards
Rafael
of closing the file instead of selecting it.
Thanks and regards
Rafael Guerra
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Francois
Vogel
Sent: Wednesday, March 26, 2014 9:34 PM
To: Scilab users list
Subject: [Scilab-users] [ANN]: Scipad-8.72
ANNOUNCE
- Mail d'origine -
De: Rafael Guerra jrafaelbgue...@hotmail.com
À: 'International users mailing list for Scilab.' users@lists.scilab.org
Envoyé: Sun, 30 Mar 2014 14:01:19 +0200 (CEST)
Objet: Re: [Scilab-users] Re : finding roots
Hi Paul,
Please try the solution below using fsolve.
Could you let
Hello,
Is the following change of mput/mget data types ib and lb have been
reported for Scilab 5.5.0 (Win 64 bits)?
fid = mopen(mput_lb.dat, 'wb', 0);
mput(16,'lb',fid);
mclose(fid)
// outputs now long long integer with 8 bytes
fid = mopen(mput_ib.dat, 'wb', 0);
mput(16,'ib',fid);
] On Behalf Of Rafael
Guerra
Sent: Sunday, May 04, 2014 12:38 PM
To: 'International users mailing list for Scilab.'
Subject: [Scilab-users] Binary I/O of Integers on Scilab 5.5.0 Windows 64
bits
Hello,
Is the following change of mput/mget data types ib and lb have been
reported for Scilab
')
mfprintf(fd, yourstring)
mfprintf(fd,\n);
mclose(fd);
if (isdef('editor') | (funptr('editor')0)) then
editor(filename1)
end
/Claus
On 12-May-14 19:30, Rafael Guerra wrote:
Hello,
Does anyone know how to properly display a large amount of plain text stored
in a string variable of size (N,1), i.e
Hello,
Does anyone know how if it is possible to propose a File name inside the GUI
of uigetfile?
For example:
filename= uigetfile([*.txt],, Write output file name, %f);
It would be handy to be able to propose a file name in uigetfile, based on a
Scilab variable related to data to be
And a second question:
-How to make the colorbar numbers more legible? In the example below
the minus sign overlays (in my PC) the colorbar tick marks and cannot be
read
Thanks and regards
Rafael G.
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Rafael
Guerra
,
Le 23/06/2014 16:59, Rafael Guerra a écrit :
Hello,
Does anybody know how to write titles above colorbars (say:
series1,series2) as in example below:
clf;X=1:10;Y=1:20;surf(X,Y,-X.*.Y'); colorbar(-20,-1);
e = gce();
e.parent.title.text = Series 1;
X = 21:30;
surf(X,Y,X.*.Y');
colorbar
filled curve plotting issue?
Hello Rafael,
Le 19/08/2014 21:17, Rafael Guerra a écrit :
Hi Samuel,
Thanks for pointing to the bug tracker.
I have read the explanations but could not find a workaround.
I hope what I say is mathematically correct:
The two data series provided in my example
Dear Scilab'ers,
Happy New Year.
Does someone know to perform in Scilab computations involving very large
numbers?
For example, the how to compute the following probability formula:
1-365!/((365-23)! *365^23)
1-factorial(365)/(factorial(365-23)* 365^23) produces Nan in Scilab
The correct
Hi Wolfgang,
Using Win7 64bit laptop and ran your code Ok for max=9e6 and plotted series
fine but not for 10e6 (Scilab crashed and exited).
Regards,
Rafael
From: w.sch...@ove.at
To: antoine.monmayr...@laas.fr; users@lists.scilab.org
Date: Wed, 22 Apr 2015 06:50:30 +
Subject: Re:
Hi Tim,
There are situations where one may want to arbitrarily zoom a plot
interactively.
This leads me to a past email thread Scaled plot displays in Scilab? where
there was a possible Java heap limitation. This has important industrial
applications.
I copy below acode sample from that
equipped with an hybrid graphic card (ie integrated small one
for the main screen and a discrete one for the external screens)?
Could you give us the exact model to see whether one of us can reproduce the
issue?
Cheers,
Antoine
Le Mercredi 20 Mai 2015 17:16 CEST, Rafael Guerra [hidden
Hello Scilab'ers,
When I ran Scilab in the following configuration my laptop slows down
extremely:
- Win 7, 32 GB RAM laptop, intel 3.2 GHz processor, Dell laptop and docking
station, 2 extra-large screens
Need to restart computer to get performance back.
Without using the docking station there
one for the external screens)?
Could you give us the exact model to see whether one of us can reproduce the
issue?
Cheers,
Antoine
Le Mercredi 20 Mai 2015 17:16 CEST, Rafael Guerra [hidden email] a écrit:
Hello Scilab'ers,
When I ran Scilab in the following configuration my
Hello,
Here below a more inefficient solution but that might fit your needs:
// Hypermatrix definition M(x,y,z,k)
x=[1 1.5 2]; y=[0 1 %e %pi]; z=[2 3].^0.5; k=1:5;
nx=length(x); ny=length(y); nz=length(z); nk=length(k);
M=rand(nx,ny,nz,nk);
// Write coordinates and M to disk:
fid =
A late reply but in case it helps someone: the definitive fix to my Dell
docking station issues with very slow PC performance with Scilab running,
came after recent update at Dell site of the graphical drivers
Best regards,
Rafael
--
View this message in context:
Very ingenious matrix trick, I loved it
Date: Wed, 7 Oct 2015 11:47:49 +0200
From: serge.st...@inria.fr
To: users@lists.scilab.org
Subject: Re: [Scilab-users] How to produce a filled staircase plot
Under Scilab-5.5.2 xfpoly rescale the
graph automatically as plot does
I can only think of Da Vinci's wise words: "simplicity is the ultimate
sophistication"
> To: users@lists.scilab.org
> From: cfutt...@gmail.com
> Date: Wed, 30 Sep 2015 23:51:11 +0200
> Subject: Re: [Scilab-users] Function
>
> Hi Christophe, et al.
>
> Sarcasm can create an unpleasant
What about Mathematica? Or just the free Wolfram Alpha?
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Tim Wescott
Sent: Monday, December 07, 2015 8:01 PM
To: Pablo Fonovich
Cc: Users mailing list for Scilab
Hi Frederik,
The unwrapping shown does not look good, it seems that you need to play further
with the unwrap input parameters.
Check if Scilab's function gives same results as this one:
http://mailinglists.scilab.org/unwrap-improvements-td4026370.html
You can compare the results with those
Hi,
Assuming sr=5e-5 s, Scilab 5.5.2 gave me the following phase plot:
Regards,
Rafael
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of fred_audio_dsp
Sent: Sunday, December 13, 2015 6:22 PM
To: users@lists.scilab.org
Subject: Re:
g>
Subject: Re: [Scilab-users] Title positioning on log-scale plots
Le 11/25/2015 12:45 PM, Rafael Guerra a écrit :
Dear Scilabers,
Does anybody know how to [x,y]-position titles on log-scale plots?
See examples below which plot ok only if the x-scale is linear:
clf;
x=1:100; y=x.^0.2;
s
Hi Petar,
If you only need to write the hypermatrix M to disk you could do:
M=rand(100,3,3,3); // example
[nx,ny,nz,nk]= size(M);
fid = mopen("hyper_out.txt",'w');
mfprintf(fid,"%i %i %i %i\n",nx,ny,nz,nk);
for i=1: length(M)
mfprintf(fid,"%15.5f\n",M(i));
end;
mclose(fid)
You need
Hi Petar,
You just need to add the comma inside the printf format string:
M=rand(100,3,3,3); // example
[nx,ny,nz,nk]= size(M);
// To write:
fid = mopen("hyper_out.txt",'w');
mfprintf(fid,"%i %i %i %i\n",nx,ny,nz,nk);
mfprintf(fid,"%15.5f,\n",M(:));
mclose(fid)
For more details on printf
Hi Calixte,
The Scinotes Latex display is awesome and really very useful.
Do you know how to insert the $$ $$ in order to display the multiple lines Latex
comments below (from fmincon code by M.Baudin):
//
//\begin{eqnarray}
//\mbox{min}_{x}& f(x) \\
//\mbox{subject to} & c(x)
Hello Samuel,
Thanks for sharing uman and congratulations for the amazing work done.
This is a very useful tool to increase Scilab users productivity.
The quick access to the appropriate bug webpages is awesome.
May we also use uman to query the relevant threads in Scilab users webpages?
Hi,
Defining the left-hand side of your function has follows should help:
function [x, y]=mapToCylinder(a,M,r)
.
endfunction
Regards,
Rafael
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of petarf
Sent: Friday, November 20, 2015 4:03 PM
To:
Hi Paul,
It seems that there may be some issues with the .*, .^ syntax and also the use
of the same variable in different context (b).
Editing the vectorization part of your code as follows:
// using vectorization
aa = [0:n]';
bb = ones(n,1);
i = aa.*.bb;
j = bb.*.aa;
Km2 =
For sake of accuracy in detriment of bandwidth: setting equal weights in
Bartlett3p should produce a 3-point moving average (mean) filter, not a median
filter
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Claus Futtrup
Sent: Tuesday, April 05, 2016 7:25 PM
To:
Hi Buk.
I think that for your data, the Loess (or Lowess) technique provided superior
results. Why does it not suit you?
Note that the parameters used in my plots were smoothing=0.03 (not 0.3) and
order=2 or 3 but I would recommend using order=1 or 2 instead.
PS: regarding the 3-point median
Hi Buk.
Have you tried Scilab's cubic splines using the "monotone" option?
Regards,
Rafael
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of
scilab.20.browse...@xoxy.net
Sent: Sunday, April 03, 2016 9:09 PM
To: users@lists.scilab.org
Subject:
If your data is not recorded in real-time, you can sort it (along the x-axis)
and this does not imply that the "y(x) function" will become monotonous. See
below.
As suggested, by Stephane Mottelet, see one 3-point median filter solution below
applied to data similar to yours:
M = [1.0 -0.2;
Fyi, that code does not produce errors in my Scilab 5.5.2 64-bit running on Win
7
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of
scilab.20.browse...@xoxy.net
Sent: Tuesday, April 05, 2016 3:10 AM
To: users@lists.scilab.org
Subject: [Scilab-users] Wrong
Buk.
Testing CWA toolbox's Loess code on your data seems to produce far superior
results than the very simple 3-point median filter - see attached
(sorry for the misspelling)
Regards,
Rafael
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of
Buk.
Could you please provide the data points in your example so that we can test
different methods.
Note that in the moving median filter solution presented there is no propagation
of errors because the original dataset is always used and only one filtering
pass is made using a very short
Burk.
I am sending results as Plain Text with attachments.
PS: the former pictures were embedded in a HTML-email which I could read fine.
Rgds
Rafael
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of
scilab.20.browse...@xoxy.net
Sent: Monday, April 04,
Hello,
Is the following example ok?
t=-%pi:0.02:%pi;
M=sin(t)'*cos(t);
n=length(t);
r=2; //radius
for i=1:n
for j=1:n
if sqrt(t(i)^2+t(j)^2)>r then M(i,j)=%nan; end
end
end
clf();
Sgrayplot(t,t,M);
Otherwise, could you provide a sample of your pb script.
Regards,
Rafael
+1
:)
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Tim Wescott
Sent: Tuesday, April 26, 2016 12:45 AM
To: Users mailing list for Scilab
Subject: Re: [Scilab-users] users mailing lists out of english and
french-speaking ones
Hi Samuel,
Thanks for sharing the new uman version but could please advise about its
installation on Scilab 5.5.2.
Uman's "readme.txt" recommends using ATOMS but then, only the older 1.3 uman
version seems to be available and to get installed.
Kind regards,
Rafael
From: users
automatic redirections, related online pages.
Hi Rafael,
Le 14/04/2016 23:31, Rafael Guerra a écrit :
Hi Samuel,
Thanks for sharing the new uman version but could please advise about its
installation on Scilab 5.5.2.
Umans readme.txt recommends using ATOMS but then, only the older
Sorry Rafael
It did not work.
Thanks anyway
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Rafael Guerra
Sent: Sunday, July 03, 2016 9:24 PM
To: 'Users mailing list for Scilab'
Subject: Re: [Scilab-users] plot2d question
Offer,
Would this be ok:
x=(1:10)'; y=log(x); plo
select for anything)
/Claus
On 22-01-2017 19:18, Rafael Guerra wrote:
Schlumberger-Private
Hi Claus,
Check this code out:
// START OF (UGLY) CASE
loop= %t;
while loop
printf("\n")
str = input("Enter number (1-7) or 0 to exit: n=","string");
n = evst
Apologies for previous Outlook emails with company info classification - will
remove this in the future.
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Rafael Guerra
Sent: Sunday, January 22, 2017 7:38 PM
To: Users mailing list for Scilab <users@lists.scilab.org>
Subje
Hi,
Not related with your error message but the code line:
for i=1:size(par)
does not sound good.
Try replacing by:
for i=1:length(par)
Regards,
Rafael
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of petarf
Sent: Monday, September 12, 2016
Hi,
Without seeing the details of your code and with no experience with findobj,
from what I could understand from the help file, the command lines like:
Q=findobj("tag","Q");
do not sound good.
As findobj outputs an handle to your uicontrol object, you could try:
hdl =
I am sorry, please discard my previous comment... after further reading of the
help doc, it does not make sense.
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Rafael Guerra
Sent: Tuesday, September 13, 2016 4:14 PM
To: Users mailing list for Scilab <users@lists.scilab.
Hello,
Off course the price.
Fyi, Eike Rietsch, an advanced Matlab user, wrote in 2010 a quite comprehensive
“Introduction to Scilab from a Matlab User's Point of View”.
He had several positive comments about Scilab including, quote:
· … the power that typed lists and matrix-oriented
something like a wiki page describing the
modifications "from a user point of view". Maybe an advanced user or
contributor already started something. Do you have some ideas about the
expected content ?
Thanks,
--
Clement
On Sep 28, 2016 16:20, Rafael Guerra
<jrafaelbgue...@hotmail
Hi Paul,
Thanks for sharing the interesting code & link.
Please note that for noisy data you may still be able to use your
peaks-and-valleys code by filtering the input data beforehand.
Depending on the type of noise, Scilab offers different solutions:
- Low-Pass filters: if the noise is
Hello all,
Just to add 2 cents.
The ML is a place to learn about Scilab in a faster and more pleasant way. And
for this purpose, I specially enjoy the questions and answers that include
data, Scilab code and/or some illustrations.
Many questions posed mix Scilab knowledge with some more
(correction to PS: in previous email)
What looked like a Mobius strip finally isn’t one. For the record, here below
the correct equation:
p1=linspace(-1,1,50);
p2=linspace(0,2*%pi,50);
deff("[x,y,z]=f(p1,p2)",["x=(R+r*p1.*cos(p2/2)).*cos(p2)";..
Hi Paul,
Fyi, Tom Co's simple tutorial: http://www.chem.mtu.edu/~tbco/cm416/fft1.pdf
shows how to obtain the Fourier coefficients via the fft
Regards,
Rafael
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of
paul.carr...@free.fr
Sent: Friday,
Hello,
I have tried Tim's nice kludge but with no success.
A different attempt using "modulo" failed too:
i = int64(2)^62 + 1;
s = "";
j = i;
b = int64(10);
while (j >= 1)
dj = int(modulo(j,b));
s = s + string(dj);
j = j/b;
end
s = strrev(s);
printf("64-bit integer - string: %s\n",
Hi,
If I am not mistaken, that seems to be what Scilab vector “norm“ does.
Regards,
Rafael
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Claus Futtrup
Sent: Monday, August 29, 2016 6:40 PM
To: International users mailing list for Scilab.
Subject:
Hi Samuel,
Thanks for the very useful link, which provided key information that does seem
to be (totally) in: https://help.scilab.org/docs/6.0.0/en_US/CHANGES.html
Maybe the latter document could be updated with (a summary) of the former.
Regards,
Rafael
-Original Message-
From: users
(sorry - correction)
Hi Samuel,
Thanks for the very useful link, which provides key information that does not
seem to be (totally) in: https://help.scilab.org/docs/6.0.0/en_US/CHANGES.html
Maybe the latter document could be updated with (a summary) of the former.
Regards,
Rafael
Dear Scilab'ers,
Is there a comprehensive list of the key changes in Scilab 6 that one must bear
in mind when trying to upgrade existing Scilab 5 code?
Thanks and regards,
Rafael
___
users mailing list
users@lists.scilab.org
(note: votre message n'a pas été publié)
Bonsoir,
Essayez le code suivant svp:
// START OF CODE
clear;
clf;
M = [
0.003 17
0.0028 208980
0.0026 261261
0.0024 336000
0.0022 439530
0.002 57
0.0018 785568
0.0016 1110375
0.0014 1667952
0.0012
016 18:50, Rafael Guerra a écrit :
Hi Samuel,
Scilab-6 'scatter' plot function seems indeed quite adequate for these data.
Would it be possible to produce such scatter plots with dots color coded (as
attached) in Scilab 5?
.
yes it is, for instance using xfarcs() as below.
Regards
n
ct: Re: [Scilab-users] grayplot
Le 28/10/2016 14:12, Rafael Guerra a écrit :
> Hi Samuel,
>
> Fyi, on my Scilab 5.5.2 (64-bit) Win 7 configuration, the code here below
> still fails for one xfarcs() call.
> Uncommenting the second xfarcs() call does fix the plot (attached).
> It lo
// END OF CODE
Rgds,
Rafael
-Original Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Samuel Gougeon
Sent: Friday, October 28, 2016 1:35 AM
To: Users mailing list for Scilab <users@lists.scilab.org>
Subject: Re: [Scilab-users] grayplot
Le 27/10/2016 21:5
Please check the two examples here below:
/ START OF CODE
clear;
x=[1 2 3;4 5 6];
y=[4 5 6;7 8 9];
z=10;
M=list(x,y,z);
function out_list=func1(M) //ex.1
n = length(M); // decide the number of variables to output based on
function input
out_list = list(1:n);
for i=1:n
ypical sounds (bass guitar, bells, ...)
S.
Le 05/11/2016 à 13:43, Rafael Guerra a écrit :
Dear Scilab'ers,
Are you aware of any good references showing how to produce brief, nice and
useful sounds using simple mathematical formulas?
This is primarily out of curiosity but they could well be played
Hello Shamika,
I order to output a variable number of arguments from a function, one solution
is to do define your output as a list as follows:
function varargout_list = callOct(fname,varargin)
…
varargout_list = list(1:n); // n= number of output variables
for i=1:n
Hi,
Concerning 'unique', without rewriting it from scratch to output only what you
want when you want it, a quick & dirty workaround would be to wrap it in your
own 'my_unique' function as follows:
// START OF EXAMPLE
function varargout = my_unique(a,varargin)
[lhs,rhs] = argn();
n =
Dear Scilab'ers,
Are you aware of any good references showing how to produce brief, nice and
useful sounds using simple mathematical formulas?
This is primarily out of curiosity but they could well be played using sound()
or playsnd() functions, and provide different sound warnings during
Hello Philipp,
Say that after mopen you got all your text input into array of strings ‘txt’:
txt = [
"HEADER-Line",
"01.12.2015, 01:15:00.12, 1.1, -2.2";
"03.12.2015, 11:15:00.12, -11.1, 2.5";
"12.12.2015, 21:15:00.12, 5.1, 6.2"];
Then do the following:
tx=txt(2:$); // get rid of
Correction: after having obtained ‘tx’ as below, just do:M=evstr(tx);
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Rafael Guerra
Sent: Friday, October 14, 2016 12:53 PM
To: Users mailing list for Scilab <users@lists.scilab.org>
Subject: Re: [Scilab-users] using c
NOTE: fyi, after testing over very large text files, it happens that doing
mputl of ‘tx’ to disk followed by M=fscanfMat is much faster than doing simply
M=evstr(tx) …
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Rafael Guerra
Sent: Friday, October 14, 2016 12:58 PM
Hi Scilaber's,
Fyi, another approach using execstr + evstr functions:
// use month names in M to create 12 variables that are assigned to some 12
numbers
-->execstr(M + '=' + string(1:size(M,2)));
-->evstr(Ms)
ans =
12.4.
2. 12.
6. 7.
This different approach
Hi,
The problem is not with csvRead, but with the need in the example we are
considering here to use the evstr function afterwards on large string data to
convert it to useable numeric values.
See time breakdown here below for another 50,000 line input data test:
time1= 0.6552// mfscanf
Hello,
There was a silly mistake in the labeling in the previous code sample posted.
In order to try keeping a clean record, here it goes an improved version of
plotxbreaks(), which produces the plot attached.
// Multiple axis breaks in Scilab (3rd attempt)
// START OF CODE
clear;
function
Dear Scilabers,
Sorry to post yet another version but known errors should not remain
uncorrected.
The revised snippet below produces the attached figure.
// Multiple x-axis breaks in Scilab (4th attempt)
// START OF CODE
clear;
function []=plotxbreaks(x0,y0,dx_break);
// x0 and y0 are 1D
Hi Antoine,
Please find here below improved code to plot with breaks, using a function
"plotbreaks":
// Multiple axis breaks in Scilab (2nd attempt)
// START OF CODE
clear;
function []=plotbreaks(x0,y0,dx_break);
// x0 and y0 are 1D arrays to plot with breaks
[x0,k] = gsort(x0,'g','i');
Hi Antoine,
Thanks for sharing this interesting topic.
Please check a quick brute force solution below, that needs further polishing.
In particular, the grid display should be improved.
// Multiple axis breaks in Scilab (1st brute force attempt)
// START OF CODE
clf();
clear;
x0=[1:10 20:25
Hi Jens,
I like the idea of using a function but could not find out right way how to
simplify and generalize yours for arbitrary loops.
If instead of using a function, we copy the following line into "any" for or
while loop we will get the same result as in your particular example:
// START
Hello Wolfgang,
The same message as Antoine, but in other words:
According to the help file, in Matplot1(M,rect), the values of int(M) are used
as entries in the current colormap.
If the colormap indices run from 1 to Nc and M has values from z1 to z2, then
in order to use the full color scale
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 Behalf Of Tim Wescott
Sent: Monday, November 28, 2016 12:19 AM
To: Jens Simon Strom
Cc: Users mailing list for
Hi Antoine,
Note that with minor polishing of the previous code one can also display
vertical grid lines and shaded gaps, as per attachment. Would this be more to
your taste?
PS:
Using similar logic, one could add an extra input parameter to plotbreaks() in
order to shade the larger vertical
Given its usefulness, shouldn't it be part of the main Scilab distribution, not
an add-on?
and thanks too.
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Antoine
Monmayrant
Sent: Wednesday, November 16, 2016 1:50 PM
To: Users mailing list for Scilab
1 - 100 of 351 matches
Mail list logo