フィルターのクリア

convert a char array into a single char

16 ビュー (過去 30 日間)
aidan vickars
aidan vickars 2019 年 3 月 18 日
回答済み: Pruthvi G 2019 年 3 月 18 日
Basically I have a 360*4 char array full of letters, I need to convert it to a 31*40 char array. But the issue is the order matters. In the new array, the 1st row must be the first row of the old array followed by the second row of the old array followed by the third row of the old array and so on up to 40 characters for each row.
Any thoughs would be greatly appreciated.
  1 件のコメント
KSSV
KSSV 2019 年 3 月 18 日
Read about reshape. Else attach your data.

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

回答 (1 件)

Pruthvi G
Pruthvi G 2019 年 3 月 18 日
Please specify with an example.
You can use
Empty_chars = char(' '*char(ones(360,4)))
Reshaped = reshape(Empty_chars,36,40)
help reshape for mre info

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by