[Scilab-users] Problem using convol() function in scilab

Shantanu Dutta shantanudutta1994 at yahoo.com
Mon Apr 14 17:46:38 CEST 2014


Thanks Samuel Gougeon, it worked.
On Monday, April 14, 2014 6:13 PM, Samuel Gougeon <sgougeon at free.fr> wrote:

Le 14/04/2014 14:27, Shantanu Dutta a écrit :
> Hello everyone!
> I want to find convolution of two functions using scilab. I've seen a 
> book a Matlab solution which I modified to run in scilab.
> My code is as follows(Numbers at begining are line no.s):
>
> 1. t1=-10:.1:0;t1=t1';
> 2. g1=-2*exp(2*t1);
> 3. t2=0:.1:10;t2=t2';
> 4. g2=2*exp(-t2);
> 5. t=[t1;t2];g=[g1;g2];
> 6. f=[zeros(size(g1));ones(size(g2))];

f = [zeros(g1); ones(g2)];
// should make your script working

HTH
Samuel


_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list