How to join the char and num in one matrix
1 回表示 (過去 30 日間)
古いコメントを表示
i have data char and num , can i join both in one matrix.....
the data is
12:00 AM 26
12:30 AM 27
1:30 AM 28
0 件のコメント
回答 (1 件)
Walter Roberson
2012 年 10 月 31 日
No. A numeric array can hold numeric data only. A character array can hold character data only.
You can convert the numeric data into character data so that your array is all character, or you can use a cell array.
{'12:00 AM', 26; '12:30 AM', 27, '1:30 AM', 28}
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!