Adding a column of character data to a column of numeric data
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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}
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!