Re: [Scilab-users] Optimization question

2014-08-18 Thread ebmb.sci
Dear Márton,
I am using these functions to identify the points A and B that minimizes (or
sometimes maximizes) this problem. Hence, I thought the optim could be the
best solution to do this, since I must explore the search space. However, as
said previously, using the intervals [0 1000] and [1 2000] I always get the
same results. Please, do you have any suggestions to help me?

Thank you so much for your attention!

Best regards,
Eduardo.



--
View this message in context: 
http://mailinglists.scilab.org/Optimization-question-tp4031028p4031042.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Scilab

2014-08-18 Thread Gcinumuzi Ngwenya
Good Afternoon ladies and gentlemen
 
My name is Gcinumuzi Ngwenya from South Africa. I am doing my BTech in Chemical 
Engineering and right now we have been introduced to Scilab but I am really 
struggling at the moment. Can you guys please help me with this two questions?
 
1. I have been plotting a transfer function graph on scilab and I see that on 
the x-axis it starts at 1 and end up on the value which I entered for final 
integration time, what informs scilab or the graph to start at 1, or what is 
the reason for it to start at 1? I got this graph when I was doing an example 
for the beginners on scilab website
 
2. what is meant by buffer size on the simulation/setup menu ?
 
3. is there a document that can explain to me the function of each palette on 
xcos?
 
Thanking you in advance for your assistance 
 
Best Regards 
 
Gcinumuzi
  ___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Plot Error 21

2014-08-18 Thread tom
Hi,

I have previously used the function plot and it worked well. But, every time
i use it now it outputs error 21. 

--x = [-5:5]
 x  =
 
  - 5.  - 4.  - 3.  - 2.  - 1.0.1.2.3.4.5.  
 
--plot(x)
 !--error 21 
Invalid index.
at line  14 of function %h_e called by :  
at line  15 of function _update_shaded_plots called by :  
at line  91 of function _compute_data_bounds called by :  
at line 327 of function _mainPlot called by :  
at line  28 of function plot called by :  
plot(x)
 

I am a windows 7 user. Please help me fix this.
Thanks a lot,

Tom



--
View this message in context: 
http://mailinglists.scilab.org/Plot-Error-21-tp4031051.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] A question about plotting

2014-08-18 Thread Paul Bignier


Hello,

When you type ' plot(X,Y) ', Scilab links together the consecutive 
[X(i),Y(i)] pairs.

In your example, X(40)~6.28 and X(41)=0.
So [X(40), Y(40)] is connected to [X(41), Y(41)], and the additional 
line represents that simple connection.


' plot(x,y1,x,y2); ' considers [x, y1] and [x, y2] as two distinct 
curves, so they are not linked together.


Hope this helps,
Regards,
Paul



On 08/18/2014 04:15 AM, ?? wrote:


Hi , All:

I have a question about plotting.

I want to plot 2 lines in a graphic , so I type the command as below:

--x=linspace(0,2*%pi,40);

--y1=sin(x)

--y2=cos(x);

--X=[x,x];

--Y=[y1,y2];

Then , I type the plot command :

--plot(x,y1,x,y2);

The result is shown as below:

Graphic window number 0 (2).bmp

But when I type a command as below:

--plot(X,Y);

The result is :

Graphic window number 0.bmp

It  has an additional line.

Why will this line appear?

Thanks for your reply.





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


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

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


Re: [Scilab-users] Plot error

2014-08-18 Thread Samuel Gougeon

Hello,

Le 17/08/2014 05:59, Einstom Engay a écrit :

Hi,

I have previously used the function plot and it worked well. But, 
every time i used it now it outputs the error 21.


--x = [-5:5]
 x  =
  - 5.  - 4.  - 3.  - 2.  - 1.0.1.2.3.4.5.
--plot(x)
 !--error 21
Invalid index.
at line  14 of function %h_e called by :
at line  15 of function _update_shaded_plots called by :
at line  91 of function _compute_data_bounds called by :
at line 327 of function _mainPlot called by :
at line  28 of function plot called by :
plot(x)

It works for me, also with Windows7.
You might do:
clear plot
and then try again.

Samuel

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


Re: [Scilab-users] Use of automatic function without one or more specification tests

2014-08-18 Thread Eric Dubois
Hello Samuel

I don not know what you mean by the function *automatic *runs partially,
but anyway, you can choose your specification tests with the option
'test=' as shown in example 2 of the help file for automatic.

If you want to use only the Doornik-Hansen normality test, then run (shown
with the example of the help file):
-- global GROCERDIR
-- load(GROCERDIR+'/data/bdhenderic.dat') ;
--
results=automatic('delts(lm1-lp)','lagts(lm1-lp-ly)','delts(lp)','rnet','delts(lagts(lm1-lp))',
'delts(lagts(2,lm1-lp))','delts(lagts(3,lm1-lp))','delts(lagts(4,lm1-lp))',...
'delts(ly)','delts(lagts(1,ly))',
'delts(lagts(2,ly))','delts(lagts(3,ly))','delts(lagts(4,ly))',...
'delts(delts(lp))','delts(delts(lagts(1,lp)))','delts(delts(lagts(2,lp)))','delts(delts(lagts(3,lp)))','delts(delts(lagts(4,lp)))',...
'delts(rnet)','delts(lagts(1,rnet))','delts(lagts(2,rnet))','delts(lagts(3,rnet))','delts(lagts(4,rnet))','const',...
'test=doornhans')

Alternativley if you want to obtain the display specification test, but
without them constarining the estimation, tou can impose a 0 p-value for
these tests with option 'eta=0':
--  
results=automatic('delts(lm1-lp)','lagts(lm1-lp-ly)','delts(lp)','rnet','delts(lagts(lm1-lp))',
'delts(lagts(2,lm1-lp))','delts(lagts(3,lm1-lp))','delts(lagts(4,lm1-lp))',...
'delts(ly)','delts(lagts(1,ly))',
'delts(lagts(2,ly))','delts(lagts(3,ly))','delts(lagts(4,ly))',...
'delts(delts(lp))','delts(delts(lagts(1,lp)))','delts(delts(lagts(2,lp)))','delts(delts(lagts(3,lp)))','delts(delts(lagts(4,lp)))',...
'delts(rnet)','delts(lagts(1,rnet))','delts(lagts(2,rnet))','delts(lagts(3,rnet))','delts(lagts(4,rnet))','const',...
'eta=0')

Éric.


2014-08-18 0:01 GMT+02:00 Samuel Enibe samuel.en...@unn.edu.ng:

 I would like to use the *automatic* function in the Grocer SCILAB package
 to eliminate some non significant variables in a linear regression problem.
 The function *ols* runs successfully on the data. In contrast, the
 function *automatic* runs partially, suggesting that it should be run
 without the specification tests. Is there any way to eliminate one or more
 of the specification tests?
  The user manual is not clear on this.
 Your suggestions will be highly appropriated.

 Samuel Enibe
 University of Nigeria, Nsukka



 ___
 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] A question about plotting

2014-08-18 Thread Samuel Gougeon

Hello,

Your same questions posted on 2014-08-02 were answered two days latter, 
here:

http://mailinglists.scilab.org/Scilab-users-A-question-about-plotting-tp4031000p4031001.html

Samuel

Le 18/08/2014 04:15, ?? a écrit :


Hi , All:

I have a question about plotting.

I want to plot 2 lines in a graphic , so I type the command as below:

--x=linspace(0,2*%pi,40);

--y1=sin(x)

--y2=cos(x);

--X=[x,x];

--Y=[y1,y2];

Then , I type the plot command :

--plot(x,y1,x,y2);

The result is shown as below:

Graphic window number 0 (2).bmp

But when I type a command as below:

--plot(X,Y);

The result is :

Graphic window number 0.bmp

It  has an additional line.

Why will this line appear?

Thanks for your reply.





___
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