Skip to main content
14 events
when toggle format what by license comment
Jan 13, 2023 at 1:41 history closed xzczd
Szabolcs
bmf
Dunlop
bbgodfrey
Duplicate of Using Transpose with a list as the second argument
Jan 12, 2023 at 11:57 history edited flinty CC BY-SA 4.0
added 2 characters in body; edited title
Jan 12, 2023 at 11:55 history edited karry CC BY-SA 4.0
deleted 129 characters in body; edited title
Jan 12, 2023 at 11:36 review Close votes
Jan 13, 2023 at 1:41
Jan 12, 2023 at 11:32 comment added bmf If your question is purely on the syntax, I suggest that you work through the examples given in the second link that @xzczd provided. If you are trying to construct a matrix and you don't know how, but you feel Transpose is the way, it would be better to tell us the matrix you want to construct.
Jan 12, 2023 at 11:31 comment added xzczd As mentioned in Details and Options section of document of Transpose: For a square matrix m, Transpose[m,{1,1}] returns the main diagonal of m, as given by Diagonal[m]. »
Jan 12, 2023 at 11:27 comment added karry Thanks @bmf I have a try, indeed they are different, and using MatrixForm@Transpose[{{1, 2}, {3, 4}}, {1, 1}], I get {1,4}, but I still can't understand.
Jan 12, 2023 at 11:26 comment added xzczd And, in early version Transpose[{1,2,3}] isn't even legal: mathematica.stackexchange.com/q/244659/1871
Jan 12, 2023 at 11:22 comment added bmf To understand this last question you should compare MatrixForm@Transpose[{{1, 2}, {3, 4}}] to MatrixForm@Transpose[{{1, 2}, {3, 4}}, {1}] as a minimal example
Jan 12, 2023 at 11:21 comment added karry @xzczd I understand the error, but what's the meaning of Transpose[{1,2,3}, {1}] , that is , why I need the n_k level?
Jan 12, 2023 at 11:12 comment added xzczd ……Then why are you using this syntax of Transpose? Strongly related: mathematica.stackexchange.com/a/14810/1871
Jan 12, 2023 at 11:05 comment added bmf Also, perhaps you could tell what kind of list you are trying to construct
Jan 12, 2023 at 11:02 comment added bmf You should read tperm which explains it explicitly with an example
Jan 12, 2023 at 10:55 history asked karry CC BY-SA 4.0