For questions on interfacing or getting Mathematica to work together with other software or technologies.

learn more… | top users | synonyms (1)

34
votes
5answers
9k views

How to use Mathematica functions in Python programs?

I'd like to know how can I call Mathematica functions from Python. I appreciate a example, for example, using the Mathematica function Prime. I had search about MathLink but how to use it in Python ...
1
vote
1answer
147 views

Printing problem in our campus lab

We have 12 iMacs in our computer lab at our college. Our students are having problems trying to print (to a black and white printer) their notebooks. Testing one students notebook (about 6 pages with ...
7
votes
1answer
128 views

Exporting 2D & 3D graphics for use in Adobe Illustrator

I have recently (perhaps since Mathematica Version 10?) encountered a change in how PDF images are saved and how they behave after being loaded into Adobe Illustrator (v16.0.4 under Mac OS X 10.10.5). ...
5
votes
0answers
46 views

How can I wrap a C++ object in WSTP?

I am trying to wrap a sophisticated C/C++ API in Mathematica using WSTP, but can't work out how to return a pointer to a C/C++ data structure. This object was created on the C/C++ side of the wrapper, ...
7
votes
2answers
81 views

Why doesn't Import work with XOWA offline Wikipedia database?

I'm having trouble with importing HTML from XOWA offline wikipedia database. I set up a local server for datamining, but I can't access it with Mathematica. I can request a HTML page with ...
7
votes
1answer
99 views

How to call external commands with parameters on Win7?

I'm trying to use the Win7 command prompt from a Mathematica notebook. I'd like to do a couple simple things, but I can't seem to get the syntax straight: open explorer.exe in a specific location ...
1
vote
0answers
69 views

Retrieve rendered graphics via WSTP

I am planning on using Mathematica as calculation and rendering backend for an application, i.e., call Mathematica via WSTP and use EvaluatePacket to have it ...
3
votes
0answers
55 views

Importing sobj sage objects?

I am working with a sage-math object. With some older versions of Mathematica it was possible to send data directly but the function doesn't work with Mathematica 9. What are my options to import a ...
6
votes
2answers
171 views

Mathematica-exported PDFs placed in Illustrator documents keep disappearing

This question is regarding interoperability between Adobe Illustrator and Mathematica. Illustrator has a File → Place... function which can insert complete figures inside Illustrator documents. ...
16
votes
1answer
916 views

Executing Maple Code Inside Mathematica

Is it possible to create a C++ program using MathLink that will invoke the Maple kernel and execute a very basic Maple command using OpenMaple? I'm envisioning the following: ...
12
votes
3answers
1k views

How can I transfer mathematical expressions between Mathematica and Maple?

Is there a simple way to copy mathematical expressions between Mathematica and Maple (or at least in one direction)? I mean only expressions built from numbers and predefined mathematical functions, ...
2
votes
0answers
66 views

Does Mathematica have a plug-in for communicating with an Android device?

I am trying to take input from an Android device, do some processing in Mathematica and pass the final output back to the device, so I need a plug in to communicate to an Android device.
3
votes
1answer
99 views

Handling error in WSTP program C/C++

I have a program, written in C++, which uses WSTP to communicate with Mathematica 10 (i.e., linked using Install["name_program"]). How should my code report an ...
74
votes
5answers
5k views

Minimal effort method for integrating C++ functions into Mathematica

As of Mathematica 8, what is the minimal effort way to integrate an existing C++ function into Mathematica? I think we have these: MathLink (it was quite long ago I used it last time) communication ...
7
votes
1answer
234 views

How to integrate Mathematica with other software

Mathematica is a fantastic platform for Mathematical analysis, physics, quantitative finance and most realms of scientific work. However, it doesn't serve well for general purpose programming, in ...
1
vote
0answers
83 views

How to trigger Emacs to open a file from Mathematica? [duplicate]

I thought Run will do the trick: Run["emacs -q " <> myfile] Run["! emacs -q " <> myfile] But it does not! I'm ...
10
votes
3answers
511 views

How to trigger UNIX command-line command from Mathematica notebook?

At UNIX command line, one can run ls -la $HOME. How to trigger this from Mathematica notebooks? Run["!ls -la $HOME"] ...
0
votes
0answers
61 views

How to call rsync from Mathematica?

I've tried following a few answers on how to control processes from Mathematica, but none of them are working for me. I am using rsync to download some files with flags for resumeability and ...
18
votes
5answers
3k views

Is there a way to run Python from within Mathematica?

I know there is some support for running Mathematica from Python, but is there any way to do the reverse. For example, to import some Python classes and use them in Mathematica?
2
votes
2answers
172 views

Interact with external program

I'm using NMinimize with Mathematica 7 using an external Fortran program to get the target value to minimize. I'm doing it using RunThrough with the variables as ...
0
votes
0answers
122 views

Internal coupling of Fortran and Mathematica codes

I am writing a code in Mathematica. There is another code in Fortran which needs boundary conditions (as inputs) to run. Fortran inputs are the outputs of the Mathematica code. I can do this manually ...
0
votes
1answer
107 views

Running external program from command line

This command works on Windows: ReadList["!" <> "echo hello", String] Assuming the "!" suggests Windows command shell (verified as ...
1
vote
0answers
43 views

Exchange variable value between Mathematica and Autohotkey script

I have a script written with AutoHotkey and would like to send some data to and from Mathematica. For now I am using the CopyToClipboard[] function in Mathematica ...
6
votes
1answer
104 views

Using Wolfram Library Reference in Excel VBA

Long time ago I did this question to MathGroup, but without success. In Excel VBA, in Tool/References, there is a option called "Wolfram Mathematica Control 8.0 Type Library" I belive that ...
6
votes
1answer
212 views

What devices are supported by the connected devices framework?

One of the new features in v10 is support for connected devices. How can I find out if a particular device is supported by Mathematica? Is there a complete list? Is support being added continually? ...
8
votes
0answers
203 views

Step-by-step instruction to Install C Compiler

I remember using C compiler on my previous computers, and I never had any problems installing them. At this time, however, I failed to work through the instructions provided in Mathematica ...
15
votes
1answer
2k views
11
votes
0answers
143 views

Calling Sage functions from Mathematica

I recently found a very useful open-source math software called Sage, which provides many useful functions lacking in Mathematica. Since I'm more used to the Mathematica language instead of the ...
4
votes
1answer
222 views

How can I integrate Open-CV with Mathematica?

I would like to run Open-CV functions from within Mathematica, can anyone figure out how to do this?
7
votes
1answer
104 views

Is it possible to move .mx file from one server to other?

I have mathematica file in one server along with .mx file. Is there any way to move the .mx file from one server to other such ...
3
votes
1answer
214 views

How can I trans-compile Mathematica into another language?

I'm looking for an exhaustive list of source-to-source compilers to all other languages, if any exist that is.
11
votes
1answer
524 views

RLink and R v3.0.1?

Running InstallR["RHomeLocation" -> "C:\\Program Files\\R\\R-3.0.1"] results in a popup box titled "Version Mismatch" saying Error: R.DLL version does ...
3
votes
1answer
102 views

Compatibility of Mathematica 10 and Endnote 7 on OS X

Given the new updates, are EndNote 7 and Mathematica 10 compatible when running on OS X?
9
votes
1answer
483 views

Mathematica File Organization

Last year I asked how to integrate notebooks to the documentation center in stackoverflow. Back then I was only interested in seeing those notebook and being able to search for them. Unfortunately, it ...
37
votes
3answers
4k views

Calling MATLAB from Mathematica

How can I call MATLAB functions directly from Mathematica and transfer data/variables between the two systems?
14
votes
1answer
833 views

Is it possible to use C# LINQ from Mathematica using .NET/Link?

Using Mathematica's .NET/Link (NETLink`) package, is it possible to call out to .NET's LINQ facilities for list manipulation and other operations?
10
votes
1answer
312 views

Wikipedia People only search

I am trying to search people from Wikipedia(For example .*John.* in REGEX). The following query is close, but it isn't generalized like ...
5
votes
0answers
148 views

Can Apple's Numbers spreadsheet link to a Mathematica function?

I use Apple's Numbers spreadsheet for a single thing, a double entry accounting model to understand complicated financial transactions. A current model depends on the value of a single initialization ...
2
votes
1answer
257 views

Converting code in other languages to Mathematica code

Do you know of any work being done on the idea of bringing in code from languages like PERL, PHP, Python, etc.? That is import the code in some way and then convert it to Mathematica code?
4
votes
1answer
79 views

Control Object Annoyance

This may seem like is a trivial annoyance, but it really is a control object "convenience of use" issue. Example: I want to use a popup menu to determine which Excel worksheet I take data from, as ...
1
vote
0answers
112 views

Load a Mathematica Notebook using .Net code

I have gotten a tremendous amount of information from the question posted at (Load a Mathematica Package via .Net code), which my application is very similar to. Specifically in that thread, the ...
4
votes
1answer
430 views

RefProp in Mathematica

RefProp by NIST is a program that calculates the thermodynamic properties of fluids. I need to call certain RefProp functions ...
2
votes
1answer
151 views

Clojuratica setup

I am trying to get Clojuratica set up (MMa v 9 free trial) (on a Mac running Mavericks) I am following the instructions in "Clojure Data Analysis Cookbook" but have also followed the instructions: ...
2
votes
0answers
149 views

Calling Mathematica from Lazarus/Freepascal

I will appreciate if anyone can give me an hint about freepascal and mathematica mathlink communication. I'd like to build a Form using Lazarus/freepascal that call mathkernel. I'm trying to move ...
21
votes
3answers
1k views

Calling external commands without showing command prompt on windows

I'm playing around with some code that's calling external command-line commands on a windows platform, and when doing this, the command prompt will pop up quickly and then disappear. This is not a ...
0
votes
1answer
202 views

Making a C++ callable .lib or .dll file from a Mathematica notebook [duplicate]

MATLAB supports conversions of their function files into C++ callable libraries. I was wondering if the same feature is also available in Mathemathica? If yes, can you please guide me where I can ...
2
votes
1answer
182 views

Exported PDF copy-and-pastable

Is it possible to export pdf documents that allow the user to copy and paste the exported code/text? The following table demonstrates what is pasted after copying the example symbols from a pdf ...
1
vote
1answer
493 views

Calling Mathematica from Java

I'm trying to write a Java program that uses Mathematica code, but when I compile it, a window appears asking for MathLink. I enter ...
5
votes
2answers
177 views

Reading non-tabular data with NaN-s from file

A NaN stands for an entry that is not a number/undefined/missing/infinite/etc. On my machine the C code printf("%f", 0/0.) produces ...
11
votes
1answer
413 views

How do I evaluate Mathematica expressions and insert them in a LaTeX file?

I want to make use of Mathematica as the backend to solve some computations used in my LaTeX input file. As I have no knowledge to make it in Mathematica, I used Maxima as explained in the following ...