

Regarding Scilab commands xcorr
I am facing a problem with 'xcorr' inbuilt function, i.e the function is working in Scilab on Windows OS platform , whereas the function is giving an error as undefined function in Scilab on Linux OS Platform.
I am requesting some suggestions from your side.
Awaiting for your kind reply.
clc;clear; x=input('enter the sequence x[n]'); L=length(x) rxx=xcorr(x); disp(rxx); n=0:1:L-1; c=-(L-1):1:(L-1); figure(1) subplot(211);plot2d3(n,x);xtitle('input sequence','n','x(n)'); subplot(212);plot2d3(c,rxx);xtitle('Autocorrelation sequence','n','rxx(n)');
Scilab


The function "xcorr" is an in-built function in Scilab and should work irrespective of the OS. I tried your code on Scilab-5.5.2 and Scilab-6.0.0 over Ubuntu 16.04 64-bit OS. It worked.
Rupak
Login to add comment