title: How to make a Simple FIR Filter using Matlab?
body: <p>How can I make a simple low-pass FIR filter using Matlab (without using the built-in function) ?</p>
  
  <p>Problem example:</p>
  
  <pre><code>Implement a FIR LPF with cut-off frequency 250Hz
  </code></pre>
  
  <p>it may also be necessary that, sampling freq is given...</p>
  
  <p>Solution attempt or what I already know:</p>
  
  <pre><code>x = [...] -&gt; input signal
  A = 1; -&gt; Since this is FIR
  B = [?????]
  y = filter(B, A, x) -&gt; Output signal
  </code></pre>
  
  <p>Afaik, B should contain the coefficients for the FIR filter. But; how do I calculate these coefficients given that I only have the cut-off frequency?</p>