How do I find the nature of turning points using this function?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi all. I was asked to create a function which uses the turning points of a differentiable function in order to find the first derivative which is not equal to zero after which it finds the nature of the turning points given. The code for the function requires a while loop or a for loop. How can this be done please? Thanks in advance
0 comentarios
Respuestas (1)
Walter Roberson
el 24 de Mayo de 2022
values that are exactly the same are derivative 0. Once you find a value not equal to the first value, then any string of increases is a positive derivative, any string of decreases is a negative derivative, places you change between runs are turning point.
Hint: diff and sign
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!