answersLogoWhite

0


Best Answer

Below is one simple code to generate unit impulse.

clc

close all

n1=-3;

n2=4;

n0=0;

n=[n1:n2];

x=[(n-n0)==0]

stem(n,x)

The resultant impulse will be

00010000 in a graphical manner.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Matlab code to generate unit impulse?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

How many kilowatts can one solar panel create in one month?

The same as it can generate in a day, or in a year, or in a second. Kilowatt is a unit of power, not a unit of energy.


What is unit testing?

Unit testing is a software testing method by which individual units of source code are tested to determine whether they are fit for use.


Unit ramp in matlab?

This following loop creates a unit ramp input : for t= 0:0.1:5 if(t<=1) y(count) = t; end if(t>1) y(count) = 1; end Rz(count) = tf(y(count)*T,[1 -2 1],T); Rs(count) = d2c(Rz(count)); end % T = 0.005; this is for a discrete system


How do you define unit testing?

Unit testing can be done during the development of an application. The objective of unit testing is to isolate a section of code and verify its correctness. In procedural programming a unit may be an individual function or procedure The goal of unit testing is to isolate each part of the program and show that the individual parts are correct. Unit testing is usually performed by the developer.


How many sides did hypercube have?

Number of sides of a hypercube depends on the level. A point is a hypercube of dimension zero. If one moves this point one unit length, it will sweep out a line segment, which is a unit hypercube of dimension one. If one moves this line segment its length in a perpendicular direction from itself; it sweeps out a two-dimensional square. If one moves the square one unit length in the direction perpendicular to the plane it lies on, it will generate a three-dimensional cube. This can be generalized to any number of dimensions. For example, if one moves the cube one unit length into the fourth dimension, it generates a 4-dimensional unit hypercube (a unit tesseract). You can research polytopes for many examples.

Related questions

What is the Matlab code to generate unit step function?

Below code generates unit step function n1=-4; n2=5; n0=0; [y,n]=stepseq(n0,n1,n2); stem(n,y); xlabel('n') ylabel('amplitude'); title('unit step'); It results in a unit step whose value is 1 for time T>0.


What is unit impulse function?

the unit impulse function g(t)


What is impulse function?

the unit impulse function g(t)


What is meant by regelation?

The unit of impulse is


What is the unit of impulse in physics?

Same as the unit of momentum - an impulse is a transfer of momentum. Velocity x mass. Or the equivalent force x time.


What is the standard unit of momemtum and impulse?

The units for impulse are kg.m/s. This is because impulse= (final momentum) -(initial momentum) and the units for momentum are kg.m/s.


Difference between impulse and momentum?

Impulse is another name for change in momentum.Both momentum and impulse have same unit( Ns or kgm/s) . Impulse is also defined as force acting for a time "t". so, Impulse=F*t


Which term describes the amount of thrust created per unit of mass of an engine and fuel?

Specific impulse :)


What does unit use to generate a training schedule?

The unit uses the available programs to generate a training schedule. It also uses the already developed programs to generate a training schedule.


How do you implement simulated annealing algorithm in unit commitment problem?

pleas send to me a sample program fro SA by Matlab


Which term describes the amount of the thrust created per unit of mass of an engine and fuel?

Specific impulse :)


What is the important of unit distance code?

unit distance code mean b c d codes.b c d code is also called unit distance code.it is weighed