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!

 채택된 답변

Steven Lord
Steven Lord 2019년 11월 6일

1 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2019년 11월 6일

답변:

2019년 11월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by