フィルターのクリア

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

2 ビュー (過去 30 日間)
Firas Al-Kharabsheh
Firas Al-Kharabsheh 2016 年 5 月 9 日
回答済み: Fangjun Jiang 2016 年 5 月 9 日
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 Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by