5
votes
1answer
482 views

Tooltip for a ListPlot3D

I am getting stuck with figuring out how to use Tooltip for a ListPlot3D. Basically I have a list of values for the 3D plot (no ...
4
votes
1answer
413 views

How to perform DialogInput operation within Button

Can someone clarify how to perform a DialogInput operation within a Button? I wrote some code for that but it's not working. ...
20
votes
3answers
859 views

Creating DotPlots

I've been struggling to create a DotPlot like the one shown in Cleveland's The Elements of Graphing Data. Using the following dataset ...
5
votes
1answer
528 views
9
votes
1answer
505 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 ...
4
votes
1answer
306 views

Evaluation inside Button stops after some seconds

I would like to trigger a long calculation inside a dynamic module with a Button. It seems that the evaluation stops without an error-message after some seconds. I made a test outside the a dynamic ...
1
vote
2answers
429 views

solving for one solution to a system of polynomials

I'm trying to solve a system of equations: ...
17
votes
3answers
1k views

Mathematica Sec and Csc

How can I prevent Mathematica from using the "old fashioned" functions "Sec" and "Csc"? In Germany these functions are "old fashioned" as they are not taught anymore at school.
3
votes
2answers
409 views

What is the command to find function invariant?

What is the command to find function invariant? http://demonstrations.wolfram.com/AFunctionInvariantUnderAGroupOfTransformations/ what is algorithm it use to calculate this? Edit there is a book ...
4
votes
4answers
946 views

How to change color dynamically?

I am new to Mathematica and want to change the FillingStyle Dynamically in this Plot. I want ...
4
votes
2answers
1k views

expanding a polynomial and collecting coefficients

I'm trying to expand the following polynomial ...
4
votes
1answer
501 views

How can I regulate 'Play sound duration' in Mathematica 8

How can I regulate the time of play sound[s] - duration in Mathematica 8. I want to import and save wav file in *.nb document & manipulate (with) the sound duration, for example, select sound ...
16
votes
4answers
1k views

How to fill in an irregular border of an image

I have the following code which draws a graphic, and colors the regions in it different colors: ...
21
votes
1answer
462 views

How can I easily eliminate the dependency of a stylesheet on a non-built-in stylesheet?

As per discussion here: User A has a notebook that uses custom definitions from styles.nb. Now user A passes the notebook to user B. The styles do not show up for B because B does not have styles.nb. ...
6
votes
1answer
4k views

More on combining 2d and 3d plots

This is a spin off/follow up to Can 2D and 3D plots be combined so that the 2D plot is the bottom surface of the 3D plot boundary? ... Following Sjoerd's method, I did this: ...
2
votes
2answers
154 views

Custom function not returning any output

I'm trying to write a custom function but it isn't returning any output. Here's my code so far: ...
60
votes
1answer
3k views

Profiling from Mathematica

I've always wished I could do some profiling like you get in Wolfram Workbench, but directly from Mathematica, without using or having Workbench. If it is possible, how can I do it?
6
votes
1answer
1k views

When do I use Mathematica, when do I use Gephi, and how do I use them together?

Mathematica has great operations for analyzing graphs but when the graphs are a bit bigger, Gephi seems to be more efficient (at least on my computer) at drawing and analyzing, i.e. visualizing the ...
1
vote
3answers
570 views

Setting the Accuracy of calculations

I need to optimize an expression that involves a number of trigonometric functions and Exp[]. How do I make sure that all my calculations have an accuracy of ...
31
votes
4answers
2k views

Using pure functions in Table

I need a table with the elements made of pure functions and list elements. This is a simplified example: I need a list as: ...
7
votes
2answers
3k views

How to create a rectangle wave (duty cycle $\ne$ 50 %)?

I'm trying to use phase-shifted SquareWave[] functions to create a rectangle wave: ...
12
votes
2answers
293 views

Can RecurrenceTable make use of CompiledFunction?

I'm trying to implement a discrete-time 2D Verlet algorithm for a point-mass subject to a softened gravitational interaction as a test for a more computationally intensive simulation using ...
7
votes
2answers
365 views

Display Log with desired notation in output

I wish to display logarithms with different bases in the single-term rather than numerator/denominator form during output: ...
22
votes
4answers
732 views

Defining functions in stylesheets

Is there a way to define functions in a stylesheet? So far I have managed to write my stylesheets without the need to use my own custom functions or definitions. For instance, maybe I have some color ...
12
votes
1answer
640 views

Using ANOVA with a “Repeated measures” / “Within-subjects” design

Repeated measures designs or "Within-Subjects" designs are very important in live sciences and social sciences. Unfortunately, Mathematica's ANOVA package is not able to analyze those designs. It only ...
5
votes
3answers
431 views

Highlighting text with StringReplacePart but also using Style, Subscript

For a Natural Language Processing analysis task it's desirable to highlight a text string programmatically according to XML tags that reference specific words or phrases. The XML tags specify the ...
9
votes
1answer
1k views

RegionPlot (or FillingStyle) using hash lines? [duplicate]

Possible Duplicate: Filling a polygon with a pattern of insets I have a RegionPlot (and sometimes a regular Plot) where I'd like to shade two different parts of it two different ways. Since ...
18
votes
4answers
4k views

Problems specifying number of bins in Histogram

So I wanted to create a Histogram with a custom number of bins. Luckily there is a simple function for this in the form of Histogram[data, n] where n specifies the ...
7
votes
1answer
637 views

Using Partition to allow sublists of different lengths

As a minimal example, suppose I have a list of the integers from 1 to 25. Suppose I want to use Partition to partition the list into sublists of length 10 but ...
4
votes
1answer
145 views

Center of quadrangular

Having 4 points A (ax, ay), B (bx, by), C (cx, cy) and D ...
8
votes
3answers
2k views

Generating unique random number lists

I am new in programming. I have an array containing, let's say 20 elements and first I want to randomly select two elements from it and record them. Then I will select two elements from the array of ...
10
votes
1answer
406 views

Mixing patterns with string patterns

I have imported an XML document into Mathematica. It is now represented as Symbolic XML expression in the variable xml: ...
8
votes
3answers
405 views

Question about VertexTextureCoordinates

Background: consider the following snippet: ...
4
votes
1answer
492 views

Change elements on different positions within a list

How can I change the elements of a list, say on positions {{1, 4}, {3, 1}, {2, 3}, {4, 4}} in one go? Take this list for example: ...
7
votes
2answers
660 views

ScalingFunctions option works for ListPlot but only if there's no Frame: how to work around this?

Mathematica has quite a nice ScalingFunctions option to BarChart, BubbleChart and the ...
11
votes
4answers
888 views

Using Position (which requires a pattern) in the same manner as Select (which requires a criterion)

I am using Mathematica7. I have a list of lists (creatively named list in the following sample code) containing data. I would like to find the positions of the ...
3
votes
2answers
683 views

decompose a number (less than 255) in a sum of powers of 2

Is there a built in function that would take a number and decompose it into a sum of powers of 2? The numbers will be non negative less than 256. For what it's worth I'm trying to understand a paper ...
7
votes
1answer
245 views

Problems with visual update in GUI

Consider the following. When clicking in "Browse" and then choosing a file, the path will remain the original one and won't change to the one of the file I chose: ...
24
votes
4answers
3k views

Sort lists according to the order of another

I have three parallel lists (i.e. the elements in position i of each list are related). I want to sort the first list using the function Sort and make the same changes to the other lists so that I ...
1
vote
2answers
446 views

Operations on sets of sets [duplicate]

Possible Duplicate: How can I remove B -> A from a list if A -> B is in the list? Delete duplicate elements from list Pattern matching deletion of list items How do I delete the ...
6
votes
3answers
2k views

Why won't Mathematica Solve a set of two equations for one variable?

For example, if I try to Solve this set of equations Solve[y == 3 x + 5 && y == -x + 7, {x, y}] Mathematica gives the right values for ...
14
votes
5answers
1k views

How to texturize a Disk/Circle/Rectangle?

The documentation for Texture states that "other filled objects" can be texturized: Texture[obj] is a graphics directive ...
14
votes
4answers
587 views

Decomposing a matrix with polynomial elements into a polynomial with matrix coefficients

Let's say I have a matrix, $\mathbf{M}$, that is polynomially dependent on a single variable, such as M = {{15 + a^2, a + 5 a^2}, {a - 5 a^2, 2}} and I want to ...
10
votes
2answers
310 views

Avoiding MainEvaluate in a CompiledFunction to fetch global variables

I'm trying to write a simulation using Mathematica 8.0. Since I will most likely be doing the same operation over and over again, I'm trying to Compile whatever I ...
8
votes
5answers
564 views

Computing the equivalence classes of the symmetric transitive closure of a relation

I have a list of pairs, for example: ...
7
votes
1answer
169 views

Inlining calculations in a notebook

Context In $\LaTeX$, I can write something like: Thus, we have $x = \sqrt{2}$, ... the $ ... $, as opposed to $$ ... $$, inline the LaTeX symbols. Now, with ...
9
votes
1answer
2k views

Rebinding keys to define new keyboard shortcuts

I've checked Mathematica → Preferences, and poked around the options on the toolbar. However, I don't see a way to define new keyboard shortcuts in Mathematica. I've used VIM for 10+ years, and I've ...
10
votes
3answers
812 views

List of Mathematica glyphs

Context I am using Mathematica to create live documents - documents that are both interactive and show mathematical derivations. Now, I'm aware that there are certain symbols that are available via: ...
16
votes
4answers
967 views

In a CDF can I suppress or avoid “This file contains potentially unsafe dynamic content…”

I created a CDF to distribute to a single trusted user who both knows and trusts me and everything I make for them. I downloaded the CDF player and the CDF to one of their computers. The CDF works ...
2
votes
2answers
219 views

MapThread to Spheres with various colours

I have these two lists ...

15 30 50 per page