how to vertically cascade a string vector and a numerica matrix
4 次查看(过去 30 天)
显示 更早的评论
a={'time','channel1','channel2','channel3'}; b=[ 1 2 3 5; 4 2 6 7; 8 5 1 9; 3 2 4 6; 7 6 0 8]; how to vertically cascade the two, so the first row is a, and b has the same column number (4)?
0 个评论
采纳的回答
Steven Lord
2016-3-23
Consider creating a table using the contents of the cell array as the variable names and the matrix as the data.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!