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.

MATLAB command vitdec

Status
Not open for further replies.

Placebo69

Newbie level 6
Joined
Jul 17, 2010
Messages
11
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,360
I wrote a code but i have a problem to the end...
After this b3=pskdemod(b2,2)

I have a matrix with 0 1 for example

b3 =

Columns 1 through 21

1 0 1 1 0 1 0 etc

But when i try the command

b5=vitdec(b3,t,tb,'cont','hard')

There is the following message

??? Error using ==> vitdec
CODE must be a vector of real numbers



If anyone can help...0 1 aren't real numbers??

Thnks in advance!!
 

is 't' your trellis? and what 'tb' are you using? and since you're essentially doing a bpsk demod with pskdemod(b2,2), try doing a slice to implement hard decision bpsk demod (demodout = (b2>0) ), or use b3 = real(b3) in your code.. post the answers you find, and we'll discuss further.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top