# All Questions

44 views

### Entering an differential equation in a Manipulate box

Does anyone have an example of a Manipulate demonstration where the user can type into a box the differential equation, time interval, initial condition, and the result is plotted? This possible in ...
42 views

### How do I simplify Interval[{x,x}] to x?

How do I simplify Interval[{x,x}] to x ? Simplify and FullSimplify do not seem to do it.
34 views

### in the part assignment is not a symbol, create different matrices with a loop

Im trying to assemble new matrices from some previous matrices I have created, but I can´t. What Im trying to do is the following: 1) I have different matrices: ...
29 views

### How to input an adjacency list?

I am a beginner user of Mathematica, and I have an assignment to construct a graph given n (number of vertices) and an adjacency list. My idea was to make a For cycle that repeats n times, and for ...
39 views

### Change date format in nested lists

I have a list of index symbols and data as follows: ...
216 views

### Why can I not replace a Dataset using a rule?

Simple replacement of a Dataset object does not seem to follow the expected behavior... Dataset[{}] /. _Dataset->1 Returns the empty Dataset not 1 as I would ...
25 views

### How to set options in Option Inspector in notebooks by running commands?

It involves an order of magnitude more mouse clicks and visually searching text to set some option in the Option Inspector (which is a UX nightmare) than doing that in a notebook by running some ...
57 views

### Solving a single-variable equation mixed with exponential and algebraic

Trying to solve for x Solve[((a - 1) (1 + d x^2))/(a (Exp[b x + c] - 1)) - e == 0, x] in terms of the constants a,b,c,d, and e. Mathematica says "This ...
69 views

### Can a whole Mathematica program be placed inside my functionMain? [on hold]

Consider this C code #include <stdio.h> int main() { printf("Hello world\n"); return 0; } A Mathematica equivalent could be ...
11 views

### to solve this combinatorial optimization problem [migrated]

\begin{align} &\max_{C,E,S} \begin{aligned}[t] &\sum_{t=1}^{T}\sum_{k=1}^{K}min\left\{{\mu(\alpha_{k},e_{k}(t)),\gamma s_{k}(t)}\right\} \end{aligned} \notag \\ &\text{s.t} \notag \\ ...
28 views

### Setting Marker Line widths in Legend

I have read all these posts and can not get this to work. I am trying to increase the width of the line in the legend. I have tried SwatchLegend, ...
21 views

### Cell editing blocked after output generation

when I evaluate an editable cell and get an output cell with the result, then it is no longer editable until I delete the output. This seems to be a new feature in Mathematica 10 or do I simply need ...
27 views

### Exploration of the region satisfying the follow conditions

I posting my code which I am using to find data points satisfying the following condition, but from this I can only able find data points of the certain curve. But I want to find the whole region ...
43 views

Here is the question. Consider the function f(x) = (2-x)/(x+1). -Find all points on the graph of f where the tangent line is perpendicular to the line y=4x. -For each point, report the equation of ...
29 views

### Reading a .txt file with numbers

The .txt file is: tb_FeSe_22_12_2014.csv 0.00102786 (-0.000421863,1.58589e-09)(-4.04766e-05,2.67116e-07)(-8.4396e-06,-1.54976e-07) I would like to Import it to Mathematica such that I have: ...
37 views

99 views

### How to get output in a specified format

In Fortran, we can easily get the stardard and easy output format. Now, we only focus on the Integer output. See here How to realize this kind of output as formatted text file using Mathematica ? ...
113 views

### How to find out where an error occurs?

I got this error when using Mathematica: ...
107 views

### Solving for the limits of an integral

I am trying to get Mathematica to solve for the symmetric limits of an integral of a Square Wave. ...
90 views

### Only one root at specific interval

I need a help to find k here: $f(x)=-k^x + x^2$ It is not too simple. I have interest to find the single value of "k" where, inside interval {x,2,3}, the function have only one value to x when f(x) ...
40 views

### QuantityVariable usage

When I try to run the following code, Mathematica gives me an error message: "Solve was unable to determine the units of quantities that appear in the input." ...
26 views

### How to find $Proj_M(x,y)$ where $M=\{(x,y)|2x+3y=0\}$ is a closed subspace in a Hilbert space H [closed]

==================================================================== Consider the set $M=\{(x,y)|2x+3y=0\}$, in $(R^2,||.||_2)$. Given $(x,y) \in \mathbb{R}^2$, find $P_M(x,y)$, where M is a closed ...
60 views

### Export collection of plots to A4 pdf

Sometimes I want to Export a collection of plots or other Graphics to a pdf in A4 format. Right now I'm using a GraphicsGrid inside a panel which is an inset in a Graphics object. Here is an example: ...
57 views

### Delete data were y = “NS” in a list with elements {x, y} [duplicate]

I have a list of data {x, y}and not all of them have actual values. They show as {x, "NS"} or ...
34 views

### Using lists for creating another list [closed]

I have list ("F") of numbers of length n. asthma = ((A - B)/A)/Sqrt[XXX], where "A" and "B" are also lists of numbers of length n. The thing I need is that "asthma" will also be a list of numbers ...
76 views

### Mathematica doesn't read .mat file

To be honest, I don't know if the problem is with Mathematica, or with the file; it's been generated by PicoScope, a PC-based oscilloscope software, not Matlab. The error I get in Mathematica 9 when I ...
36 views

### plotting a box in Mathematica [closed]

I know by using UnitBox box of width of any extent and height of 1 unit can be plotted as ...
507 views

### Flatten nested lists

I have a list as follows lis= {a, {{{b}, {c,d,e}}, {{f}, {g,h,i}}}} which I would like to flatten to ...
67 views

### Plot Bivariate Data with Marginals

I would like to plot bivariate data along with the marginal distributions. I've arranged the plots in a GraphicsGrid as below but the marginals are centered away from the bivariate plot and I wonder ...
61 views

### Misunderstanding the difference between Map Apply (@@@) and Map (/@) [duplicate]

Here's a minimal working example of a problem I'm having: ...
87 views

### Delete rows based on specific periods

I have data (.xlsx format): two columns - data in first column imported as DateObject (dates with specific time), data in second column are numbers (113388.28, 865165.98 etc.). I want to delete the ...
98 views

### Catch and Throw command [duplicate]

I am trying to find the time and maximum height of a projectile motion with air friction however Mathematica is "running" for a really long time and not giving an answer. Is there something wrong with ...