passing a list of variables instead of the variables themselves
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello all,
I currently call the splitapply function as follows:
output = splitapply(@(DataFilename, Temperature, R504, CPW, Signal) {table(DataFilename, Temperature, R504, CPW, Signal)}, T1, G)
I also have the following variable:
D = {'DataFilename' 'Temperature' 'R504' 'CPW' 'Signal'}
I would like to call the same splitapply function, using the D variable instead of explicitly indicting the individual DataFilename, Temperature, R504, CPW, Signal names.
Something like this (which, unfortunatelly does not work):
output = splitapply(@(D{:}) {table(D{:})}, T1, G)
How could it be done correctly?
Regards,
Cristian
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!