if i have matrix i want to convert it to vector?

1 次查看(过去 30 天)
if i have this matrix
A = [1 2 3
4 5 6
7 8 9]
then i change it to a vector like that
b = reshape(A',1,9);
b = [ 1 2 3 4 5 6 7 8 9]
then how can i convert b vector to A matrix ???

采纳的回答

Fangjun Jiang
Fangjun Jiang 2016-5-9
transpose(reshape(b,3,[]))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by