Info

This question is closed. Reopen it to edit or answer.

What is the best syntax to use for dVph/dλ?

1 view (last 30 days)
KHAN
KHAN on 18 Oct 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi All,
I have a question regarding the (dVph/dλ). Is the diff(Vph)/diff(λ) ok to get the gradient of the velocity with respect to wavelength? My idea is to find the gradient at each point in my curve. Please help me with this issue. I am waiting for your reply. Thanks.
With my best regards,
Yours,
Mohammed

Answers (1)

Walter Roberson
Walter Roberson on 18 Oct 2019
No, if you are working numerically use gradient()
If you are working symbolically then diff(Vph(lambda), lambda)

Community Treasure Hunt

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

Start Hunting!