3
votes
1answer
46 views

Is it possible to achieve the coordinates of the section ClipPlane given?

I using the ClipPlanes to achieve a section, the code as below: ...
0
votes
1answer
72 views

Creating a three dimensional grid

I want to create a three dimensional grid (x,y,z) in mathematica and plot a function f(x,y,z) on it. I am not worried about the plotting part now; for that I will probably use ListContourPlot3D or ...
3
votes
1answer
75 views

List of first elements

I have a list whose elements are (symbol or list) and I would like to replace the inner lists by their first elements. I do this ...
0
votes
0answers
21 views

Apply gives “Set::setraw: Cannot assign to raw object 0” error

In my code, I'd like to avoid copying lines, that only differ in arguments. to that end I have done the following: ...
1
vote
1answer
117 views

plotting a function in bipolar coordinates

How to plot a function specified in bipolar coordinates if straightforward substitution of expression of Cartesian ones via them is impossible?
1
vote
1answer
73 views

Generating sequence of averages of averages of partial sums

I have been given the following code that generates the sequence of averages (of the partial sums) of Grandi's series: ...
1
vote
0answers
17 views

Module command and differential equation [duplicate]

I write a programma see below ...
1
vote
3answers
57 views

How to Import and Export as a multidimensional array

I have 10000 matrices and each matrix is 3x3. So Dimensions[data] gives me {10000,3,3}. I saved this into a file with Export["mydata.dat",data,"Table"] Then when I imported it using ...
0
votes
2answers
62 views

Output the tensor product of two matrix as a matrix

How do I output the matrix form like the RHS without the tensor product sign remaining $\otimes$? I need it for display purpose where I can see easily what the form of the whole product matrix is. ...
7
votes
1answer
213 views

Rigid Rotation of a Point Cloud

If I have a group of points that are aligned along some vector. For example: ...
0
votes
0answers
20 views

Asigning colors to residues position-specifically or feature-specifically in PDB file [duplicate]

I am dealing with a complex consists of 5 peptides in PDB file. I calculate some physical features of all the residues in the complex and would like to express them graphically. I would like to assign ...
0
votes
0answers
49 views

Mathematica 10.4.1 broken fonts when saving as PDF

I am using Mathematica 10.4.1 in Linux and have spotted the following uncomfortable behavior. When saving a notebook as a PDF file, some fonts are not properly displayed (see attached figure below, ...
3
votes
1answer
67 views
1
vote
2answers
84 views

Having trouble plotting. Here is my code:

Nothing is plotting when I try to run the code
4
votes
0answers
28 views

Maximum number of recursions lower than $RecursionLimit

Consider the following code segment: f[x_]:=Module[{y}, Print[counter++]; Return[f[x+1]]; ]; $RecursionLimit=20; counter=0; f[0] The function terminates ...
4
votes
6answers
422 views

Easiest way to extract the coefficient of a polynomial

For a term in a polynomial, say 387 a1^4 a2^3 x^3 y^7 z^100 w^364 What is the most efficient way to extract the coefficient of this term, i.e. 387?
2
votes
1answer
61 views

Morphological extension of an image mask

The following image is a mask derived from an imaged feature which extends to the top of the frame, but due to some lighting effects the top portion doesn't come in. Bear in mind that this is one ...
4
votes
3answers
164 views

Changing color of overlapping plots

If I have two plots with two different colors, Plot[{Sin[x]^2, Sin[10 x]^2}, {x, 0, 5}, PlotStyle -> {Red, Blue}] is there a way to change the color of the ...
1
vote
1answer
27 views

RGtensor undefines some symbol

I am using the package RGTC for differential geometry. Firstly I define a symbol \[Sigma] = Array[PauliMatrix, {3}];, then a metric and other stuff (as required by ...
0
votes
0answers
22 views

What is the difference between these two syntax? [duplicate]

Consider the code below, at first I think these two are identical. However, running the below code in Mathematica 10.3.1.0, The first: 3 lines of different color. The second: 3 lines of the same ...
2
votes
1answer
65 views

Plotting a manifold within an existing surface

I have a dynamical system $\textbf{x}'=\textbf{f(x)}$ where $x\in \mathbb{R}^4$. However, $x_1 +x_2 +x_3 + x_4 =1$ and $0\leq x_i \leq 1$ for $i = 1,2,3,4$, meaning the system lives on the ...
0
votes
0answers
55 views

How to plot a series of data with same x

How can I plot a list like {{x,y1,y2,y3,...,yN},{x,y1,y2,y3,...,yN},...} I have several y for x
2
votes
1answer
54 views

How to accelerate combinations and sum calculations here?

I have a 4d matrix H defined as below (embedded with combinations and sums) ...
14
votes
2answers
317 views

Tips to move from functional programming to GUI-based applications

Even though this forum has some questions related to Mathematica programming tips I think that we still don't have specific help for those who want to learn to efficiently create GUIs in Mathematica. ...
11
votes
1answer
201 views

Longest common substring for multiple strings?

I'm looking for a way to get the longest common substring for multiple strings such as {home/dir1/dir2/jmoasd.txt,home/dir1/dir2/ivbnoxcihv.txt,home/dir1/dir2/siuhgiuchv.txt} should yield ...
1
vote
1answer
38 views

Plotting Elipsoids with large weight matrix

I'm running into some problems plotting 2D Ellipsoids with non-diagonal weight matrices -- they are not centered where they are supposed to be. I'm not sure exactly ...
1
vote
2answers
52 views
8
votes
2answers
66 views

How do I SetDelayed $Assumptions

For some reason, $Assumptions := (Print["y"]; x > 0) evaluates the RHS immediately. I have code in which $Assumptions ...
9
votes
3answers
500 views

How to make a picture grid of all Nobel Laureates in physics?

I want to make a picture grid of all Nobel Laureates in physics using mathematica. Later I wanna print this picture grid on a big wall! The first thought I came up with is to exploit the powerful ...
3
votes
1answer
92 views

reading FIT files in Mathematica

Has anybody been able to parse FIT files in Mathematica? The format was developed by Garmin and is used to store data from GPS devices and workout equipment. Details can be found at ...
5
votes
1answer
119 views

How to use NDSolve with moving boundary conditions?

So I am trying to solve the movement in space and time of a spreading gravity current. The interface satisfies the following PDE: $ \frac{\partial h}{\partial t} = \frac{\partial}{\partial ...
0
votes
0answers
34 views

3D curvature from Segmented Image

i have a CT - scan which i have segmented and i can visualize different phases as voxels. I can also identify blobs and visualize them as well. Is there a automatic way that i can compute the ...
2
votes
1answer
49 views

Substituting values of variables in solution of a system of linear equations

After solving a system of 21 linear equations in 21 variables (called Xi in my code) I got the values for all the 21 variables, in the following way: ...
6
votes
1answer
111 views

How to use the Autoload directory?

According to the documentation, packages in $UserBaseDirectory/Autoload will load automatically on startup. I placed an .m file ...
3
votes
0answers
36 views

What are Package` context symbols for?

The Package` context contains the following: What is the use of these undocumented functions? I found a reference to these in ...
6
votes
1answer
37 views

How to ensure that a package is always loaded on startup, even in parallel kernels?

Is there a robust way to ensure that a package is always loaded on startup, even in parallel kernels? Parallel kernels do not read Kernel/init.m.
3
votes
2answers
66 views

How to delete list items that contain a non-numeric Part

A sample of the list looks like this: ...
1
vote
1answer
48 views

Fast Eigensystem calculation

I have a code which finds the eigensystem for a matrix H = H0 + x HInt, where x is a variable which turns on the interaction. H0 is diagonal, and HInt is a sparse matrix (with about 400 states, I hope ...
4
votes
3answers
53 views

pattern matching for third degree reciprocal equation

I am trying to create a pattern for third degree reciprocal equation. I try this a_ + b_ x_ + b_ x_^2 + a_ x^3 This matches ...
1
vote
1answer
47 views

Epilog out of the plot range [duplicate]

I need to put some letters besides the plot, i.e. out of the plot range. I thought of using Epilog: ...
7
votes
2answers
103 views

Why a function returns two different values if copied into a Notebook or imported with Get from a Wolfram Mathematica Package?

I have some Mathematica code that shows a behaviour I really cannot understand. The code only contains a bunch of function definitions. If I paste it in the Notebook Front End and I evaluate it, I ...
0
votes
0answers
41 views

Parallelization and efficiency improvement

Hey i am new to mathematica and at the moment i am writing some test code. It works but it is unrefined. I try to make it more efficient by using parallelization or other techniques. I wanted to ask ...
0
votes
0answers
8 views

What does top right corner value in Fast Fourier Transformation (FFT) show? [migrated]

In case to apply fft2on matrix we get a matrix with sum of all matrix elements on left top corner but a number also show on top right corner.What does it show ? ...
0
votes
0answers
48 views

What I make wrong with Module command;

I have a differential equations that I have to solve in two parts.e.g: ...
0
votes
1answer
117 views

Why MMA is not able to solve this problem?

I am running these following code in Mathematica. But, MMA does not output anything. It is giving me an message as "The integrand .... has evaluated to non-numerical values for all sampling points in ...
8
votes
3answers
269 views

Creating new List by comparing 2 lists elements

Suppose I have two Lists (Not equal length). Both contain random numbers between 0 to 5000 (or another max limit): ...
1
vote
2answers
57 views

Nonlinear fitting of a Gaussian beam model

I am having some troubles with the NonlinearModelFit function. However hard I try, I cannot get a nice fit curve for the data points. I know the parameter "a" is about 15*10^-6 but even if I plug in ...
-1
votes
0answers
37 views

Solving integral equation

I want to solve the following integral equation for $k$: $\left[\frac{\int_0^\infty e^{-ay}(1+y)^{C} dy}{\int_0^\infty e^{-ay}(1+y)^{C-1} dy}\right]-1=\int_0^\infty e^{-ay}(1+y)^{k} dy$ where $C$ ...
0
votes
0answers
32 views

How to construct my own ColorFunction with the TemperatureMap range

I would like to draw the unit circle and define my own coloring function on it so that every point $e^{i\theta}$ of the unit circle will be colored according to said function from the range of colors ...
1
vote
0answers
23 views

Help Compiling Vectors using Iterations

So I have a nice code that runs properly, which I include below but, in my naiveté, I'm having issues iterating my procedure. Simply put, I have a function of two real variables $f(x,y)$ and I want ...

15 30 50 per page