4
votes
4answers
235 views

Replace matrix rows conditionally while avoiding For loop

I have the following variables: myMatrix={{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}} myIndices={1,3} I need to replace the rows ...
-1
votes
1answer
44 views

Position not working? [on hold]

I have the list: myList={0,0,0,a,b,c,0,0,d} I need to find the positions of all elements that are non-zero. I do like this: ...
5
votes
0answers
70 views

DSolve returns an answer that is not a solution

Investigating DSolve misses a solution of a differential equation, I came across this odd behavior of DSolve. The following DSolve command returns an answer to the ...
1
vote
0answers
39 views

Plot is wrong for oscillating function [duplicate]

It doesnt even oscillate that much Plot[Exp[-Pi x^2 + I ( 60 1/(x^2 + .6) + 0.2)] // Re, {x, -2, 2}, PlotRange -> Full, MaxRecursion -> 15] What is ...
4
votes
0answers
47 views

How to define a bivariate skew normal distribution?

There is BinormalDistribution that handles easily bivariate normal distribution and its mixtures. There is also ...
0
votes
0answers
29 views

How to (efficiently) export the tutorial files as PDF?

The English version is freely available online at wolfram learning center. I also have a Chinese version of Mathematica 9.0.1. I wonder if there is an easy way to export the help files as PDFs from ...
-3
votes
0answers
45 views

Plot experimental data from .dat file [on hold]

I have a huge table of 42 columns of data in a .dat file, which I need to plot as a 3d-plot. How can I do that?
1
vote
0answers
66 views

NonlinearModelFit::nrnum error [on hold]

I'm trying to fit data (including some small negative numbers at both extremes) to a normal distribution. ...
0
votes
0answers
49 views

How to replace element by element in a list? [on hold]

I have the list: myList={{a,b,c},{d,e,f},{g,h,i}} I need to transpose every element individually, so I do: ...
3
votes
1answer
45 views

Extending Button's Method -> “Preemptive” 5 second timeout

This is an example from the documentation for Button : ...
5
votes
1answer
82 views

How to make sense of LowpassFilter, SampleRate and the cutoff frequency ωc in different Mathematica versions?

How do you make sense of the scale of "time" and "sampling" when using LowpassFilter and SampleRate ? Given the test data with ...
1
vote
0answers
34 views

Mixture of a bivariate distribution defined as a copula

I define a bivariate distribution: ...
3
votes
1answer
113 views

How can I prevent SHIFT-ENTER moving the editing cursor?

What I do: Here press Shift+Enter to evaluate. What I get: The cursor disappeared What I want: The cursor retained Workaround: Up Arrow as many times as it takes, Right arrow as many times ...
4
votes
1answer
79 views

Substitute a function's definition for its name

I'm having trouble with a function which is supposed to work on another function. Simplified version: ...
0
votes
0answers
32 views

What is diffusion map? [on hold]

I have trying to understand this diffusion map,I know it has something to with statistics and reducing no of variables in calculation, I was reading a article which uses this diffusion map to ...
4
votes
0answers
39 views

ListLogPlot error when forcing y axes start at 0

I came across an error I can not circumvent. When plotting the following: ListLogPlot[Table[1/x, {x, 1, 100}]] I receive a functioning plot. If I now want to ...
2
votes
1answer
32 views

How can one easily toggle the “insufficient version” warning message in CDF and Mathematica?

Unfortunately people use different Mathematica and CDF versions and the default setting of "InsufficientVersionWarning" in MessageOptions is True both in Mathematica and the CDF Player (which is quite ...
5
votes
1answer
92 views

Efficient upsampling of multidimensional array

I would like to efficiently upsample a multidimensional array. It's a 5000*5 matrix where each element is a submatrix 12*12 and it is that 12*12 matrix I want upsampled (to 24*24). The upsampling ...
6
votes
2answers
182 views

Mathematica 10, Show, and PlotRange

I have recently moved from Mathematica 8 to Mathematica 10, however I'm having a problem with PlotRange->All in combination with Show[]. For example, ...
1
vote
2answers
71 views

Options for a function I define that can be passed to functions I call in the definition

I know, this is very close to Functions with Options and/or Function with custom Options and modified Options for built-in Symbols, but I don't get it. My function looks like this one: ...
0
votes
1answer
34 views

Specifying a PopupMenu in a Manipulate expression

In my previous question here, I had a problem with showing GeoGraphics in a CDF document, but thanks to other users, I was able to solve it. But the code I wrote to test my work gave an error. I tried ...
8
votes
1answer
161 views

How to change the font color of a variable in whole input cell

I want to track the occurrence of a particular variable in a code. So the idea is to change its color. Usually I do it in a crude way - convert the code into text and then use ...
2
votes
1answer
38 views

DateListPlot incorrect time zone

I'm trying to plot energy usage over time using datelistplot but the time zone on the ticks is wrong, data for 7pm shows as 3am The code: ...
5
votes
1answer
41 views

Control line wrapping within a Grid cell

I'm trying to display a number tables of data in my document which have column headings that are longer than the cell width for those columns so they need to wrap within the grid cell. I have no ...
1
vote
1answer
75 views
0
votes
1answer
65 views
0
votes
1answer
78 views

Plot given points, lines and arcs in 3D

I need to plot 6 points in 3D. I used the command 'Plot' but I couldn't draw it. The coordinates of points $A,A',B,B',C,C',D$ are given. $AD,BD,CD$ are straight line segments $AA',BB',CC'$ are arcs ...
1
vote
0answers
52 views

Why can't I paste data from Notepad into Mathematica 10 in Windows 8.1? [on hold]

I can't paste data that I have copied from Notepad in Windows 8.1 into Mathematica 10. I was able to do this when I had Windows 7 and Mathematica 8. Now when I try to paste into Mathematica 10 using ...
13
votes
1answer
101 views

Change in Lighting and Show in V10?

According the documentation for Show: Options explicitly specified in Show override those included in the graphics ...
0
votes
0answers
24 views

Why does my contour plot have missing blotches? [on hold]

I think it may have to do with areas on the plot that are very small in value.
6
votes
0answers
41 views

Incorrect Display on Linux (+HiDPI)

I have Linux on a HiDPI laptop, and after first installing Mathematica, the default font size is far too small: After searching for a few solutions, this can be fixed by either changing the ...
4
votes
2answers
110 views

Module inside of Manipulate Example

Here is a very nice example from The Student's Introduction to MATHEMATICA. ...
8
votes
0answers
48 views

Is this behaviour, producing OutputSizeLimit`Dump`encapsulateOutput, a bug?

Bug introduced in 6.0.0 and persisting through 10.2.0 The input ...
6
votes
1answer
65 views

Problem Using Evaluated Replace with Associations

If I define some function like: toISOdate[data_List]:=DateString[data,{"Year","-","Month","-","Day"}] and try to applicate it in an ...
1
vote
0answers
59 views

PDE: solving Fokker-Planck equation with initial and boundary condition [migrated]

Here is the problem. We have the following simple PDE: \begin{equation} \frac{\partial p(x,t)}{\partial t}= - a\frac{\partial p(x,t)}{\partial x} + \frac{D}{2} \frac{ \partial^2 p(x,t) }{\partial ...
3
votes
1answer
41 views

Change Property without re-evaluating [duplicate]

I am working with ContourPlot3D, and my expression takes a long time to evaluate (nearly 20 minutes). So I am wondering if there is a method to changing format ...
5
votes
0answers
41 views

DynamicModule's Deinitialization & CDFDeploy

This evaluates fine for me: CDFDeploy["test.cdf", DynamicModule[{}, Dynamic["Hello World"], Deinitialization :> 1]] But this results in a never ending ...
0
votes
0answers
83 views

Why does this Graphics3D example change lighting on reorient? [on hold]

What I do: Graphics3D[{Sphere[]},Lighting -> "Neutral"] What I get: but when I reorient: What I want: a stable result! PS The Platform is Wolfram ...
0
votes
0answers
36 views

How to change number form of Plot Legend in ListContourPlot? [on hold]

I am creating a ListContourPlot from some very large values. I would like these numbers to be written out in scientific notation (8x10^8, etc.) I've tried the following code: ...
3
votes
0answers
53 views

How to produce timely spoken text?

On my system (Mac OSX 10.10.4) the following code produces only the first utterance. The second one is produce when the user interacts in some way with the front end (mouseover, mouseclick). How can I ...
0
votes
0answers
8 views

Don't understand about how to solve the first equation with Gauss Elimination [migrated]

Please take a look at the picture. My quesion is: How to solve the first equation with Gauss Elimination that is displayed in the picture. I don't understand HOW.
0
votes
0answers
30 views

Set::setraw error help includes Module

Simple program for euler's method. I changed it to this and it works, just not to the extent I want it to. Right now I have to define x and y locally, whereas I'd rather set them as a global initial ...
6
votes
0answers
36 views

Override a PlotTheme element at the Options level?

Plot properties defined in a Theme override (supersede) properties defined on Options. This can be undesirable in a case such as: ...
5
votes
3answers
222 views

How to imitate list comprehensions for constant arrays?

In Python, ['a'] * 10 generates ['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a'] and ...
0
votes
0answers
4 views

How to solve a equation task [migrated]

I have found a equation task that is: y=0,5x+2,5 y=3x-1 The answer and its process is: ...
7
votes
0answers
91 views

How to make a Nebulabrot?

A Nebulabrot is a generalization of the Buddhabrot, a fractal rendering technique related to the Mandelbrot set that sort of looks like a meditating buddha. The Buddhabrot rendering technique was ...
3
votes
2answers
56 views

How can I adjust the global input variable of a function to the value of a local variable within the function

I am trying to define a function f[l_] that will perform an operation on whatever input variable I use (normally I use l which ...
1
vote
2answers
95 views

How to write a loop

I try to create a table which will describe traffic paths at a crossroads. Instead of using copy-paste repeatedly, I would like to write a loop. For example: ...
1
vote
0answers
46 views

How to segment letters and text blobs?

This new article from Google research describes how their Translate app preprocesses an image on a phone before applying convnets: It needs to weed out background objects like trees or cars, and ...

15 30 50 per page