Alternate instruction in scilab for filtic in matlab
Regarding use of filter instruction we have problem . The program runs well if there are no initial conditions. But we are not finding an alternative for instruction filtic ( matlab ) in scilab . Can you please help us. I have attached the codes
clc; clear; // Difference equation is y[n]+3y[n-1]=x[n]+x[n-1]; x[n]=(1/2)^n u[n];y(-1)=2 n = 0:3; a =[1 3]; //left hand side of difference equation b =[1 1]; //right hand side of difference equation yi=; xi=0; x=(1/2).^n; y=filter(b,a,x,yi) plot2d3(n,y,1) plot(n,y,'r.')
Please install the FOSSEE Signal Processing Toolbox- https://scilab.in/fossee-scilab-toolbox/signal-processing-toolbox. The installation instructions are given. filtic function is available in the toolbox. Please post any bugs or error that you may encounter.