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.

Basic Matlab time shift query

Status
Not open for further replies.

INS-ANI

Full Member level 3
Full Member level 3
Joined
Feb 28, 2007
Messages
152
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
2,377
here is the problem statement
(this is not H.w :) )

x[n]=[-1,2,0,4]
(origin at 0)
plot x[-n]+x[1-n]


I have just started matlab and would appreciate if you can help me with the concept behind this problem's solution.

Thankyou.
 

Looks like homework.
 

sir my class is still stuck at basic dsp,its part of the practice assignment taken from previous batch (senior)
 

Sir, I had tried fliplr but was not getting desired results..please look at my code.
This is a code to plot X[-n]..

x=[-1,2,0,4];
n=-2:1;
k=fliplr(x);
m=-n;
plot(m,k)


grid on
xaxis('x axis:n')
yaxis('y axis:x')

The problem i am facing is how to handle X[n] where values in array x are related to n, and subsequently plot them.
Like in this problem, i have managed to get x[-n] by another method, but find my self clueless to plot x[-n] + x[1-n].

I hope i have made myself clear.. i am new to matlab and still struggling to find a right approach.

---------- Post added at 08:21 ---------- Previous post was at 07:40 ----------

please help me with this:
if x=[4 0 2 -1]
with origin at 0.
how can i create x1=[[4 0 2 -1] with its origin at 4?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top