Info

此问题已关闭。 请重新打开它进行编辑或回答。

square matrix of order (vector+1 value) formed from a vector and one value?

1 次查看(过去 30 天)
square matrix of 4X4 should be formed from the vector [1 2 3]
i have a value to form four different combination eg. (value=0)
square matrix should be like this so the value 0 added on the diagonals
[1,2,3,0;1,2,0,3;1,0,2,3;0,1,2,3]; help me to code this by suitable logics

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by