Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to randn function compile to dll

2 次查看(过去 30 天)
Hojae Ahn
Hojae Ahn 2016-6-22
关闭: MATLAB Answer Bot 2021-8-20
how to randn function compile to .dll?

回答(1 个)

Walter Roberson
Walter Roberson 2016-6-22
Just put a call to it in the function that you compile with the MATLAB Compiler product or MATLAB Coder product. randn() is not on the list of functions that cannot be compiled, so just code your call and apply the Compiler or Coder product.
  2 个评论
Hojae Ahn
Hojae Ahn 2016-6-22
ex)
function y = test(m,s,n)
y = m + s * randn(1,n)
how to comoile this mfile?
Walter Roberson
Walter Roberson 2016-6-22
https://www.mathworks.com/matlabcentral/answers/164490-how-to-create-a-dll-from-a-matlab-code#answer_161232

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by