Could someone help me implement this function pseudo code? The last two parts are pretty straight forward but im not sure how to find the interval in the iteration. Thank you!

 Akzeptierte Antwort

Steven Lord
Steven Lord am 6 Nov. 2019

1 Stimme

Since this sounds like it may be homework I'm only going to give two hints.
One way to do step 1 is to use discretize.
You may want to check the case where the element of x is a member of the d vector beforehand.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by