How to delete a column of an array?
古いコメントを表示
Hello,
I have a n by 3 single array. As I want to plot just the x and y data, I need to delete the z column in that array. Could you please tell me how that is done?
Thanks in advance!
Lucca
採用された回答
その他の回答 (1 件)
Adam
2015 年 11 月 2 日
array = array(:,1:2);
or
array(:,3) = [];
3 件のコメント
lucca k
2015 年 11 月 2 日
I am not familiar with 'PointCloud', but I assume it is a class that is used for 3d point representations so just throwing away the 3rd column would not work in that case.
You need to give more information about what pointCloud is and the structure of your array for that case.
lucca k
2015 年 11 月 2 日
カテゴリ
ヘルプ センター および File Exchange で Color and Styling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

