derivative of a function file

hello everybody i'm wondering if it's possible to find the numerical derivative of a piecewise function that i have separately built as a function file in matlbab

댓글 수: 2

Jan
Jan 2013년 11월 29일
What exactly is the derivative of a piecewise function? Does "piecewise" implies a continuous derivative in your problem?
Walter Roberson
Walter Roberson 2013년 11월 29일
A spline, for example, is piecewise. (Note: there is a spline derivative routine around.)
Piecewise does not necessarily have a smooth derivative.

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2013년 11월 29일

0 개 추천

gradient() ?
Andrea
Andrea 2013년 11월 30일
편집: Andrea 2013년 11월 30일

0 개 추천

i guess that the derivatice cannot be continuous since i have a piecewise function, mine wasn't a precise question. what i need to know is if i can somehow calculate the numerical derivative of an equation that i wrote as a function file, my very little knowledge on matlab tells me i cannot, but maybe i'm wrong....sir Roberson do you think gradient() would do the job? thank you all

댓글 수: 1

Walter Roberson
Walter Roberson 2013년 11월 30일
If you create a vector or array of values by running them through the function, then you can gradient() that vector or array.

댓글을 달려면 로그인하십시오.

카테고리

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

질문:

2013년 11월 29일

댓글:

2013년 11월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by