How to programmatically play an Audio object?
TreePlot does not give a "binary-looking" tree for a binary tree
Partition array without unpacking
Creating a simple Dock Cell that Fades In when Cursor Hover Over It
Why are Exp[3] and 2 treated differently within Complex?
KeyDrop does not respect Key in V11
Strategies for creating 3D text
How to programmatically play an Audio object? http://mathematica.stackexchange.com/questions/128147/how-to-programmatically-play-an-audio-object
A Sound object can be programmatically played using EmitSound. Example: snd = ExampleData[{"Sound", "AltoFlute"}]; Button["Play!", EmitSound[snd]] What about an Audio object?
- asked by Szabolcs (14 votes), answered by Szabolcs (9 votes)
TreePlot does not give a "binary-looking" tree for a binary tree
I use the following code to generate a binary tree with root 1. TreePlot[{1 -> 2, 1 -> 3, 2 -> 4, 2 -> 5, 3 -> 6, 3 -> 7, 4 -> 8, 4 -> 9, 5 -> 10, 5 -> 11, 6 -> ...
- asked by Tony (13 votes), answered by WReach (19 votes)
Partition array without unpacking http://mathematica.stackexchange.com/questions/128133/partition-array-without-unpacking
What is the simplest way to partition a list into equal-length sublists, allow the last sublist to be shorter of necessary, and avoid unpacking? Partition doesn't usually unpack: arr = RandomReal[1, ...
- asked by Szabolcs (13 votes), answered by Szabolcs (7 votes)
Creating a simple Dock Cell that Fades In when Cursor Hover Over It
I like to create dock cells, that enhance the look of my notebooks. Do you know of a simple way to get the functionality in iBooks shown below in the video. I want the dock cell in Mathematica to ...
- asked by Michael McCain (13 votes), answered by Karsten 7. (14 votes)
Why are Exp[3] and 2 treated differently within Complex? Why doesn't the last command below split the complex number into its real and imaginary parts? Complex[2,2] (* 2 + 2 I *) Complex[N[Exp[3]], N[Exp[3]]] (* 20.0855 + 20.0855 I *) ...
- asked by Fernando Saldanha (12 votes), answered by Szabolcs (18 votes)
KeyDrop does not respect Key in V11 http://mathematica.stackexchange.com/questions/128171/keydrop-does-not-respect-key-in-v11
KeyDrop[<|a -> 1|>, Key[a]] <|a -> 1|> KeyTake[<|a -> 1|>, Key[a]] <||> closely related but not the same: Unexpected behavior of KeyTake Are there any ...
- asked by Kuba (11 votes), answered by Xavier (5 votes)
Strategies for creating 3D text http://mathematica.stackexchange.com/questions/128412/strategies-for-creating-3d-text
I am interested in using Mathematica to create 3D text for printing. I stumbled upon this answer which works very well in a slightly modified form: text3D[text_String, mult_] := ListPlot3D[ ...
- asked by bobthechemist (10 votes), answered by J. M. (14 votes)