How can i fix this code and simulate? ( Thank you so much!)

1 view (last 30 days)
when i run, have a error " Undefined function 'slot_format' for input arguments of type 'double'.
Error in Untitled1 (line 40) s_format = slot_format(sf_no); % returns slot format: s_format(1)=sf, s_format(2)= Ndata1, s_format(3)= Ndata3, s_format(4)= Ntpc, s_format(5)= Ntfci, s_format(6)= Npilot"
  2 Comments
per isakson
per isakson on 26 Apr 2014
Proposals
  • rephrase your question
  • do not include more than a few lines of code in the question
  • put the code in an attachment

Sign in to comment.

Accepted Answer

per isakson
per isakson on 26 Apr 2014
Edited: per isakson on 26 Apr 2014
slot_format is obviously not defined when the line
s_format = slot_format(sf_no);
is reached. I created a function
function str = slot_format( jj )
jj = rem( jj-1, 6 ) + 1;
cac = { 'sf', 'Ndata1', 'Ndata3', 'Ntpc', 'Ntfci', 'Npilot' };
str = cac{jj};
end
to see if that would make your script run. However, it erred at the line
pilot_slot = s_format(6);
because s_format is a scalar.
  3 Comments
per isakson
per isakson on 9 May 2014
Sorry, I know nothing about smart antennas. However, have you searched the File Exchange for smart antenna

Sign in to comment.

More Answers (0)

Categories

Find more on Analysis, Benchmarking, and Verification in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!