# All Questions

14,568 questions
Filter by
Sorted by
Tagged with
343 views

### Specify the color of each residue in a protein (PDB)?

I'm importing a *.pdb file containing a single protein. Mathematica automatically produces a plot of the protein. I want to specify the color of each residue independently, in this plot. Is this ...
33 views

### More effective way to apply a function in one member of a pair in a list but print the other member? [closed]

I often find myself working with a list of pairs like {date,number} and I usually have to apply a function to the second members but I want it to print the first one. I tend to use combination of <...
286 views

### What ways are there to convert an Integer to a list of digits?

How can I convert an Integer to list of numbers? For example: 781049 ==> {7, 8, 1, 0, 4, 9} What are the possible ways of ...
93 views

### Adding an interpolated function to neural networks through ElementwiseLayer

1.Trying to add an interpolated function to neural networks. ...
297 views

### Is there a way to select the highest exponent of a polynomial expression?

I have a problem to program a particular kind of expression: Sum[1/(k n) (HS[t^k,x^k])^n,{n,1,Infinity},{k,1,Infinity}] where HS[t_,x_] is a polynomial function ...
285 views

### Why is output arranged in grid fuzzy (especially when printed)?

If I arrange output in a Grid, which is nice to summarize work, the output ends up greyed (or not bold?) compared to regular output. Here's an example: ...
182 views

### Function in Mathematica 10.1, but not in CDF Player 10.0.2

Mathematica 10.1 has a new function MinMax. It is absent in the current CDF Player 10.0.2. CDF files that use MinMax leave the function unevaluated, and thereby produce errors. One approach would be ...
82 views

### Why the data from Do-command disagree with the plot I get using them? [closed]

This is a question relevant to How to plot output data of Do-command? The Differential Equation at hand now is $\frac{d^2 f}{dx^2} + \frac{2}{x+0.1} \frac{df}{dx} = k(f)$ I give the code with the ...
262 views

### Improving strategy to solve this constrained root-finding problem

I am looking for roots of the function eqs defined below. It has $2k$ unknowns and returns a vector of $2k-1$ components. The sole purpose of the following block ...
43 views

### Fixing labels in plots with ColorFunction [duplicate]

Whenever I use ColorFunction, the labels look odd. The text is thin. Is there a way to fix this and make the labels look normal (like plot below)? Or is this just ...
191 views

### The best method of constructing a product of consecutive terms

I am new to Mathematica, I am searching for a way to create an expression with a sequence of terms such as: (x-1)/x (x-2)/x (x-3)/x (x-4)/x … (x-n)/x
41 views

### Building a nine - region cluster chart but, getting inaccurate plot-legend when empty subregions are present

This is a follow up question to the one submitted at the following: Stack exchange Link I quickly get to the subject: ...
109 views

...
214 views

### NoLinearModelFit error message

to fit my data, I use the following code. Using Manipulate on my fitting function, I can guess roughly the value for my initial fitting parameter which are in the ...
171 views

### How to stop Dynamic from returning Null?

This question grew out of this other one: DynamicModule not working when additional code is included. Let's start with this simple code: ...
776 views

### How to solve this error? “should be a triple of numbers, or a Scaled form.” [duplicate]

Here is my code: ...
442 views

### 3D Plot for Attractive and Repuslive Field Functions [closed]

I am using Mathematica to plot the total potentials (which is the sum of an attractive potential field and a repulsive potential field) - This is related the Artificial Potential Field Method in ...
215 views

### Solving nonlinear ODE with boundary conditions

I am trying to solve the below fucntions using a NDsolve, but I can't get the the converges of them at the certain initial variables.I'm using Mathematica 11.3. I appreciate any help. ...
36 views

### Conditions on FinancialData

I would like to order (3) on a Dataset or Table all the Financial Data between all markets respecting those constraints: each asset has to be shown as "Name" and "StandardName"; I would like to show "...
79 views

### How to get the literal string “{\” foo3 \“:\” bar3 \“}” from <|“foo3” -> “bar3”|> — ( Was: Problem with Run[“curl …”] … )

UPDATE: 25-Jan-17 12:02AM CET FirebaseLink package does not work on windows UPDATE: 25-Jan-17 12:02AM CET The problem could probably be reduced to: "How do I get the literal string ...
51 views

### How to define an Intermediate Variable [duplicate]

I want to find the relationship between several parameters. But I don't know how to define an Intermediate Variable. For example: I want to know the relationship between x and {y,z} which will satisfy ...
106 views

### Derivative with respect to any element of a matrix

I try to evaluate $$\frac{\partial s}{\partial A_{ab}}$$ where $$s = \sum_{i} \sum_{j} A_{ij}$$ The result should be 1 regardless of $a$ and $b$. But the following code gives zero. ...
1k views

### FindFit::nrlnum What am I doing wrong?

I have a model called qobs: ...
89 views

437 views

### Rolling Disk Animation

I am trying to create an animation in Mathematica of a rolling disk outside a disk of equal radius. The following coding is what I have tried but without the one circle staying in a fixed position I ...
108 views

### How to transform a FindRoot in a NDSolve?

some days ago I did a question about a problem with a findroot. The solution was to convert the FindRoot in a "fake" NDSolve. How can I do the same if the FindRoot has more equation ? I make here an ...
203 views

### How do I convert Mathematica's suggestions to usable code

I enter an image and in the suggestions bar under the image, one of the suggestions is "Edge detect". I click on it and a nice cell with all the options comes up. How do I get the code for all of what ...
176 views

### Wrong number of CUDA cores shown (GTX1070)

I installed the CUDA toolkit by directly obeying to the WRI instructions and use MMA 11.1.1.0 as well as the paclet version 10.5.0. While CUDA's deviceQuery sample ...
96 views

### Decapitating “explicit” and “implicit” heads

This is a follow up to this question. So far, I named "explicit" heads to those that appear explicitly in the expression. For example, f[x] has an explicit head. I ...
3k views

### How to deal with Chinese Windows path/filename? [duplicate]

I've encountered a problem with Unicode Windows file name. If I set the file name to Unicode characters on Mac OSX, it works well. But on Windows if the filename starts with a digital number or the ...
105 views

### Evaluating Residue at pole with different forms

I want to evaluate residues at the poles of the function $\frac{1}{z^{3/2}+r^{3/2}}$ fun = 1/ (z^(3/2) + r^(3/2)); where z ...
48 views

### Fast way to apply permutations in large list?

I have one Polynomial in the form of FF[x1,x2,x3,x4,x5,x6,x7,x8], where xi pick numbers from ...