Making a function to restructure matrix of coordinates
古いコメントを表示
I have a 36x3 matrix of data in a double, where the three columns represent x, y, and z coordinates. I'm trying to make two functions. The first will restructure the matrix so that it becomes a 6x6 data set, where the column and row numbers represent the x and y values and the cells represent the z values. The second reverses this, and converts the 6x6 back into the original 36x3. I've looked a bit into using the reshape function, but I dont know how to incorporate the values of the rows and columns. Any help is appreciated. Thanks.
2 件のコメント
James Tursa
2020 年 4 月 13 日
Your 6x6 scheme can only work if the x and y values form a regular grid and the formula for the grid coordinates is known. Is that the case? If so, how is the data in the 36x3 matrix organized? Can you give a numeric example?
Patrick O'Mahony
2020 年 4 月 14 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Time Series Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!