3
votes
4answers
96 views

How to Remove Undirected Edges that are the Same [duplicate]

Given: theData = {1 <-> 2, 2 <-> 3, 2 <-> 1} I would like to remove any duplicates where I define a duplicate to be: ...
5
votes
0answers
53 views

TimeSeries for non-temporal data

Mathematica introduced TemporalData in Mathematica 9. Mathematica 10 added several fantastic new TimeSeries manipulation tools ...
2
votes
3answers
78 views

RegionPlot won't finish, but Plot3D does

I would like to produce a region plot where some function is less than 1. This runs for hours without finishing (until I lose patience and abort it). However, I can plot the function (using ...
1
vote
1answer
67 views

Matrix elements scope definition

Alright, I'm very new to Mathematica and I have yet to learn a lot so please bear with me (sorry if this is a duplicate!): I want to create an $n\times n$ matrix $C$ with elements $c_{i,j}$ with $i,j ...
4
votes
1answer
59 views

How to translate image points position(row, column) to their coordinate(x,y)?

Here is the code to find image edge and record the morphological connected pixels positions. How to translate the row/col positions to x/y coordinates? ...
0
votes
0answers
25 views

how to keep erasing and then updating 3d scatter plot in python in loop [on hold]

How to keep erasing and then updating 3d scatter plot in python in loop? If the loop is run 5 times, each time the plot should clear and then display the changed values.
2
votes
3answers
68 views

How to get an element of a list , which is computed out of substituted variables?

What is the best way to get the element of a list, which is computed out of substituded variables? For example one wants to get the first element of the first row of ...
2
votes
1answer
62 views

DateListPlot with multiple data sets and incongruous timelines?

I am using Mathematica to analyze some sales data for my company. (A copy of the available data is here.) We are trying to analyze the sales trends for each month by item. DateListPlot works well ...
4
votes
0answers
107 views

Tutorial video on the Wolfram Language [on hold]

A 3 hour video explaining the workings of the Wolfram Language is now available at: http://www.wolfram.com/broadcast/s?sx=Gaylord downloading the pdf or notebook here of entire lecture is very ...
7
votes
2answers
63 views

Detect Messages within an expression without losing the return value?

I know that Check[expr,failexpr] is a mechanism to catch messages. The problem with it is that if a message is generated within ...
2
votes
1answer
60 views

Association and rudimentary object-oriented programming

Doesn't Association provide us rudimentary object oriented programming via constructs like ...
1
vote
2answers
37 views

Change of basis for a rank 3 Cartesian tensor

I have a Cartesian tensor $\chi_{ijk}$ and I want to express the elements in terms of a new basis to get $\chi_{ijk}^\prime$. The transformation is represented using $a_{ij}$. The tensor transforms ...
-1
votes
0answers
33 views

Approach to integration? [on hold]

I write one code such: ...
1
vote
0answers
26 views

Visualise sets giving some relations on those sets

I'm not very experienced with wolfram, but I'm searching for a function that can basicly do the following. Giving some sets $A,B,C$ and some relations for example $B \subset A$,$C\subset B$. I would ...
0
votes
0answers
34 views

Understanding the use of GradientOrientationFilter to achieve a “brushed” effect

I'm trying to recreate in javascript a piece of code that appeared here on Mathematica, specifically in this answer: http://mathematica.stackexchange.com/a/39049/21482 The user Simon Woods suggested ...
4
votes
3answers
101 views

Changing the x-axis for ListLinePlot with more Lists

I'm fighting with a seemingly very simple problem: I have two lists of data, and want to plot them with ListLinePlot. The two lists are only data-points, therefore ...
2
votes
4answers
76 views

Finding relevant parts in XML document

My qyestion is about a XML document and finding parts of strings. test = Import["C:\\Users\\filename.xml", "XMLObject"] This gives the following output: ...
3
votes
2answers
98 views

How to plot multivariate tabular data

Suppose I have tabular data usual for numeric packages: T = Table[{x, Sin[x], Cos[x]}, {x, 0, 1, 0.1}]; T // TableForm Now I want to plot ...
2
votes
1answer
45 views

defining Associated Stirling numbers of the Second Kind

First, I'm new to Mathematica. Spent my undergraduate programming with Maple and my computer crashed and I lost it. Fortunately, my university offers free Mathematica downloads to students, so here ...
4
votes
4answers
126 views

RegionMember with some tolerance?

Can I specify some tolerance for the new geometric-computation function? RegionMember[Line[{{0, 0}, {1, 0}}], {.5, 0}] (* True *) While: ...
0
votes
1answer
36 views

Shortcut to erase the line one writes on, equivalent to Ctrl+k for pico? [duplicate]

Every time I make a mistake (and I mess up quite often, since I'm new here), I loose time having to use the mouse to delete the traces of my mistakes: the blue vertical lines with the following ...
2
votes
1answer
25 views

Disable locator-removal in LocatorPane

is there a way to DISABLE the ability to remove points with ALT-click (APPLE-click) from a locator pane? I'm writing a code that allows users to manually label objects in an image by connecting two ...
1
vote
0answers
48 views

Request for clarification of Eigensystem::eivn message

What causes the problem of "two eigenvectors associated to one single multiplicity eigenvalue" that I am experiencing? After several transformations to simplify an unwieldy matrix, I end up with the ...
0
votes
0answers
32 views

Package Problem

I am new to packages. But I am having the following problem. Say the package is defined as follows (on a Mac using Mathematica 10): File->New->Package And ...
9
votes
3answers
214 views

What is the best way to flatten a linked list with lists as values?

By following the advice on this site I have ended up with a linked list like the following: acc = {{1, 2}, {{2, 3}, {{3, 4}, {{4, 5}, {{5, 6}, {}}}}}}; This was ...
3
votes
1answer
56 views

Recognizing Matching Colors in a Game Grid from a Camera Image

I am relatively new to Mathematica, having taken my first serious dive into it this week. As a fun project to teach myself some of the basics, I've come up with a goal of optimally solving a game ...
1
vote
0answers
33 views

How i can extract a single layer from a SHP file? [on hold]

I just import a SHP file that have a series of layers, how can i get just one if i know the name of it?
-1
votes
0answers
41 views

Inverse Laplace with Logaritms [closed]

I need to find the inverse laplace to this function, I tried to use this fact: But I end in 2 integrals of e^(-kt)/t that aren't convergent. How can I solve this Problem?? Thanks for your help
5
votes
3answers
162 views

Not able to get a solution to a Lagrange Multiplier Equation

I assigned several constrained optimization problems to my calc IV students to solve with Mathematica, but this one is being stubborn. The function to optimize is: f(x,y,z) = y Exp[x-z] with the ...
3
votes
2answers
110 views

Getting the Cumulative Distribution Function of f(x) from a dataset of x

I've a data set $\mathcal{X}$ which consists of randomly generated numbers. Let's say for example data = RandomVariate[ExponentialDistribution[1], 10^4]; My aim ...
6
votes
2answers
93 views

MatrixPlot provides wildly inaccurate PlotLegend?

I noticed something weird with MatrixPlot's PlotLegends -> Automatic behavior- here's a minimal example: ...
2
votes
1answer
57 views

Error with comments inside and expression

I found this strange parsing error with comments inside of an expression in Version 7. And example is {{1, x}, {1, y} (* {1, z (= 5+6)} *)}; It occurs depending ...
4
votes
5answers
208 views

Extracting Coefficients from a List of Sines

I want to extract the coefficients from the following list: list={16.2219 Sin[16.2219 t], 6.60924 Sin[6.60924 t], 13.927 Sin[ 13.927 t], 2.91309 Sin[2.91309 t]} ...
2
votes
2answers
58 views

Legend placement explanation

Could anybody explain, how the coordinates in Placed influence each other? ...
6
votes
2answers
154 views

How to write complex function definitions at run time?

(Posting as a self-answered question to share a technique I discovered) In a certain project, I have many function definitions in which all parameters should be optional and come with default values. ...
2
votes
1answer
68 views

Problems with NDSolve and partial differential equations of several variables

Suppose we have the following partial differential equation: $$ 0 = \frac{ \partial w }{ \partial \tau } + \left( w + \sqrt{ h + \beta } \right) \frac{ \partial h }{ \partial \chi } $$ where $w$ = ...
0
votes
1answer
60 views

Why is my Fourier transformed matrix rotated?

After Fourier transforming and shifting the zero frequency of a matrix, my outcome is rotated by 45 degrees from what it should be. Can anybody spot why? ...
0
votes
1answer
32 views

Error messages from NIntegrate [closed]

I've been trying to work on some integrals (Actuarial Science, for those interested) but somehow this always returns an error for me. ...
0
votes
0answers
58 views

Undocumented options for NSolve

There are many undocumented options in Mathematica's official documentation. Is there a tutorial, or a reference somewhere, that explains in detail the undocumented uses of ...
0
votes
0answers
36 views

Import (of linux mathematica9) crashes after importing large nasacdf file(~50M)

I'm importing a large file from ftp by dat = Import[ "ftp://cdaweb.gsfc.nasa.gov/pub/data/polar/timas/timas_h0/1998/po_h0_tim_19981102_v03.cdf", "Data"]; the ...
0
votes
0answers
34 views

How to plot morphological stripe near the mouse-clicked position in an image? [duplicate]

I tried to use EdgeDetect and MorphologicalComponents to get the image edge elements. When I clicked on an image, I want the edge element nearby to be highlighted or plotted. Here is my code. Two ...
8
votes
2answers
686 views

What is special about 70.329862 and InputField and Number and Dynamic?

Is this a bug (happening in V9 and V10 Windows, Linux) or not? It only happens for certain numbers and you need Number in InputField. ...
2
votes
3answers
111 views

Can you compute more terms in this sequence?

I am trying to identify a sequence related to the von Mangoldt function matrix. Since I believe/conjecture that the columns in the matrix have period lengths as in this sequence b: ...
1
vote
0answers
26 views

StyleSheet for custom application

I'm working on a package that for some reasons needs to be installed into a "non standard" path, that means neither $BaseDirectory or ...
0
votes
1answer
93 views

How to Use Mathematica as a C/C++ compiler [closed]

I am learning C/C++ programming, but I don't wannna install new software for compiling C/C++, so, is there any possibility to compile C/C++ code using Mathematica? Here is the first program I want to ...
0
votes
0answers
25 views

Visualization of 3D data by Raster3D and Import

I would like to visualize data stored in an external .txt file. The data is a 3D array of real numbers. I would like to visualize the data by using Raster3D function, but I am not sure what is the ...
0
votes
0answers
40 views

How to use a symbol with subscript as a variable? [on hold]

I want to use as a whole variable. E means "Ekman",and y means "y direction", both are in literal meaning, not variables, not functions. So that I can write a equation which are calculable and ...
1
vote
1answer
40 views

How to plot graphs with vertices positioned as spread as possible? [closed]

The following code, outputs the graph below: graphList = {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {3, 6}, {4, 7}} Graph[UndirectedEdge @@@ graphList] Is there some way ...
1
vote
2answers
390 views

Colorful and eyecandy text by Mathematica

I want to present my work somewhere and thus I made a Powerpoint presentation. I am wondering if it is possible to make a colorful and stylish text by MMA. For example at the end of my presentation I ...
0
votes
0answers
44 views

BarChart3D Graph: why there are color and some lines in the xy yz planes? [closed]

How to remove these odd lines and color in the background? thanks!

15 30 50 per page