How to group columns into deciles?

조회 수: 3 (최근 30일)
gcicceri
gcicceri 2020년 6월 16일
답변: Cris LaPierre 2020년 6월 16일
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.

답변 (1개)

Cris LaPierre
Cris LaPierre 2020년 6월 16일

카테고리

Help CenterFile Exchange에서 Datafeed Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by