Program is not working

I got error saying that ??? Undefined function or method 'ceil' for input arguments of type 'logical'.
Error in ==> ray at 22 y_mod=modulate(modem.pskmod(alphabet_M),par);
Can you help me with this?

1 Commento

Jan
Jan il 18 Mar 2012
I assume, that the error message contains also the line with the ceil() command.

Accedi per commentare.

Risposte (3)

Walter Roberson
Walter Roberson il 18 Mar 2012

1 voto

Convert your input data from datatype logical to one of the numeric datatypes, such as uint8(par)

4 Commenti

KARTHICK
KARTHICK il 18 Mar 2012
Can you tell how to convert?
I don't know.please!
Walter Roberson
Walter Roberson il 18 Mar 2012
I am making a guess about which parameter is the problem.
Try the line
y_mod=modulate(modem.pskmod(alphabet_M),uint8(par));
KARTHICK
KARTHICK il 19 Mar 2012
Still its showing error.But this time different error
??? Error using ==> modem.abstractMod.checkModInput at 35
Input X must be an integer-valued double-precision matrix.
Error in ==> ray at 22
y_mod=modulate(modem.pskmod(alphabet_M),uint8(par));
KARTHICK
KARTHICK il 19 Mar 2012
I need a MATLAB code for concatenated channel modeling (i.e)The input must be modulated and encoded.Then it is allowed to pass through AWGN cchannel and Rayleigh fading channel.The result is now decoded,demodulated and error rate should be calculated. The input is 64 bit sequence. I need a MATLAB code. Can you help with this? Please!

Accedi per commentare.

Yasin
Yasin il 15 Mag 2012

0 voti

I think that, it should be right:
y_mod=modulate(modem.pskmod(alphabet_M),double(par));
Shivani S
Shivani S il 11 Dic 2020

0 voti

Undefined function 'pskmod' for input arguments of type 'double'.
Error:
bp=pskmod(b,2)
can u help me with this error?

1 Commento

Walter Roberson
Walter Roberson il 11 Dic 2020
You need the Communications Systems toolbox licensed and installed.

Accedi per commentare.

Tag

Richiesto:

il 18 Mar 2012

Commentato:

il 11 Dic 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by