Renaming headers in Table
古いコメントを表示
Hi,
I want to make a table from an array by using the array2table function. This works perfectly fine for my datasets whereby table headers do not match. But on occassion I have it whereby the data will have headers that are the same. I.e.
'ground_force_px' 'ground_force_py' 'ground_force_pz' 'ground_force_vx' 'ground_force_vy' 'ground_force_vz'
'ground_force_px' 'ground_force_py' 'ground_force_pz' 'ground_force_vx' 'ground_force_vy' 'ground_force_vz'
Is there a way whereby I can to convert from array2table whilst keeping these header names the same ?
Many thanks,
5 件のコメント
Fangjun Jiang
2020 年 7 月 16 日
not clear
Jake Bowd
2020 年 7 月 16 日
Fangjun Jiang
2020 年 7 月 16 日
still not clear. Best way to do for this question
- Show small example data
- Show the code and data that works for you
- Show the code and data that has the error
Jake Bowd
2020 年 7 月 16 日
Fangjun Jiang
2020 年 7 月 16 日
See note under Steven's answer. "duplicated headers" is the keyword here. Look back your question, you will see why three MVPs couldn't guess it right.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!