Im having trouble converting my codes from the Antenna toolbox into C/C++, Can anyone help me solve this issue? Thank you!
1 回表示 (過去 30 日間)
古いコメントを表示
Using the anntena toolbox's generated script, i created a function for creating and displaying a dipole antenna's radiation pattern with variable length and width. The function is show below.
function dimension(w,l)
%Define antenna
antennaObject = dipole;
%variable properties
antennaObject.Width = w;
antennaObject.Length = l;
plotFrequency = 75000000;
% show for dipole
figure;
show(antennaObject)
% pattern for dipole
figure;
pattern(antennaObject, plotFrequency)
end
However, using Matlab coder, i've run into issues where the description said
1) The 'Dipole' class does not support code generation.
2) undefined function or variable 'show'
3) undefined function or varialbe 'pattern'
causing the generation of trial code failed
So my question, how can i overcome this issue? Thank you!
0 件のコメント
回答 (1 件)
Bhargavi Maganuru
2020 年 4 月 28 日
Hi,
Function diople doesn't support for code generation, thats why you cannot use the function to generate C/C++ code in MATLAB Coder.
Here is the list of functions that support code generation.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Analysis, Benchmarking, and Verification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!