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

1 view (last 30 days)
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.

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 27 Mar 2013
Please see my answer for a similar question that was previously asked.

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!