Non-standard transpositionHow to transpose unequal listsBuilt-in (or Terse) Method to Combine and Transpose DatasetsTable with conditionChange a list of matrix elementsListwise “summation”, replacing empty lists with non-empty ones and ignoring “sum” of non-empty listsMore general permutation of lists
How do I delete cookies from a specific site?
I won a car in a poker game. How is that taxed in Canada?
Project Euler Problem 45
What's in a druid's grove?
What is the justification for Dirac's large numbers hypothesis?
SQL Always On COPY ONLY backups - what's the point if I cant restore the AG from these backups?
Connect the wires without setting off the bomb
Why does the seven segment display have decimal point at the right?
Pronounceable encrypted text
How to measure the statistical "distance" between two frequency distributions?
Looking for a big fantasy novel about scholarly monks that sort of worship math?
Professor refuses to write a recommendation letter to students who haven't written a research paper with him
Did the US Climate Reference Network Show No New Warming Since 2005 in the US?
1kV DC Circuit - Insulation on ground wire?
GFI outlets tripped after power outage
Why are some hotels asking you to book through Booking.com instead of matching the price at the front desk?
Why there is no wireless switch?
Why did Tony's Arc Reactor do this?
Friend is very nit picky about side comments I don't intend to be taken too seriously
What drugs were used in England during the High Middle Ages?
Draw the ☣ (Biohazard Symbol)
Male viewpoint in an erotic novel
What exactly is Apple Cider
Do 643,000 Americans go bankrupt every year due to medical bills?
Non-standard transposition
How to transpose unequal listsBuilt-in (or Terse) Method to Combine and Transpose DatasetsTable with conditionChange a list of matrix elementsListwise “summation”, replacing empty lists with non-empty ones and ignoring “sum” of non-empty listsMore general permutation of lists
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
I want to transpose lists of X values with lists of Y values.
In the form of:
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
In order to get lists of X and Y values in the form of:
x1,y1,x2,y2,x3,y3,x11,y11,x12,y12,x13,y13
If I use Transpose[X, Y]
I get a permutation error.
Is it possible to use the Transpose
command for such a task?
list-manipulation
New contributor
$endgroup$
add a comment |
$begingroup$
I want to transpose lists of X values with lists of Y values.
In the form of:
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
In order to get lists of X and Y values in the form of:
x1,y1,x2,y2,x3,y3,x11,y11,x12,y12,x13,y13
If I use Transpose[X, Y]
I get a permutation error.
Is it possible to use the Transpose
command for such a task?
list-manipulation
New contributor
$endgroup$
add a comment |
$begingroup$
I want to transpose lists of X values with lists of Y values.
In the form of:
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
In order to get lists of X and Y values in the form of:
x1,y1,x2,y2,x3,y3,x11,y11,x12,y12,x13,y13
If I use Transpose[X, Y]
I get a permutation error.
Is it possible to use the Transpose
command for such a task?
list-manipulation
New contributor
$endgroup$
I want to transpose lists of X values with lists of Y values.
In the form of:
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
In order to get lists of X and Y values in the form of:
x1,y1,x2,y2,x3,y3,x11,y11,x12,y12,x13,y13
If I use Transpose[X, Y]
I get a permutation error.
Is it possible to use the Transpose
command for such a task?
list-manipulation
list-manipulation
New contributor
New contributor
edited 8 hours ago
C. E.
55k3 gold badges107 silver badges217 bronze badges
55k3 gold badges107 silver badges217 bronze badges
New contributor
asked 8 hours ago
Mark NüeschMark Nüesch
111 bronze badge
111 bronze badge
New contributor
New contributor
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
$begingroup$
Yes, you may use the second argument like this:
Transpose[X, Y, 3, 1, 2]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
add a comment |
$begingroup$
Try MapThread
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
MapThread[#1, #2 &, X, Y, 2]
(*x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13*)
$endgroup$
add a comment |
$begingroup$
Also
Transpose[#] & /@ Transpose[X, Y]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
$begingroup$
No need pure function just useTranspose /@ Transpose@X, Y
$endgroup$
– OkkesDulgerci
5 hours ago
add a comment |
$begingroup$
Flatten[X, Y, 2, 3]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Mark Nüesch is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f204850%2fnon-standard-transposition%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Yes, you may use the second argument like this:
Transpose[X, Y, 3, 1, 2]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
add a comment |
$begingroup$
Yes, you may use the second argument like this:
Transpose[X, Y, 3, 1, 2]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
add a comment |
$begingroup$
Yes, you may use the second argument like this:
Transpose[X, Y, 3, 1, 2]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
Yes, you may use the second argument like this:
Transpose[X, Y, 3, 1, 2]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
answered 8 hours ago
C. E.C. E.
55k3 gold badges107 silver badges217 bronze badges
55k3 gold badges107 silver badges217 bronze badges
add a comment |
add a comment |
$begingroup$
Try MapThread
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
MapThread[#1, #2 &, X, Y, 2]
(*x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13*)
$endgroup$
add a comment |
$begingroup$
Try MapThread
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
MapThread[#1, #2 &, X, Y, 2]
(*x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13*)
$endgroup$
add a comment |
$begingroup$
Try MapThread
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
MapThread[#1, #2 &, X, Y, 2]
(*x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13*)
$endgroup$
Try MapThread
X=x1,x2,x3,x11,x12,x13
Y=y1,y2,y3,y11,y12,y13
MapThread[#1, #2 &, X, Y, 2]
(*x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13*)
edited 8 hours ago
answered 8 hours ago
Ulrich NeumannUlrich Neumann
14k7 silver badges23 bronze badges
14k7 silver badges23 bronze badges
add a comment |
add a comment |
$begingroup$
Also
Transpose[#] & /@ Transpose[X, Y]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
$begingroup$
No need pure function just useTranspose /@ Transpose@X, Y
$endgroup$
– OkkesDulgerci
5 hours ago
add a comment |
$begingroup$
Also
Transpose[#] & /@ Transpose[X, Y]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
$begingroup$
No need pure function just useTranspose /@ Transpose@X, Y
$endgroup$
– OkkesDulgerci
5 hours ago
add a comment |
$begingroup$
Also
Transpose[#] & /@ Transpose[X, Y]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
Also
Transpose[#] & /@ Transpose[X, Y]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
answered 7 hours ago
MelaGoMelaGo
2,7311 gold badge2 silver badges8 bronze badges
2,7311 gold badge2 silver badges8 bronze badges
$begingroup$
No need pure function just useTranspose /@ Transpose@X, Y
$endgroup$
– OkkesDulgerci
5 hours ago
add a comment |
$begingroup$
No need pure function just useTranspose /@ Transpose@X, Y
$endgroup$
– OkkesDulgerci
5 hours ago
$begingroup$
No need pure function just use
Transpose /@ Transpose@X, Y
$endgroup$
– OkkesDulgerci
5 hours ago
$begingroup$
No need pure function just use
Transpose /@ Transpose@X, Y
$endgroup$
– OkkesDulgerci
5 hours ago
add a comment |
$begingroup$
Flatten[X, Y, 2, 3]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
add a comment |
$begingroup$
Flatten[X, Y, 2, 3]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
add a comment |
$begingroup$
Flatten[X, Y, 2, 3]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
$endgroup$
Flatten[X, Y, 2, 3]
x1, y1, x2, y2, x3, y3, x11, y11, x12, y12, x13, y13
answered 3 hours ago
kglrkglr
216k10 gold badges246 silver badges493 bronze badges
216k10 gold badges246 silver badges493 bronze badges
add a comment |
add a comment |
Mark Nüesch is a new contributor. Be nice, and check out our Code of Conduct.
Mark Nüesch is a new contributor. Be nice, and check out our Code of Conduct.
Mark Nüesch is a new contributor. Be nice, and check out our Code of Conduct.
Mark Nüesch is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f204850%2fnon-standard-transposition%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown