## Spiral cone in MATLAB (no built in function)

MATLAB CODE: t=0:0.0001:30*pi; x=t.*cos(t); y=t.*sin(t); plot3(x,y,t) This is a very simple code. Check, how to ...

## MATLAB Program for Hypnotic Spiral Vector Image

Program: Code for Hypnotic spiral vector image t=0:0.001:30*pi; x=t.*cos(t); y=t.*sin(t); plot(x,y); axis square  Join ...

## Video Processing in MATLAB

Process video with functions and System objects that read and write video files, perform feature extraction, motion estimation and object...

## Data Analysis with MATLAB for Excel Users

Many technical professionals find that they run into limitations using Excel for their data analysis applications. This webinar highlights ...

## MATLAB for New Users

Join us as we introduce MATLAB, the easiest and most productive software for engineers and scientists. Whether you’re analyzing data, dev...

## Linear convolution using Circular convolution(Without conv function)

MATLAB Program: Linear convolution without conv function code: x1_n=input('Enter the first sequence'); x2_n=input('Enter the...

## How to Create a GUI with GUIDE - MATLAB Tutorial

Learn how to create a graphical user interface using GUIDE, the graphical user interface development environment of MATLAB.

## How to Write a MATLAB Program - MATLAB Tutorial

Learn how to write a basic MATLAB program using Live Scripts and learn the concepts of indexing, if-else statements, and loops. ...

## Circular shift in MATLAB(with and without built in function)

CODE: Without built in function: x_n=input('Enter the sequence:'); m=input('Enter required amount of shift:'); N=le...

## Example 2 on circular convolution in MATLAB

CODE: x1_n=[1 2 3 1]; x2_n=[4 3 2 2]; N=4; X1_K=fft(x1_n,N); X2_K=fft(x2_n,N); X3_K=X1_K.*X2_K; x3_n=ifft(X3_K) Output: x3_n...

## Circular Convolution using MATLAB

Code: x1_n=[0 1 0 1]; x2_n=[1 2 1 2]; N=4; K=0:3; X1_K=fft(x1_n,N); X2_K=fft(x2_n,N); X3_K=X1_K.*X2_K; x3_n=ifft(X3_K) ...

## Inverse FFT(DFT) in MATLAB

Example 1: X_K=[12,1+0.4142*j,0,1+2.4142*j,0,1-j*2.4142,0,1-0.4142*j]; x_n=ifft(X_K) Example 2: X_K=[10,-2+2*j,-2,-2-2*j]; x_n=...

## Discrete Fourier Transform in MATLAB

For DFT x_n=[1/3,1/3,1/3,zeros(1,13)]; N=16; K=0:15; X_K=fft(x_n,N); subplot(2,1,1); stem(K,abs(X_K)); ylabel('Magnitude par...

## FAST FOURIER TRANSFORM in MATLAB

clc n=0:3; x_n=[1,1,2,3]; subplot(3,1,1); stem(n,x_n); N=4; X_K=fft(x_n,N); k=0:3; subplot(3,1,2); stem(k,abs(X_K)); subplot(3,1...

## Numerical Problem on DTFT using MATLAB

CODE: w=0:0.01:2*pi; r=0.9; w0=pi/2; a=-r*cos(w0); alfa=2*a; beta=r^2; num=[1 a]; den=[1 alfa beta]; h=freqz(num,den,w); subplot(2,1,1); pl...

## Discrete Time fourier transform in MATLAB|PART 3

Code: w=-4*pi:0.01:4*pi; num=[2 1]; den=[1 -0.6]; h=freqz(num,den,w); subplot(2,2,1); plot(w/pi,abs(h)); ylabel('Magnitude'); s...

## Discrete Time Fourier Transform in MATLAB|Part 2

CODE: w=0:0.01:2*pi; a=; b=[1 -0.8]; h=freqz(a,b,w); subplot(2,1,1); plot(w/pi,abs(h)); ylabel('Magnitude'); subplot(2,1,2); plo...

## Discrete Time Fourier Transformation in MATLAB|PART 1

The discrete-time Fourier transform has essentially the same properties as the continuous-time Fourier transform, and these properties pla...

## Signal Energy in MATLAB

Use MATLAB to determine the energy of the sequence x[n]=2n, −4 ≤n ≤ 4 n=-4:4; x_n=2*n; E=sum(abs(x_n).^2)

## Numerical on Random sequences generation in MATLAB

Program: n=0:50; x_n=cos(0.04*pi*n); w_n=randn(size(n)); z_n=x_n+w_n; stem(n,z_n);

## Random sequence Generation in MATLAB | Part 1

Many practical sequences cannot be described by a mathematical expression. These sequences are called random (or stochastic) sequences a...

## Realization of "Addition" in MATLAB with example

close all clc; n=0:20; x_n=n.*((n>=0)-(n>=10)); subplot(3,1,1); stem(n,x_n); y_n=(n>=10)-(n>=20); alfa=-0.3*(...

## Plot a unit circle using sine and cosine functions in MATLAB | M-file

close all ; clc; syms t ; t=0:0.001:2*pi; x=cos(t); y=sin(t); plot(x,y); axis square ; Please follow us: https...

## Realization of a periodic Signal in MATLAB

MATLAB Program: n=-20:20; x_n=cos(3*pi*n/7); subplot(2,1,1); stem(n,x_n); subplot(2,1,2); plot(n,x_n);

## Signum function in MATLAB | m-file

%Signum function in MATLAB close all ; clc; n=-20:20; x_n1=n>=0; subplot(3,1,1); stem(n,x_n1); x_n2=n<=0; subplot(...

## Numerical questions on Digital Signal Processing | M-file

%Matlab questions on Digital Signal Processing close all ; clc; n=-5:5; x_n1=n==-2; x_n2=n==4; y_n=2*x_n1-x_n2; stem(n,y_...

## Complex Exponential Signal in MATLAB | M-file

%Complex Exponential Signal in MATLAB close all ; clc; n=-20:20; alfa=-0.1+0.3j; x_n=exp(alfa*n); subplot(4,1,1); stem(n,...

## Real Exponential Signal in MATLAB | M-file

%Real Exponential Signal in MATLAB close all ; clc; n=-20:20; x_n=(0.9).^n; stem(n,x_n); xlabel( 'Time sample' ); yl...
MATLAB  