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 ...
4
votes
2answers
66 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 ...
5
votes
3answers
68 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 ...
2
votes
1answer
91 views

Solving a system of nonlinear equations 2

Regarding this question: Solving a system of nonlinear equations When I try to solve the same system (with the code proposed in Daniel Lichtblau's answer) with different Right Hand Side values, ...
2
votes
3answers
67 views

Include Formatting Save As .nb to .m

Is there a way to export Input Cells in my current notebook(.nb) as a .m file while including indents? For example if my notebook contains ...
0
votes
0answers
48 views

How can I view piecewise cases considered by Reduce?

Caution: Run before removing comments from the commented-out code. If you have $MaxPiecewiseCases set to it's default, you will get an error message about the ...
11
votes
2answers
248 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 ...
2
votes
1answer
79 views

Please explain this while-loop

Code: ...
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 ...
3
votes
4answers
95 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
50 views

TimeSeries for non-temporal data

Mathematica introduced TemporalData in Mathematica 9. Mathematica 10 added several fantastic new TimeSeries manipulation tools ...
2
votes
3answers
77 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
64 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
58 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
67 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
60 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
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 ...
7
votes
2answers
62 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
36 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
99 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
75 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
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 ...
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 ...
4
votes
4answers
125 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
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 ...
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 ...
1
vote
0answers
46 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 ...
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 ...
3
votes
1answer
54 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
32 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 [on hold]

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
56 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
57 views

Legend placement explanation

Could anybody explain, how the coordinates in Placed influence each other? ...
6
votes
2answers
151 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
65 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
58 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 [on hold]

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
35 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 ...

15 30 50 per page