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
1answer
55 views

ParametricPlot3D/2D won't work and leaves a blank space

I've been trying to evaluate this line ...
13
votes
2answers
393 views

Paste data into Mathematica with formatting

Select the following Mathematica code and paste it into a notebook. In Windows 7(Mathematica 8) the line breaks are not interpreted in the expression. In fact any data copipasted from stackexchange ...
2
votes
3answers
123 views

Concisely returning a position in an array with an index variable [on hold]

We have an array and an index in the array: exampleArray = Table[{a, b, "q"}, {a, 1, 10}, {b, 1, 10}]; arrayIndex = {5, 4}; Very simply, we can return the value ...
13
votes
2answers
261 views

How to build a 3D graph from a 3D matrix?

Following this and that question and the corresponding answers, Mathematica can build 2D graph from 2D matrices. Question How to make the corresponding 3D graphs from 3D cubes? Attempt ...
3
votes
1answer
46 views

A problem about sorting final result

Three days ago, I asked a question about B-Spline Basis fuction here @Michael E2 given a solution to make the order of interval looks normal The easiest way would be to sort it afterwards: ...
5
votes
3answers
69 views

Mapping a function of the form matrix[[row,column1;;column2]] over a list

I want to create a list of lists of values by mapping values[[row, col1;;col2]] over a list like {{r1,c1,c2},{r2,c2,c3},... } to ...
0
votes
0answers
43 views

Plot is not accurate [duplicate]

I defined a matrix and use it to transform a square defined by four points. (In[85]) It seems the transformation keeps the length of the square. (In[91]) Now I plot the original square, the axis of ...
-1
votes
0answers
38 views

Getting a blank plot when plotting two functions with Plot3D [on hold]

I want a 3D plot of two functions of two variables, but I am not getting any result. Please help me out. The program follows: ...
2
votes
2answers
32 views

replace an interval of values [duplicate]

I want to replace values in an interval [a,b] by 0 in a list of values. Example: {{.5,.2,.49,1,1},{.49,.5,.495,1}} I want to get: ...
3
votes
1answer
111 views

Can a Mathematica Application be inside another Application?

The file structure of a simple MMA Application can have the form: MyApplication MyApplication.m SomeAuxiliarPack.m Kernel init.m Where ...
4
votes
2answers
67 views

Equivalent of RadialOutside for Graph VertexLabels

I'm creating a circular graph and want the labels to be placed on the outside of the vertices in a circular manner on the outside of the graph. I've been playing around with the ...
1
vote
0answers
11 views

LibraryFunctionLoad not recognizing datatype

I am trying to use LibraryFunctionLoad with a function that relies on a derived type that is defined within the library. I've loaded the library prior to calling ...
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 ...
2
votes
1answer
61 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 ...
0
votes
2answers
93 views

Collapsing summation

I am trying to write a command to collapse the sum of terms into an expression with summation. Something like ...
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: ...
15
votes
6answers
441 views

How can I remove B -> A from a list if A -> B is in the list?

I have a list of transformations like this: list = {"A" -> "B", "B" -> "A", "C" -> "D"} As this is used to plot an undirected graph with ...
2
votes
1answer
60 views

Association and rudimentary object-oriented programming

Doesn't Association provide us rudimentary object oriented programming via constructs like ...
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 ...
8
votes
3answers
212 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 ...
2
votes
1answer
44 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 ...
6
votes
1answer
112 views

Unable to compile to C

I used to be able to compile to C without problems, but from one day to the next, when I try to compile something, e.g. ...
1
vote
1answer
66 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 ...
2
votes
1answer
79 views
6
votes
1answer
266 views

Connect neighbouring points as list of segments in 2 D

Context I am interested in connecting neighboring points in 2/3D as list of segments. I am guessing this is something within the reach of graph theory, which is well implemented in mathematica. ...
1
vote
2answers
49 views

Simplification assumptions strange behavior

I am trying to cancel common factors under square roots in some expression with all positive real variables: $$\text{Simplify}\left[\frac{\left(3+\sqrt{6}\right) \sqrt{g} \text{nn}^4}{2 ...
1
vote
3answers
155 views

Plotting a frequency function

I have a list of numbers and I want to plot the fraction of numbers >= k against k which will naturally be a decreasing curve. How do I do that?
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: ...
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? ...
5
votes
0answers
52 views

TimeSeries for non-temporal data

Mathematica introduced TemporalData in Mathematica 9. Mathematica 10 added several fantastic new TimeSeries manipulation tools ...
3
votes
2answers
97 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 ...
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.
17
votes
1answer
370 views

How can I make a notebook with two column layout?

How can I make a notebook with two column layout? Is it possible? I saw something tools could do such thing? Author Tools?
4
votes
0answers
106 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 ...
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: ...
-1
votes
0answers
33 views

Approach to integration? [on hold]

I write one code such: ...
0
votes
1answer
35 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 ...
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 ...
4
votes
3answers
100 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 ...
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 ...
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 ...
5
votes
3answers
95 views

How to deal with the condition $u_i=u_{i+1}$ in B-Spline basis function?

The defintion of B-Spline basis function as shown below: Let $\vec{U}=\{u_0,u_1,\ldots,u_m\}$ a nondecreasing sequence of real numbers,i.e, $u_i\leq u_{i+1}\quad i=0,1,2\ldots m-1$ $$N_{i,0}(u)= ...
4
votes
5answers
244 views

Can I generate a “piecewise” list from a list in a fast and elegant way?

Suppose we have a number list a: n = 1000000; a = RandomReal[{0, 1}, {n}]; We want to generate a list ...
2
votes
1answer
24 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 ...
30
votes
9answers
4k views

How to create animated snowfall?

Well, the title is self-explanatory. What sorts of snowfall can we generate using Mathematica? There are two options I suggest to consider: 1) Continuous GIF animations with smallest possible number ...
2
votes
3answers
114 views

Cases do not return all expected result

I have the following line code: Cases[g[h, r, t, b, m], x_[__, y_, __] -> y, {0, -1}] I am expecting the results to be ...
2
votes
3answers
133 views

Graph showing valid English words obtained by insertion of single characters

I'd like the most efficient Mathematica code for making a formal tree graph whose nodes are valid English word strings (in DictionaryLookup[ ]) and directed links represent the relation 'insertion of ...
3
votes
1answer
55 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 ...
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 ...

15 30 50 per page