Symbolic math, differentiate an equation wrt to element in a array

조회 수: 1 (최근 30일)
deltanabla
deltanabla 2015년 2월 22일
Hi folks,
I want to differentiate an equation with respect to a variable assigned in a vector.
where v is a 1*N vector, ie [x_r; y_r.....N] etc
for i=1:1:size(v,1)
SE_ans(i)= diff(SE,i)
end
I thought the above would work. Any help appreciated.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by