フィルターのクリア

i have string matrix which contains Row and Column. so how i can change one Row

2 ビュー (過去 30 日間)
hello i have string matrix which contains Row and Column. so how i can change one Row
Bits_com='
000001001001
010111100101
111111001101
001111001101
000000010000
001011011110
100110101001
010101000111
001111110101
111010010000
110010111110
111110000000
000000000000
as one row
convert=
000001001001010111100101111111001101001111001101000000010000001011011110100110101001010101000111001111110101111010010000110010111110111110000000000000000000
  2 件のコメント
Chad Greene
Chad Greene 2015 年 5 月 19 日
Can you explain your question more thoroughly? What exactly are you trying to do? Be specific.
Mohamuud hassan
Mohamuud hassan 2015 年 5 月 19 日
thank you Green, what i want is to concatinate rows of my mtrix to become one row. for instance: the data of line one 000001001001 and line two 010111100101 equal to 000001001001010111100101 ..... until last row.futhermore, i wrote this code but the result is same into original
[Exbit_R,ExbitC]=size(Bits_com)
for bitconc_out=1:ExbitC
for bitconc_inn=1:Exbit_R
Ex_NewRstream(bitconc_inn,bitconc_out)=strcat(Bits_com(bitconc_inn,bitconc_out))
end
end
thank you again

サインインしてコメントする。

採用された回答

Andrei Bobrov
Andrei Bobrov 2015 年 5 月 19 日
reshape(Bits_com',1,[])
  2 件のコメント
Stephen23
Stephen23 2015 年 5 月 19 日
@abdulkarim hassan: Andrei Bobrov's solution is much better than using nested loops.
Mohamuud hassan
Mohamuud hassan 2015 年 5 月 19 日
thank you Andrei Bobrov and Stephen Cobeldick

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by