This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h = @(n,wc,ws) 2*wc/ws*sinc(n*2*wc/ws); % impulse response of a lowpass filter in discrete domain, ws sampling angular frequency, wc cutoff frequency | |
h_causal = @(n,wc,ws,N) h(n-(N-1)/2,wc,ws); % causal version of impulse response | |
N = 33; % given in question | |
wc = 2*pi*500; % given in question | |
ws = 2*pi*8000; % given in question | |
i = 0:(N-1); % indexer, vector length is N-1. | |
bi = h_causal(i,wc,ws,length(i)); % FIR gains |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Original code available to download in: https://docs.google.com/document/d/1zQxnDVBOtXf0OEUH-vTztGY1Dbm72WlglKVueo0TqgU/edit | |
% This code was shared by Brian Douglas in youtube.com link: https://www.youtube.com/watch?v=sof3meN96MA | |
% ------------------------------------------------- | |
% A small interative demonstration of Cauchy Argument Principle | |
% ------------------------------------------------- | |
function Interact(Pos) | |
if nargin == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [ routhm, characteristic, n_unstable_poles ] = routh(pol) | |
try | |
assert( all( size(pol,1) == 1 ) ); | |
catch ERR | |
rethrow(ERR) | |
end | |
pol_order = size(pol,2)-1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for d in */ ; do | |
HOME=$(pwd)/$d; | |
echo $d; | |
# Remove the comment by your need | |
# megasync # first run (configure client by client at once) | |
# megasync 2> /dev/null & # load all clients at non blocking way | |
done |
NewerOlder