How can I use a matlab toolbox (such as randtool) as a function in my M-file? I am going to feed the arguments of the toolbox in my M-file and also use the outputs of the toolbox inside my M-file.
could you provide more information about how (or what for) you want to use randtool in your m-file?
I have never used it, but it seems that it only produces a histogram that can than be changed in the window that opens. Different from other functions that are commonly used in m-files, randtool neither takes any input arguments nor produces output that can be stored in a variable. Maybe you could use rand() in combination with hist() to achieve what you want.