Very useful! I modified this a bit to generate many random numbers more efficiently -- in case this would be helpful to anyone else, the modified file is at: https://github.com/tensorjack/randarbmulti/blob/master/randarbmulti.m
More resources, including demos and videos, for implementing and speeding up Monte Carlo simulations in both MATLAB and Simulink man be found here:
I have a problem with importing an STL graphics file to the Simulink diagram. I've tried making the model both in UGS NX and SolidWorks but when I import it, the dimensions are multiplied a 1000 times.
I think it's because Simulink's default lenght unit is 'm' but every CAD software writes it in 'mm'. As I look-up into the binary file, there's no real information about the units in the STL file so my question is: how do I change the default unit in Matlab or how can I convert the STL file itself to match my requirements.