Is it necessary to declare functions and function calling in matlab code for hdl conversion?

1 次查看(过去 30 天)
Hello, I'm working on a project 'PCA' which deals with large valued random matrix, currently I'm dealing with 10x5 random matrix. I'v used simple matlab functions like eig, rand and likewise, but didnot include any function declaration and function calling. And also I'm unable to convert my code in vhdl through hdl coder.

采纳的回答

Walter Roberson
Walter Roberson 2016-7-21
As far as I recall, HDL Coder will refuse to compile a script as the main object. You must put a function header on the script in order to make it the entry point.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 HDL Coder 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by