Reputation
49,189
Next tag badge:
247/100 score
19/20 answers
Badges
6 77 192
Newest
 Nice Answer
Impact
~663k people reached

Apr
13
comment Calculating a function repetitively without using a For loop
Just trace it back through the code - CSI is 5x5 because inverse is length 5. inverse is length 5 because pts is length 5. Maybe the table should run from 0 to n-1 instead of 0 to n? I haven't tried to understand what you're doing so I don't know.
Apr
13
comment Calculating a function repetitively without using a For loop
CSI is 5x5 and getA[1] is 4x4 so the dot product in getF fails
Apr
13
comment Make continuous 3D tube out of 2D image (Mathematica 8)
@AnonymousPi, AFAIK there is nothing similar to Image3D in version 8, so you will need to use Graphics3D in some way. I suggest you edit the question to state that you need a version 8 solution, and unaccept this answer (questions without an accepted answer tend to get more views)
Apr
12
comment Make continuous 3D tube out of 2D image (Mathematica 8)
It would be a good idea to include the Tube.png image in the question
Apr
11
comment Elegant functional equivalent to a nested loop?
Similar: Extract[m, Range@n~Tuples~2~Select~OrderedQ, f]
Apr
9
comment Struggling with unexpected recusion
You should look up NestWhileList too.
Apr
7
comment Nested If statement with unevaluated arguments
And will evaluate its arguments sequentially, returning False as soon as any argument is False.
Apr
6
comment How to remove Graphics3D artifacts and order graphics objects; best practice?
No problem with v10.1 on Windows 7 with another Nvidia GPU. I can reproduce the problem (and the lack of antialiasing) by switching to the software renderer Style[Graphics3D[...], "RenderingOptions" -> {"Graphics3DRenderingEngine" -> "Software"}]
Apr
6
comment Access properties in Mathematica
@HaniSafadi, I looked at the definition of HiddenMarkovProcess using this tool and found it fairly quickly.
Apr
6
comment Access properties in Mathematica
Remember that the list notation {1,2,3} is just shorthand for List[1,2,3] so it is really no different from any other head[args] expression.
Apr
4
comment ContourLabels issues
Setting contours explicitly seems to fix it: Contours -> FindDivisions[{0, 2*10^19}, 10]
Apr
4
comment ContourLabels issues
The cut-off appears to be at Developer`$MaxMachineInteger
Apr
3
comment What are the cool kids talking about when they use ##&[]?
@raxacoricofallapatorius, it works the same in most places that you'll see Unevaluated@Sequence[], but I hesitate to say that it's equivalent. There may be counterexamples.
Apr
3
comment String-manipulation bugs in v10.1
@Jinxed, it works for me. Perhaps you saw a cached result? Could you try ClearSystemCache[] or a kernel reset and try again?
Apr
3
comment String-manipulation bugs in v10.1
As a temporary workaround the version 10.0.2 regex can be obtained by evaluating StringPattern`Dump`rules = StringPattern`Dump`rules /. "(?<!" -> "(?=";
Apr
2
comment What are the cool kids talking about when they use ##&[]?
Good explanation. I prefer Unevaluated[] to Unevaluated@Sequence[] though I can see why the latter might be considered clearer.
Apr
1
comment How to get Mathematica to compile with target C?
Try evaluating Compiler`$CCompilerOptions = {"ShellOutputFunction" -> Print} to see the compiler output
Mar
28
comment How to sort digits in a string while keeping other characters untouched?
+1 You could also use !OrderedQ[{b, d}] as your condition which should be faster than converting to numbers.
Mar
21
comment How can I create a 3D representation of an object with known coordinates and adjacency table in mathematica?
@Jinxed, the OP didn't include data - I copied it in from kguler's answer because I though it was worth keeping the question open and all it really lacked was example data.
Mar
21
comment How can I create a 3D representation of an object with known coordinates and adjacency table in mathematica?
I copied your example data into the question, hope you don't mind. I think it's worth keeping open. +1 of course.