Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Piecewise function in matlab

Status
Not open for further replies.

ahmad_abdulghany

Advanced Member level 4
Advanced Member level 4
Joined
Apr 12, 2005
Messages
1,206
Helped
102
Reputation
206
Reaction score
22
Trophy points
1,318
Location
San Jose, California, USA
Activity points
11,769
matlab piecewise function

Hello
you can manually implement your Delta Dirac Function like this

deltat = 0.0002; % Define the sampling interval
t = 0:deltat:0.0100; % Define the time range
delta = zeros(1,length(t)); % Define the Dirac delta function
delta(1) = 1/deltat; % Finish defining the Dirac delta function

This is my solution, you can find mor help in the www.mathworks.com

I hope that helps.
Best regards
 

    mukundanm

    Points: 2
    Helpful Answer Positive Rating
piecewise function matlab

Thanks for your help.
I wanted an inline function, but i'll try mathworks. thanks for pointing me there.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top