0
votes
0answers
83 views

strange timing behavior

The following code is from a book about Mathematica. ...
1
vote
1answer
65 views

2D Arrangment/Optimization Problem

Okay, I have a list of angles, call it A. How would I arrange them in a 2D m-by-n grid G such that the distances between each adjacent angle-element (row- and column-wise) is minimized? G has as ...
2
votes
1answer
92 views

About TetGenTetrahedralize Mesh Size

I have used TetGenTetrahedralize to generated a cubic mesh. I want that the edge size of the triangle to be 0.2, how can realized this? And What does the word "pq1.414a1" mean? inst1 = ...
0
votes
1answer
48 views

How to save a list of analytic expressions in a file? [duplicate]

I use Mathematica to calculate many analytic expressions, some of them are generated by a loop process, the result can be a vector with a index, e.g., f[i]. Now ...
3
votes
0answers
48 views

Does anyone know the options for “HierarchicalEdgeBundling” in Mathematica?

I'm looking to reproduce the types of graph layout that are possible in D3 (http://bl.ocks.org/mbostock/7607999) in Mathematica. Since Mathematica doesn't explicitly support force directed edge ...
1
vote
1answer
55 views

how to generate mesh functions according to more that one condition? [closed]

how to generate mesh functions according to more than one condition? This plot will have mesh according to z: ...
6
votes
3answers
172 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0. persist as of 10.0.2 Update: Since no one has been able to give a reason for this change in behavior or provide a solution I am tagging this as a bug. Please report it to ...
6
votes
2answers
187 views

Webdings are different on V10 vs V9. Why?

I use FontFamily->"Webdings" in interfaces in several places, but among other things for custom opener icons, for example I use the following "icons" for open and closed openers: In version 10 this ...
11
votes
5answers
453 views

Plot the plane so different condition has a different color

I have a list of functions defined on the plane, and I want to know which one of those functions is smaller than the other functions at particular points. Currently, what I do is ...
1
vote
1answer
121 views

Plot Legends and Frame Ticks in Array Plots

Why do the frame ticks go away when PlotLegends->Automatic is inserted in an Array Plot? For instance, the following code produces an Array Plot with Frame Ticks. ...
3
votes
1answer
58 views

Need help in building a pattern [duplicate]

Suppose I have the following list: list = {w, r, {f, first, t, y}, {a, y}, last, {k, r, first, e}, m, e, last, r, t} I am expecting this ...
2
votes
2answers
183 views

Binarizing a matrix

I have an image with a few bright pixels with the remaining ones very dark. The difference is in orders of magnitude. I want to binarize this matrix (corresponding to the image) making all values ...
6
votes
2answers
237 views

NSolve missing solutions in Mathematica 10

Running Mathematica 8.0.4 and 10.0.0 on a Windows 8.1 machine. Processed the same code with both kernels: ...
4
votes
0answers
178 views

Anti-aliasing not working in Mathematica 10 and Linux

While this works fine in version 9, in version 10.0 the Antialiasing setting has no visible effect any more I'm here on Ubuntu 12.04 64-bit with Gnome 3.4.2 and an NVidia GeForce GTX 590 with ...
6
votes
1answer
181 views

Why is AllTrue much slower than VectorQ?

This seems to be a theme with V10, a new function dedicated to a specific task doesn't live up to expectation performance-wise. Mr. Wizard has already uncovered 2 such functions here and here. So how ...
4
votes
0answers
146 views

Graphics3D flickers in Mathematica 10 and Linux

In the official Mathematica version 10.0, I get a very weird behavior when I try to rotate a 3d graphics The moment I click on the graphics to drag it, it seems like it zooms the whole graphics ...
2
votes
3answers
134 views

Speeding Up Replacing of Labels in Large Matrix?

I am Mathematica novice and am trying to find a fast way to replace labels in some rather large matrices (512x512 or 1024x1024) that have resulted from segmenting images with WatershedComponents or ...
1
vote
3answers
118 views

How to limit only two “0 and 1” strings for an xor implement?

I tried to implement some logic gates for a series of "0 & 1" strings, just like and, or, nand, nor and not listed below. How could I limit xor only accept a two strings list as its argument? ...
0
votes
2answers
100 views

Collapsing summation

I am trying to write a command to collapse the sum of terms into an expression with summation. Something like ...
5
votes
1answer
142 views

How to write to the cloud quickly?

I am wondering how to most quickly log data during cloud execution. I do not need anything fancy: all I want to do is persist certain information for later analysis, with minimal blocking for the end ...
5
votes
1answer
266 views

What are the Slot Names in a Dataset?

I have a dataset which are keyed on {"Item", "Hour of Day", "Value"}. In the examples, I noticed that it is possible to apply functions using such as ...
1
vote
2answers
86 views

Slider with varying scales

I am trying to implement a slider whose control range varies depending on the current value: ...
6
votes
4answers
607 views

Caesar's cipher

How can Caesar cipher be implemented? I want to use StringReplace but I don't know how to write the replacement rule to replace the characters with, say, the ...
0
votes
0answers
49 views

Marking certain detected points on an image [duplicate]

I have an image in which I had to detect bifurcation points of vessels. I manage to do that and now I have an image where these bifurcation points are 1 while all others are zero. What I want to is ...
1
vote
0answers
19 views

LegendLayout not working as asked [duplicate]

Why the following code does not result in row layout as specified (see the attached picture for result)? ...
9
votes
1answer
351 views

Converting structured data to a dataset

A Dataset seems perfect to represent structured data. Has anyone already thought about how to convert as efficiently/elegantly as possible an XML or JSON file to a Dataset in Mathematica 10 ?
1
vote
2answers
93 views

How to widen PlotLegends?

I have a plot whose legend, when placed at the bottom, is two lines rather than one: ...
7
votes
1answer
162 views

Can't plot rotated region

I was experimenting with the code from this question when I ran into another problem with regions. ...
2
votes
0answers
82 views

How to transform frame ticks from 1, 2, 3, … to x, 2 x, 3 x, …?

I want to replace the numbers on a framed plot's axes with that number multiplied by a variable, call it x. (The idea is that I'm plotting things which depend on ...
19
votes
3answers
693 views

DeleteDuplicatesBy is not performing as I'd hoped. Am I missing something?

Déjà vu: a new-in-v10 function should provide a better solution to an old problem, but my enthusiasm is curbed when I run timings. This time the function is ...
2
votes
2answers
203 views

A problem about function N [duplicate]

Toady,I have a problem about N,described as below: For example N[1/3, 5] (* ==> 0.33333*) and ...
0
votes
1answer
33 views

Interactively Manipulate SparseArrays or Lists

I'd love to use SparseArrayor List to group a set of parameters together in a function. ...
2
votes
0answers
87 views

Excluding region with `RegionDifference`

I can't make RegionDifference work for two Rectangle: ...
1
vote
0answers
157 views

How to define two polyhedron intersect or not?

Recently I have used Mathematica to simulate the concrete structure. The most important point is generate random concrete aggregate. As you know, concrete aggregate can be looked as a polyhedron. We ...
2
votes
1answer
122 views

Two discrete colors for surface with ParametricPlot3D

I am trying to create a plot of a surface that is yellow above the xy-plane (z>0), but blue below (z<0). My first attempt was to use ...
10
votes
1answer
156 views

Why doesn't repeated PatternSequence work with explicit pattern names?

Why would this work: Clear[f] f[a : PatternSequence[b_, c_]] := {a}; f[1, 2] (* {1, 2} *) and this also works: ...
2
votes
1answer
103 views

How to program a clickPanel for chemical elements (like a periodic table)?

The command ColorData["Atoms", "Panel"] indicates RGBColors of "Atoms" by clicking a panel. As I don't want to reinvent the wheel, I asked myself: How to ...
3
votes
1answer
74 views

Radius Values not Displaying in (List)PolarPlot

I'm having troubles with the PolarAxes option in ListPolarPlot under Mathematica 8.0. To be more specific, when I run the ...
2
votes
1answer
143 views

How to draw timing diagram from a 0 and 1 string list (2)

I like ubpdqn's last edition & Mr Wizard's refactoring to my last question very much. I inserted two Reverse just to make the diagrams and the strings match in ...
0
votes
1answer
112 views

multiple generators for iterative construction of fractal

The code below is an attempt to use more than one generator (in this case two) to generate a fractal using the standard iterative procedure involving generators. Only the first two stages of the ...
1
vote
2answers
73 views

How to define range for Manipulate using exponents

I have a function: f[x_,y_] = x*y // ScientificForm; Manipulate[f[x,y], {x, 10^-1, 10^-10}, {y, 0.01, 1, 0.01}] When I try to execute it - it does work. However ...
7
votes
1answer
156 views

Gnome wants to kill Mathematica 10 during selection

I am using Linux (CentOS, Gnome 3.8.4) and I suspect this is an OS dependent problem. When I input some text, and use mouse to select the text as follows: First press the mouse left button, keep ...
1
vote
1answer
61 views

Differentiation of Vector Equation

Is it possible to get symbolic derivatives of equations with vectors as arguments without specifying every vector element explicitly. Something like ...
10
votes
1answer
269 views

How can I extract the outline of bubbles in my image?

I have an image: I tried to extract the outline of the bubbles, but I met with some problems. Firstly I tried the method used in Mathematica documentation for ...
15
votes
1answer
308 views

Why does ImportString[“1c”, “Table”] eat the letter c?

I have some whitespace-separated matrix data that I read with Import[..., "Table"]. The data contained mixed strings and numbers (the strings are for row and ...
4
votes
1answer
336 views

Game of Life in 3D

Is there a three-dimensional cellular automaton that in some sense generalizes Conway's Game of Life? If so, how might we use the CellularAutomaton command to ...
9
votes
2answers
186 views

sudden increase in timing when summing over 250 entries

Using math 9.0.1 on a MacBook Air, I see a sudden increase of Timing by a factor of thousands when I sum over 250 elements of a matrix rather than over 249. So for ...
0
votes
0answers
83 views

NMinimize gives an obvious wrong value

I'm trying to minimize a function of 2 lists of the same lenght, but for now the first list has one element, the second is constant. Essentialy, this baffles me: ...
2
votes
1answer
108 views

How to put labels on a 3d plot

I'm close, but I'm stuck. Here's my code so far: ...

15 30 50 per page