how to randn function compile to dll

Risposte (1)

Walter Roberson
Walter Roberson il 22 Giu 2016

0 voti

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 Commenti

ex)
function y = test(m,s,n)
y = m + s * randn(1,n)
how to comoile this mfile?
https://www.mathworks.com/matlabcentral/answers/164490-how-to-create-a-dll-from-a-matlab-code#answer_161232

Questa domanda è chiusa.

Richiesto:

il 22 Giu 2016

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by