[Scilab-users] Scilab Nigthly build - bugzilla 16308

2020-01-30 Thread Perrichon
Hello Samuel

 

Is there a way to load nigthly build version, as it existed in the past :
apparently not available on the new download site

 

Sincerely

 

Pierre P.

 

 

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Fitting correlations to measured data. Write-ups of leastsq is messy ...

2020-01-30 Thread Heinz Nabielek
Scilab is a great and powerful mathematical tool that can be used for fitting 
correlations to measured data.

For me, the help functions and literature write-ups for least-squares fitting 
in Scilab were tedious and I found them difficult to follow.

At an elementary level, I have sorted out my problems. I would like to report 
on it, but I am grateful for any further suggestions.

First: linear least-squares fitting: with measurement data x=[2 7 12]'; y=[2 
4.5  6.5]'; 
it is easy, to fit a straight line and plot it:
M=[ones(x) x]; a=M\y; plot2d(x,M*a); plot(x,y,'r.');

Strangely, you find the recipe under "backslash" and this is not very 
straightforward. The method is really neat, because you can easily fit a 
polynomial of 25th order or any correlation that is linear in the parameters.

Correlations not linear in the parameters need non-linear least-squares 
fitting, e.g. with "leastsq", where the Scilab help function is terribly 
complex.

In my case, I wanted to simultaneously fit three straight lines through three 
measurement series with the condition that all 3 lines start at the same point 
on the x-axis. So the following worked well for me:

x=[2 7 12]'; y=[2 4.5  6.5]'; y1=[1 2 3]'; y2=[0 1 1.4]'; par0 = [.5 .15 .09 
-5];
function e=err(par, x,y,y1,y2)
   e= [y-par(1)*(x+par(4)); y1-par(2)*(x+par(4)); y2-par(3)*(x+par(4))]
endfunction
 [f,paropt] = leastsq ( list(err,x,y,y1,y2), par0);

plot(x,[y y1 y2],'.');
xx=-5:15;
plot(xx,paropt(1)*(xx+paropt(4)),'b--');
plot(xx,paropt(2)*(xx+paropt(4)),'g--');
plot(xx,paropt(3)*(xx+paropt(4)),'r--');

I guess there are more elegant ways to write this code, are they?

I find write-ups of leastsq in the help function and in Scilab books terribly 
messy
Greetings
Heinz


PS: Why do I need "list" in the leastsq function call?


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [EXT] Re: Problem with event handler.

2020-01-30 Thread Adrian Weeks
Hi Antoine,

Yes, I sent the mail without attachments, then realised my mistake and sent it 
again with.
If you can't find the second mail please let me know and I'll send it again.

Thank you.

Adrian Weeks
Development Engineer, Hardware Engineering EMEA
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178
awe...@hidglobal.com
[HID Global Logo]
Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com


From: users  On Behalf Of Antoine Monmayrant
Sent: 30 January 2020 14:21
To: users@lists.scilab.org
Subject: [EXT] Re: [Scilab-users] Problem with event handler.

*** Please use caution this is an externally originating email. ***

Hello Adrian,



I don't see any piece of scilab code attached to your message.
Did you forget it?



Antoine
Le 30/01/2020 à 10:38, Adrian Weeks a écrit :
Hello,

Could someone try running this piece of code to see what's going wrong, please?

The purpose is to set up a display window with an associated event handler.
Function 'Task' contains an endless loop in which some measurements would be 
made and the results displayed in the window.
A mouse left click in the window should stop the endless loop allowing an exit 
from function 'Task' and moving on to the following lines of code.

Using Scilab 5.4.1  (I know it's an older version but I've been using it for a 
long time and it works for me):
If you place the caret at  '// Point 1' and execute with E the code 
should work correctly as shown in Capture 1.
If you place the caret at '//Point 2' and do the same the loop will work but 
Scilab will run past  the call to 'Task' and execute the following lines x3, 
x4, x5 (Capture 2).  I would expect it to stop in function 'Task' until the 
function is exited in the intended way by the mouse left click.

Using Scilab 6.0.1
Scilab is almost totally unresponsive to the mouse click.  Something goes on in 
the background and when it does eventually stop the results are like Capture 3, 
4 & 5.  The same over-run of function 'Task' occurs.

Using a Dell Optiplex 3060, i3-8100 CPU, Win10 Enterprise.

Am I missing something or is this a genuine bug?
Many thanks.

Adrian Weeks
Development Engineer, Hardware Engineering EMEA
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178
awe...@hidglobal.com
[HID Global 
Logo]
Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com





___

users mailing list

users@lists.scilab.org

http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] FEA in Scilab

2020-01-30 Thread Claus Futtrup

Hi Michael

I'm the thread starter. Good point that one could look in MATLAB for 
inspiration.


I am not so much interested in creating a FEA program (or API) myself in 
Scilab, but if anything exist today which to some extent is in 
development or service (maintenance), then I'd be inclined to try this.


... Conclusion seems to be, this is not the case.

Best regards,
Claus

On 30.01.2020 14:59, Michael J. McCann wrote:

Federico,
This isn't really an answer but I have in hand a book;

"Introduction to  Finite and Spectral Element Methods Using MATLAB",
 C.Pozrikidis, CRC Press,    2014     ISBN978.1.4822.0915.0
It might provide models for coding even if the dialect is different.

Mike.

On 1/28/2020 7:14 PM, Federico Miyara wrote:


Claus,

I'm interested.

Regards,

Federico Miyara


On 27/01/2020 07:25, Claus Futtrup wrote:

Dear fellow Scilabers

There are various initiatives and possibly demonstration projects 
for implementing Finite Element algorithms and Analysis in Scilab. 
Please help me by providing pointers.


What I'd like to simulate is the suspension of a loudspeaker (the 
cloth spider which essentially centers the voice coil in the air 
gap), in particular I wish to calculate a force-deflection curve.


In my particular case, I'd like to describe the spider as a 
collection of line segments (straight lines as well as circular 
sections). This description represents a cross section view of the 
spider. For proper modeling, this is an axisymmetric model of the 
spider.


I have a simple description of what I'd like to do in Scilab, but 
done in a software named Mecway. The PDF is 650 kb (4 pages). I am 
worried about attaching such a document to the User Group here in 
general, but I can of course send it on request. In Mecway the 
axisymmetric model is expanded into 3D with hex8 elements (it looks 
like a basic cubic element). The force-function is applied in 40 
time steps. It looks like 40 x basic static analysis.


Please let me know what you think would be suitable for solving this 
problem. Is there a suitable ATOMS library?


Best regards,
Claus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Problem with event handler.

2020-01-30 Thread Antoine Monmayrant

Hello Adrian,


I don't see any piece of scilab code attached to your message.
Did you forget it?


Antoine

Le 30/01/2020 à 10:38, Adrian Weeks a écrit :


Hello,

Could someone try running this piece of code to see what’s going 
wrong, please?


The purpose is to set up a display window with an associated event 
handler.


Function ‘Task’ contains an endless loop in which some measurements 
would be made and the results displayed in the window.


A mouse left click in the window should stop the endless loop allowing 
an exit from function ‘Task’ and moving on to the following lines of code.


Using Scilab 5.4.1  (I know it’s an older version but I’ve been using 
it for a long time and it works for me):


If you place the caret at  ‘// Point 1’ and execute with E the 
code should work correctly as shown in Capture 1.


If you place the caret at ‘//Point 2’ and do the same the loop will 
work but Scilab will run past  the call to ‘Task’ and execute the 
following lines x3, x4, x5 (Capture 2).  I would expect it to stop in 
function ‘Task’ until the function is exited in the intended way by 
the mouse left click.


Using Scilab 6.0.1

Scilab is almost totally unresponsive to the mouse click.  Something 
goes on in the background and when it does eventually stop the results 
are like Capture 3, 4 & 5.  The same over-run of function ‘Task’ occurs.


Using a Dell Optiplex 3060, i3-8100 CPU, Win10 Enterprise.

Am I missing something or is this a genuine bug?

Many thanks.

Adrian Weeks
Development Engineer, Hardware Engineering EMEA
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 
(0)2920 520178

awe...@hidglobal.com 

HID Global Logo 

Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com 


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] FEA in Scilab

2020-01-30 Thread Michael J. McCann

Federico,
This isn't really an answer but I have in hand a book;

"Introduction to  Finite and Spectral Element Methods Using MATLAB",
 C.Pozrikidis, CRC Press,    2014     ISBN978.1.4822.0915.0
It might provide models for coding even if the dialect is different.

Mike.

On 1/28/2020 7:14 PM, Federico Miyara wrote:


Claus,

I'm interested.

Regards,

Federico Miyara


On 27/01/2020 07:25, Claus Futtrup wrote:

Dear fellow Scilabers

There are various initiatives and possibly demonstration projects for 
implementing Finite Element algorithms and Analysis in Scilab. Please 
help me by providing pointers.


What I'd like to simulate is the suspension of a loudspeaker (the 
cloth spider which essentially centers the voice coil in the air 
gap), in particular I wish to calculate a force-deflection curve.


In my particular case, I'd like to describe the spider as a 
collection of line segments (straight lines as well as circular 
sections). This description represents a cross section view of the 
spider. For proper modeling, this is an axisymmetric model of the spider.


I have a simple description of what I'd like to do in Scilab, but 
done in a software named Mecway. The PDF is 650 kb (4 pages). I am 
worried about attaching such a document to the User Group here in 
general, but I can of course send it on request. In Mecway the 
axisymmetric model is expanded into 3D with hex8 elements (it looks 
like a basic cubic element). The force-function is applied in 40 time 
steps. It looks like 40 x basic static analysis.


Please let me know what you think would be suitable for solving this 
problem. Is there a suitable ATOMS library?


Best regards,
Claus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Next Scilab releaes?

2020-01-30 Thread RolandB
Hi,

as the current master branch is often referred to as Scilab 6.1.0, I assume
it will not just be a minor patch release.

I would */highly/* recommend that a potential release date be announced and
that the users be encouraged to test the current master build(s) on their
scripts in order to find (and hopefully be able to fix) as many bugs as
possible before the release.

If you guys don't want to announce a release date, maybe you can announce a
date where you recommend to file bug reports in order to at least still have
a chance to get them fixed before the release.
I remember reading in quite a few bug reports that the pre-release testing
has to be more thoroughly with the next release. I hope that were not only
empty words.

Regards,
Roland 



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Problem with event handler.

2020-01-30 Thread RolandB
Hi,

your problem could be realted to this bug:

http://bugzilla.scilab.org/show_bug.cgi?id=15374

And/or this bug:

http://bugzilla.scilab.org/show_bug.cgi?id=15996

Regards,
Roland





--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Problem with event handler.

2020-01-30 Thread Adrian Weeks
Hello,

Could someone try running this piece of code to see what's going wrong, please?

The purpose is to set up a display window with an associated event handler.
Function 'Task' contains an endless loop in which some measurements would be 
made and the results displayed in the window.
A mouse left click in the window should stop the endless loop allowing an exit 
from function 'Task' and moving on to the following lines of code.

Using Scilab 5.4.1  (I know it's an older version but I've been using it for a 
long time and it works for me):
If you place the caret at  '// Point 1' and execute with E the code 
should work correctly as shown in Capture 1.
If you place the caret at '//Point 2' and do the same the loop will work but 
Scilab will run past  the call to 'Task' and execute the following lines x3, 
x4, x5 (Capture 2).  I would expect it to stop in function 'Task' until the 
function is exited in the intended way by the mouse left click.

Using Scilab 6.0.1
Scilab is almost totally unresponsive to the mouse click.  Something goes on in 
the background and when it does eventually stop the results are like Capture 3, 
4 & 5.  The same over-run of function 'Task' occurs.

Using a Dell Optiplex 3060, i3-8100 CPU, Win10 Enterprise.

Am I missing something or is this a genuine bug?
Many thanks.

Adrian Weeks
Development Engineer, Hardware Engineering EMEA
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178
awe...@hidglobal.com
[HID Global Logo]
Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users