# All Questions

113 views

### Can I generate matrices with a constraint?

Say I want a way to generate matrices with the following properties, All non-diagonal elements are either $0,1,-1$ The diagonals are either $k$ or $k+1$ for some $k \in \mathbb{Z}^+$ for some $k$ ...
90 views

### Can't use my own discontinuous coefficient within NDSolve

I want to evaluate the pendulum's motion with changing equilibrium state given by eqilValue[t]: ...
48 views

### Plotting A Function Using A Given Number Of Points [closed]

i'm new to mathematica and am trying to figure out how I can plot something and specify the number of points on the plot. I want to plot the real root of an equation from a=0..1 using 500 points of ...
32 views

### Simplifying an inequality inside an answer by parts

I have the following piece of code where I'm evaluating a probability of a variable v being greater than some threshold under a Uniform distribution. ...
83 views

### How to implement kvo in Mathematica 10? [duplicate]

Key value coding and observing is something that other languages do well, like objective-c for instance. What's the best way to achieve something similar in Mathematica (if at all possible)? That is, ...
52 views

### Show legend on plot [duplicate]

I have a series of curve I'm plotting using ListPlot. For each plot I'm changing a variable called X. Is there anyway I could ...
54 views

### DSolve bvlim error due to Boundary condition at infinity

I am solving an Ode using Mathematica that has boundary condition at infinity which is why Mathematica is showing error message. Please help to tackle this problem. ...
34 views

### plotting the stable and unstable manifolds of a difference equation

I have a 2D non-linear system of difference equations for variables x and y defined as follows: ...
137 views

### Deleting missing data with CountryData

I need to delete all of the missing entries after executing this line: ...
22 views

### Probability of occurrence of an event [closed]

If n positive integers are taken and multiplied together then the probability that the product has 1,3,7 or 9 as it's last digit ?
23 views

### How to define a function with more than one equation in? [closed]

How do I define the first function where there are more than one equations in it with each with an inequality? And for the second question how do I graph the periodic extension, what is it?
68 views

I am a novice using Mathematica. I program regularly using c like languages though. Now i work on a simulation of a vehicle. I have a loop that calculates the next state of the physical model every dt ...
202 views

### Negative integral of a positive function

For a parameter $t\in (0,1)$ $Assumptions = t ∈ Reals && t > 0 && t < 1 I define an obviously positive function$f(x)=\left| \Re ...
79 views

### Merging documentation from Workbench with handed-coded package

On the one hand, I have been writing my package (directly into the .m file) separately using the standard Mathematica front-end. My source .m files and the init.m files have the appropriate folder ...
183 views

### Why Infinity /. _?(# < 6 &) -> 0 replaces Infinity with ComplexInfinity?

Suppose I define a matrix: mat = { {Infinity, 4, 9}, {6, Infinity, 10}, {8, 9, Infinity} }; Now I want to replace all values smaller than ...
36 views

### Fix the position of the axes label [duplicate]

How can I set the position of the axes labels (X,Y,Z), so that, among other things, they do not overlap with the numbers in the axes? Here an easy example: ...
86 views

45 views

### How to discern the different curves?

When we plot many curves, due to repeated colors it becomes difficult to discern that which curve belongs to which equation. For instance, ...
20 views

### batch processing proof of the number of jobs' relationship with service time and waiting time [closed]

The classical batch processing system ignores the cost of increased waiting time for users. Consider a single batch characterized by the following parameters: M average mounting time T average ...
27 views

### definitions and usages of options such as “Count” ,”Area”, “ConvexCount”, and “ConvexArea”

I would like to use ComponentMeasurements to do image analysis on porus materials. However definitions andusages of options such as “Count” ,”Area”, “ConvexCount”, and “ConvexArea” are not well ...
351 views

### Finding minimal distance between two surfaces

This code will display two parametric surfaces: ...
68 views

### How to create an effective PlotLegend when plotting many ListPlots?

I'm creating a ListPlot where I plot many data sets simultaneously. Currently, my code that produces it is something like this: ...
36 views

### Coefficients of a DiffEq [closed]

I'm attempting a Do[] recursion on Coefficient[] with the end goal to use it to find the coefficients of an nth order diffeq. The following is a basic example of what I'm trying to do, subbing a ...