Resize 4-dimensional matrix, possible?

2 views (last 30 days)
I have a simple question.
I have a function F(a,b,c,d) with dimension=50 each. It represents a set of optical transfer functions and I'm curious if there is any way to interpolate this 4-D Matrix using matlab.
Calculating it takes lots of time, which brought me to this - perhaps stupid - question.
Thank you very much for your thoughts!
  1 Comment
Bene Died
Bene Died on 4 Feb 2016
Ok. I found the solution. The function which is doing it is called
interpn

Sign in to comment.

Accepted Answer

Stephen23
Stephen23 on 4 Feb 2016
Try interpn, which interpolates any number of dimensions.

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!