Output variable in matlab function block of simulink is not of matlab type. How to resolve this?

Hello buddies.. I'm currently working on finding and plotting BER for OFDM system using simulink. I use the embedded matlab function to implement the semianalytic function. Please find the code below.
function y = fcn(u,v)
eml.extrinsic('semianalytic');
EbNo = [0:1:50]
y = semianalytic(transmitsig,receivesig,'psk/nondiff',4,100,EbNo);
When I try to execute this code i get an error that output function y is not of matlab type. Please help me resolve this error soon. Many thanks in advance.

 채택된 답변

Please see my answer for a similar question that was previously asked.

추가 답변 (0개)

카테고리

제품

Community Treasure Hunt

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

Start Hunting!

Translated by