Remove ObsNames from MatLab dataset

조회 수: 4 (최근 30일)
Gerben Mooiweer
Gerben Mooiweer . 2012년 1월 9일
As a result from a grpstats on a MatLab dataset, I end up with a MatLab dataset having ObsNames filled in. I do not like that, because these ObsNames are exported to Excel. Is there a way to remove ObsNames from a MatLab dataset or set these to empty ?
Thanks, Gerben

채택된 답변

Lucas García
Lucas García 2012년 1월 9일
The property ObsNames may be empty. Otherwise, it should have as many strings as observations. To remove these ObsNames from a dataset called d1, you can do the following:
d1.Properties.ObsNames = {};

추가 답변 (0개)


Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by