compilation - function 'normrnd' in excutable compiled by matlab mcc doesn't work -
i have file named myfunction.m, content is:
function []=myfunction() z = normrnd(0,1) each time issue comman myfunction in matlab, random result.
then, compile myfunction.m using command:
mcc -m myfunction.m and obtain excutable named myfunction.
and seek excute in matlab using command:
!myfunction however results no longer random...instead fixed number, 0.5377..
this wired. why? os linux.
matlab compilation mcc
No comments:
Post a Comment