when i have processed this code with math script i found one errror . how we can elliminate this error.
only i want to proces this dc shift function by labview.
i am forwarding the codes which are
function [Sig]= dcshift(Signal)
Signal=load('C:\MATLAB6p5\work\EEG programs\mat files-good 4 sec epochs\Dayanand_36.mat');
n=length(Signal);
avg=0;
for i=1:n
avg=avg+Signal(i).dayanand00_36_00_39;
end
avg=avg/n;
Sig=Signal(i).dayanand00_36_00_39-avg;
hold on
plot(Sig-avg)
plot(Sig)
%plot(avg)
hold off
axis([300 400 -inf inf])
thanks & regards
rachana