Adding a column of character data to a column of numeric data

4 ビュー (過去 30 日間)
charles atlas
charles atlas 2012 年 5 月 10 日
I have two columns of data. One is a column of numeric data, and one is a column of time data. G=numeric data; T=datestr(T, 'HH:MM:SS');
The columns are the same length. I want to take the column of time data and insert it into G. As in have a 600by2 matrix with one column of data is numeric and the other is the time data.

採用された回答

Walter Roberson
Walter Roberson 2012 年 5 月 10 日
The only kind of array that can mix numeric data and character data is a cell array. You would get that with
{G, T}
  1 件のコメント
charles atlas
charles atlas 2012 年 5 月 10 日
Wow it was really that easy huh.
Thank you.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by