Posts

Showing posts from August, 2016

To find union, intersection and complement of matrices > Matlab

To find union, intersection and complement of matrices > Matlab Digital Signal Processing Program: u=input( 'Enter matrix data' ); v=input( 'Enter second matrix' );

Cross Correlation between two Digital Signals > Matlab

Image
Cross Correlation between two Digital Signals > Matlab Digital Signal Processing %Cross Correlation clear all x=input('Enter x :'); y=input('Enter y :'); m=length(x); n=length(y);

To implement convolution of two Digital Signals > Matlab

Image
To implement convolution of two Digital Signals > Matlab Digital Signal Processing %Convolution clear all x=input('Enter x :'); h=input('Enter h :'); m=length(x); n=length(h); X=[x,zeros(1,n)]; H=[h,zeros(1,m)];

Solution for Water Jug Problem with 2 Jugs > Java Program

Solution for Water Jug Problem with 2 Jugs > Java Program Artificial Intelligence Program: public class Jug {     static int flag=0;    public static void main(String[] args) {       state(0,0);        System.out.println("EXIT");     }