How to group columns into deciles?
2 次查看(过去 30 天)
显示 更早的评论
Hy guys,
I have this table composed by strings:
DateTime 1 2 3 4 5
___________ ______ ______ ______ ______ ______
01-Jan-1990 "Var5" "Var3" "Var1" "Var2" "Var4"
02-Jan-1990 "Var3" "Var5" "Var1" "Var2" "Var4"
03-Jan-1990 "Var5" "Var3" "Var1" "Var2" "Var4"
04-Jan-1990 "Var3" "Var5" "Var1" "Var2" "Var4"
05-Jan-1990 "Var5" "Var3" "Var1" "Var2" "Var4"
My question is:
How do I unpack the columns (already sorted) and take for instance 10%, 20% or 40% of the columns??
Like this (40%):
DateTime 1 2
___________ ______ ______
01-Jan-1990 "Var5" "Var3"
02-Jan-1990 "Var3" "Var5"
03-Jan-1990 "Var5" "Var3"
04-Jan-1990 "Var3" "Var5"
05-Jan-1990 "Var5" "Var3"
Which function to use?
Thanks a lot.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!