22,570 reputation
23063
bio website sethares.engr.wisc.edu
location Wisconsin
age 59
visits member for 2 years, 4 months
seen 1 hour ago

enter image description here

The code to generate this cartoon is in my answer to the XKCD-ification question. When executed in Mathematica, there is even a secret mouse-over message.


6h
comment Mathematica List Selection
One approach would be to use Nearest with a custom DistanceFunction.
10h
awarded  Nice Answer
17h
comment Converting list into Double quote list
ChrisF - we don't have access to your hard drive to import the stocks2.xls file. If you show us the exact form of the data, I'm sure there is a way to get it to look as you wish.
17h
answered Parametric contour plot?
1d
comment Histogram bin includes numbers out of range
Use the second argument of Histogram to specify the bins yourself.
1d
comment Help with the plot f(x)=2ln(-0.5x+2)-1
Here's a good place to start: reference.wolfram.com/language/ref/Plot.html For your case: Plot[2 Log[-0.5 x + 2] - 1, {x, -5, 5}]
Nov
20
comment Writing a script in Mathematica like .m files of Matlab
Or what you want is semicolon: you can put many lines together in the same cell (like a "script") and then execute all at once.
Nov
19
comment Entering block matrices, general case doesn't work
You have described twice what you don't want, but you have not described what matrix structure you do want.
Nov
19
answered How to detect outlier in data of an unknown function $f(x)$
Nov
19
answered How can I call the R-programming packages in my Mathematica?
Nov
18
comment How can I call the R-programming packages in my Mathematica?
I'm afraid I don't know what realized covariance means. Perhaps the easiest solution is to use RLink and directly use the R implementation. Otherwise, please edit the question with enough information so that we can construct such a function -- perhaps with an example showing what calculation you desire to implement.
Nov
18
comment Can I generate matrices with a constraint?
You specified that "The diagonals are either k or k+1 for some k" and they certainly fulfill that condition. You did not say that you wanted to be able to choose k before the matrix was defined.
Nov
17
answered Can I generate matrices with a constraint?
Nov
17
comment Can I generate matrices with a constraint?
A matrix of all zeroes seems to fulfill all your criteria.
Nov
17
comment Why Infinity /. _?(# < 6 &) -> 0 replaces Infinity with ComplexInfinity?
You can get what you want using: mat /. _?(# < 6 &) -> 0 /. ComplexInfinity -> Infinity
Nov
17
revised How to discern the different curves?
added 40 characters in body
Nov
17
answered How to discern the different curves?
Nov
16
comment Efficient way to compare animated images to tell if they are the same
How about using the histograms of the images as features? Two images with (nearly) the same histograms are likely to be close to each other, and a sequences of similar histograms will almost surely be copies.
Nov
15
reviewed Close Calculate number of probabilities
Nov
14
revised LinearSolve in Mathematica, used to find square matrix
added 77 characters in body