How to perform differentiation in MATLAB?

조회 수: 3 (최근 30일)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA . 2022년 9월 14일
답변: Ganesh Gudipati . 2022년 9월 21일
I have the following function.
The F is a 1*4 matrix and it is given. w=2*pi*f where f=50 Hz. I need to find out the value of i. How can I write the code in MATLAB?
  댓글 수: 24
Torsten
Torsten 2022년 9월 16일
Maybe you could show us how you compute F given i
(e.g. for your example F=[0 0.4409 1.1809 3.1570], i=[0 0.6235 2.7238 7.2487]) )

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

답변 (1개)

Ganesh Gudipati
Ganesh Gudipati 2022년 9월 21일
Hi,
You can rewrite the equation you have in order to find "i". Then you use diff function.
Since "F" is an array in this case you have to perform for each element individually. So "i" will also end up as an array.
You can refer the Differentiation documentation.
I hope this resolves your issue.
Thanks.

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by