job search
job search

Reputation: 1

what does the PadRight function do in Wolfram Mathematica?

For this line of code I'm having trouble visualizing what the padright function does?

results = Transpose[PadRight[{RMSL, MaxDevL, AreaofeachTorsoL, NormalxLp2, 
     NormalyLp2, NormalzLp2, TorsoLp, RMSLn, MaxDevLn, 
     AreaofeachTorsoLn, NormalxLn2, NormalyLn2, NormalzLn2, 
     TorsoLn}, {Colnu, Rownu2}, P]];

Upvotes: 0

Views: 69

Answers (1)

Liu Pred
Liu Pred

Reputation: 16

You need Join 2 number in XXXXX and PPPPP ,such as

XXXXX = 16; PPPP = 2; results = Transpose[ PadRight[{RMSL, MaxDevL, AreaofeachTorsoL, NormalxLp2, NormalyLp2, NormalzLp2, TorsoLp, RMSLn, MaxDevLn, AreaofeachTorsoLn, NormalxLn2, NormalyLn2, NormalzLn2, TorsoLn}, XXXXX, {Colnu, Rownu2}, PPPP]]

Upvotes: 0

Related Questions