Match Sorting Recursion Error

3 views (last 30 days)
Hi all,
I'm somewhat new to recursion using Matlab, and I'm running into an error using R2021a. The controlling code is written in a live script file. I'll attach a picture of it (and the error I'm getting) below as well as the code for the function. Hopefully you all can point me in the right direction, because honestly, I'm out of ideas. I know the input data is in the right format and contains values that should work.
Cheers and thanks for your help!

Accepted Answer

Jakeb Chouinard
Jakeb Chouinard on 29 May 2021
Found the problem:
The middle line below was missing in the original code, and as a result, it would return no values.

More Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!