There's a set of functions which don't show their code with print when one uses interface(verboseproc=2). These are implemented in Maple kernel.
Is there a list of such functions?
Try issuing the command,
anames(builtin);
This approach is documented on the type,builtin help-page.
Related
There is a function in Matlab called copulafit. How can I see the code that underlies this function? Many numpy and scipy functions for Python are readily open source on Github, but I can't find Matlab functions on Github for some reason
If you have MATLAB installed you can either highlight the function name then secondary/right-click and select Open "copulafit" or alternatively type open copulafit in the command window. Yeah, I believe MATLAB isn't open source as of this posting time/date. Possibly why the reason for the lack of GitHub resources. Octave might be something that might be interesting to look into.
I am writing some simple programms which I am running in scratchpad by calling the name of the programme. I have developed a little script to print all the results at the end of the execution, but I cannot find some way to purge scratchpad before the beginning of the script? Something like 'clear' followed by 'clc' in Matlab.
Thanks in advance.
Ale N.
The TI-nspire version of TI-Basic is very limited in the I/O category, it only has four I/O functions. TI-Basic has no clear function like other versions of TI-Basic do. It is probably possible using other languages, but not using TI-Basic.
As what should I be typing in the Command Window to get the function file to open?
Usually I get a link to them when debugging and an error occurs, but what command can be used to access them directly?
edit functionName, e.g. edit repmat.
There are built-in functions that are not written in Matlab, but for these functions you cannot take a look at the code even if an error occurs.
I would like to call some Matlab functions using Erlang.
I have two separate network models (one comms/control, one energy)
Ideally I would like an Erlang process to send a message which causes some Matlab code to run. After the Matlab code has finished it must notify Erlang.
What is the simplest way of doing this?
I am running Windows 7. Matlab appears to require use of Microsoft Component Object Models which do not seem to be commonly used with Erlang - hence my question...
Thanks,
You can run Matlab statements from the command line:
matlab -r "statements"
Erlang gives you the opportunity to open ports to execute OS commands. Combining the two features should do the job for you. Have a look to the os:cmd/1 function. For example, you could simply do:
os:cmd("matlab -r STATEMENT").
This was asked before, but the solution doesn't seem to work on MacOS. Wolfram Library has a package for 7 year old Matlab version. Is there a solution that works on MacOS 10.6 and Matlab 7.9?
I want to call CVX from Mathematica
You could use RunThrough["command",expr], this runs the external command command, and feeds expr (a Mathematica expression) as input to command
An example of a suitable command would be "matlab -r \"matlab expr\"", you could place your CVX specific code in the "matlab expr" string.
Update: Right now, probably MATLink is the best way to do this. It works on Windows/Linux/Mac.
Disclosure: I'm one of MATLink's authors.
Have you tried using the newer mEngine instead? I can only try it on Windows, but after looking at the sources, I believe it might work on other platforms too.
Hopefully you only need to modify main.c, actually just copy and paste the main function from one of the MathLink examples (e.g. addtwo), as mEngine's main.c has the non-Windows-specific part removed. Then compile the package as a MathLink program.