Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Differentation problem, when trying to diff sin(f(x)) with variable x

조회 수: 1 (최근 30일)
Andy
Andy 2014년 4월 26일
마감: Walter Roberson 2014년 4월 27일
Hello!
I would like to try some basic functions in Matlab. I faced two problems, which seems unable to solve for me.
If I type:
a=sin(3*x)
b=diff(a,x)
Then I run it:
a=sin(3*x)(3*x)
b=3*D(sin(3*x))(3*x)
I think it should be:
a=sin(3*x)
b=3*cos(3*x)
I attach a picture, to see what my problem is.
Please tell me what is wrong with my little code! Thank you!

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by