How do I create a multi-dimensional array from a 2D data matrix?
显示 更早的评论
Hello all. I apologize in advance for any confusion in my question. This problem has so thoroughly confused me I'm not sure I can even explain it concisely.
Essentially, I need to create an N-dimensional array to hold output data for N input arguments. The goal is to interpolate across the inputs of the array to find desired data points.
So, for example, I have a 2D matrix of the following data points:
Input1 Input2 … InputN Output1 Output2 … OutputX
Input1 Input2 … InputN Output1 Output2 … OutputX
Input1 Input2 … InputN Output1 Output2 … OutputX
I'm looking for an efficient way to interpolate through this data and determine all the outputs for any input variation. I had though the best way to do this would be an N-dimensional matrix but now I'm not so sure.
Another problem is that the inputs are not guaranteed to be "square". For example, at a fixed Input1 value there might be 3 Input2 values, however at the next Input1 there may be only 2 Input2's.
Please let me know what additional information I can provide
回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!