Tips & Tricks

Follow us:

Tips & Tricks



% Lowpass filter


% x - Vector with the input signal values

% k - Filter constant

% y0 - Initial value of the output signal


% Autor: noro,


function y = lp_fiter(x,k,y0)

% get size of signal

sizeData = size(x,2);

% init the output vector with the same size

y = zeros(1,sizeData);

%init value

y(1) = y0;

% low pass filter

for i=2:sizeData

y_old = y(i-1);

y(i) = (1-k)*y_old + k*x(i);

y_old = y(i);


How to write a simple low pass filter in Matlab

A very simple low pass filter function in Matlab ca be like this:



Jumb between braces in code editor (Visual Studio Express Edition)

Put the cursor in the front or back of the brace and press Strg + ` for the german keyboard and Ctrl + ] for the english keyboard.


Linux: Set the German Keyboard on Remote (RDP)

setxkbmap -model pc105 -layout no


Linux: Permission of a Samba-Share

If you shared a folder on a linux machine let say /home/share you have to change the security context of the shared folder:

chcon -R -t samba_share_t /home/share

In this way you can access the shared folder form Windows network.


Linux: Resolve GRUB "invalid arch independent ELF magic" error

Boot into the live CD and set the grub root directory. You must give of course your partitions. For me the sda1 partition is the partition where the boot/grub lies.

sudo apt-get install grub-efi-amd64

sudo mount /dev/sda1 /mnt

sudo grub-install —root-directory=/mnt /dev/sda




Copyright 2018, noro24 @ All Rights Reserved