Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 1376

Questions on the manipulation of List objects in Mathematica, and the functions used for these manipulations.

7 votes
Accepted

How can I use the overhang argument to Partition to avoid using PadLeft and PadRight here?

Something like this? f[list_, {r1_, r2_}, pad_] := Partition[list, r1 + r2 + 1, 1, {r1 + 1}, pad] In[14]:= f[Array[v, 6], {1, 4}, 0] Out[14]= {{0, v[1], v[2], v[3], v[4], v[5]}, {v[1], v[2], v[3], …
MinHsuan Peng's user avatar
9 votes
Accepted

Labeling data in ListPlot

This can take the advantage of new labeling function: plot = ListPlot[c, AspectRatio -> Automatic, Frame -> True, PlotMarkers -> {Graphics[{Point[{0, 0}]}]}, FrameLabel -> {{"y", ""}, {"x", …
MinHsuan Peng's user avatar