can anyone help me with this function.. i'm new to matlab and i need this for my research

1 回表示 (過去 30 日間)
Aldin Topalovic
Aldin Topalovic 2022 年 1 月 22 日
回答済み: KSSV 2022 年 1 月 22 日
can anyone help me with this function.. i'm new to matlab and i need this for my research and i'm still stuck on this.
when i run this function it says:
Not enough input arguments.
Error in untitled (line 8)
y=step(Turbo, u, intrlvrIndices);
function y=TurboEncoder(u, intrlvrIndices)
%#codegen
persistent Turbo
if isempty(Turbo)
Turbo = comm.TurboEncoder('TrellisStructure', poly2trellis(4, [13 15], 13), ...
'InterleaverIndicesSource','Input port');
end
y=step(Turbo, u, intrlvrIndices);

回答 (1 件)

KSSV
KSSV 2022 年 1 月 22 日
You have to provide the inputs to the function. It seems you are either calling the function without providing inputs or running it by hitting F5 key or run button.
u = define your value ;
intrlvrIndices = define your value ;
y = TurboEncoder(u, intrlvrIndices) ; % now call the function
Note: To use/ call the function, it should be in the present working directory.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by