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
A=imread('Fig-1.JPG'); | |
figure('name','Original'); | |
imshow(A); | |
resz = imresize(A, 0.25); | |
figure('name','Smaller'); | |
imshow(resz); | |
resz_resc = imresize(resz, 4); | |
figure('name','Rescaled'); | |
imshow(resz_resc); |
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
.486 | |
.model small,stdcall | |
.code | |
prog: | |
PORTA equ 0F8H | |
PORTB equ 0FAH | |
CNTRL equ 0FEH | |
MOV AL, 90H | |
OUT CNTRL, AL | |
BACK: |
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
clear variables | |
[x, Fs] = audioread('gore.au'); | |
thetas = [ | |
pi/6 pi; | |
pi/4 pi; | |
pi/2 pi; | |
2*pi/3 0; | |
5*pi/6 0 | |
]; | |
iter = 1; %Change Me per run |
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
clear variables | |
syms omega | |
thetas = [ | |
pi/6; | |
pi/4; | |
pi/2; | |
2*pi/3; | |
5*pi/6 | |
]; |
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
clear variables; | |
prelab_nr = '1'; | |
z = [(1/sqrt(2)) + (j*(1/sqrt(2))); | |
(1/sqrt(2)) - (j*(1/sqrt(2))); | |
j; | |
-j; | |
-(1/sqrt(2)) + (j*(1/sqrt(2))); | |
-(1/sqrt(2)) - (j*(1/sqrt(2))); | |
-1]; | |
angle = 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
clear variables; | |
z = [ | |
(1/sqrt(2)) + i*(1/sqrt(2)); | |
(1/sqrt(2)) - i*(1/sqrt(2)); | |
-(1/sqrt(2)) + i*(1/sqrt(2)); | |
-(1/sqrt(2)) - i*(1/sqrt(2)); | |
i; | |
-i; | |
-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
[x, Fs] = audioread('gore.au'); | |
b0 = 0.05; | |
numerator = b0 * [1, 1]; | |
denominator = [1, -0.9]; | |
y = filter(numerator, denominator, x); | |
subplot(1,2,1); | |
plot(x); | |
axis([0 length(x) -0.8 0.8]); | |
hold on; |
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
clear variables | |
y = imread('moon.tif'); % Target Image File | |
z = double(y); | |
maximum = max(z(:)); | |
minimum = min(z(:)); | |
b = 7; % Quantiz Bits | |
N = 2^b; | |
Delta = (maximum - minimum)/(N-1); | |
ztemp = z - minimum; | |
ztemp = round(ztemp/Delta); |
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
using System; | |
using System.Runtime.InteropServices; | |
using System.Diagnostics; | |
namespace FGWindow | |
{ | |
class ProcessUtils | |
{ | |
[DllImport("user32.dll")] | |
private static extern IntPtr GetForegroundWindow(); |