Note: When you use the function for the first time, the figure viewer in MATLAB may display "Unable to open file" or "File not found". This error only appears when ...
Run npm install interp1 Add an import to the npm package import interp1 from 'interp1'; Then you can use the function in your code.