5.12 Tuesday, October 11, 2016

================================== 
Top new questions this week: 
==================================

[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] http://mathematica.stackexchange.com/questions/128323/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] http://mathematica.stackexchange.com/questions/128025/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?] http://mathematica.stackexchange.com/questions/128211/why-are-exp3-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)

================================== Greatest hits from previous weeks: ==================================

[Is it possible to export the equations from Mathematica to MATLAB?] http://mathematica.stackexchange.com/questions/14035/is-it-possible-to-export-the-equations-from-mathematica-to-matlab

Is it possible to export the output expressions from Mathematica computations (e.g., equations) in valid MATLAB syntax?

- asked by Seyhmus Güngören (24 votes), answered by R. M. (32 votes)

—————————-

[Labeling individual curves in Mathematica] http://mathematica.stackexchange.com/questions/4444/labeling-individual-curves-in-mathematica

I need to create a plot for export and inclusion in a report. Is there a better way to label curves than PlotLegends? From what I’ve read and my personal experience, PlotLegends is pretty bad.

Is ...

- asked by Tianxiang Xiong (47 votes), answered by Artes (37 votes)

================================== Can you answer these? ==================================

[Help: Reclassify] http://mathematica.stackexchange.com/questions/128194/help-reclassify

Is it possible to improve the current ClassifierFunction with more training data without running the previous training again?

In this way i will be able to deal with very large datasets in chunks.

- asked by user13892 (5 votes)

—————————-

[Pattern matching problem in version 11.01] http://mathematica.stackexchange.com/questions/128247/pattern-matching-problem-in-version-11-01

Consider this simple example:

p1 = ListPlot3D[ 
   Table[Sin[j^2 + i], {i, 0, Pi, Pi/5}, {j, 0, Pi, Pi/5}], 
   Mesh -> None, Axes -> False, Boxed -> False, ColorFunction -> Hue]; 
p2 =  ...

- asked by xslittlegrass (8 votes)

—————————-

[CUDADot runs slowly and writes "CUDALink experienced a kernel launch failure" with matrix size > 3300] http://mathematica.stackexchange.com/questions/128124/cudadot-runs-slowly-and-writes-cudalink-experienced-a-kernel-launch-failure-wi

I am trying to learn CUDA and start from the help examples. 
It turnes out that CPU calculation is much faster for 
matrix sizes < 3200 than CUDA, while CUDADot gives the error for sizes > 3300. I  ...

- asked by luu (4 votes)