how to add row and column label to a matrix and make it as a dataset?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a matrix look like below
df =randi(10,100,1)
I want to give row lable to do two ways, once I want to assing 50 first row as 1 row label and 50 second one as row label 2 once I want to assign another arrys which is a random lables as row lables to this matrix and have the final data as dataset.
any comment is appreciate
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2015 年 6 月 17 日
編集済み: Azzi Abdelmalek
2015 年 6 月 17 日
df =randi(10,100,1)
a=reshape(df,50,[])
out=mat2dataset(a)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!