I'm working in MATLAB and Simulink to develop an algorithm that uses "pchip" to do some interpolation. To test the interpolation algorithm, I wrote a MATLAB function that does the processing and worked on that until I was satisfied with the results. I then copied this function into a MATLAB Function Block, so that I could make use of the algorithm in Simulink. When trying to run my model, I get syntax errors when trying to access different fields of the "pchip" output struct, saying those fields no longer exist. Why is this happening?
MATLAB: Does “pchip” not return all outputs when used in a MATLAB Function Block
MATLABsimulink
Related Question
- How to create sequence of random numbers in simulink that is non-repeating for every run and supports code generation
- How to access PCHIP function in simulink
- Unable to find ‘solver_zc.h’ header file in generated code from Embedded Coder
- Do I get an error about runtime methods when running the model with a MATLAB System block
- Does “setVariable” in Simulink Test not update variables
- How to implement “interp2” in Simulink without using a MATLAB Function block
- Is it possible to make the Rate Limiter block in Simulink a variable rate limiter
- Import tables in MAT files in custom Mask for use with ML Function Block
Best Answer