필터 지우기
필터 지우기

Operator matrix for matrix differentiation

조회 수: 7 (최근 30일)
Thomas
Thomas 2012년 4월 25일
답변: Lam Nguyen Van 2021년 2월 24일
Is there a way to define an operator matrix, such that:
  댓글 수: 1
Jan
Jan 2012년 4월 26일
Please define the inputs and outputs explicitly. Do you want numerical or symbolical operations?

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

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 4월 26일
symbolic
function dNdv = diffmtx(v,N)
% v -vector m x 1 - sym array
% N - matrix m x n - sym array
rz = arrayfun(@(ii)diff(N(ii,:),v(ii)),(1:numel(v)).','un',0);
dNdv = cat(1,rz{:});
end
  댓글 수: 1
Jan
Jan 2012년 4월 26일
What about: dNdv = [diff(N(1, :), v(1)), diff(N(2, :), v(1)); diff(N(3, :), v(2)), diff(N(4, :), v(2))] ?

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

추가 답변 (1개)

Lam Nguyen Van
Lam Nguyen Van 2021년 2월 24일
Thanks.

카테고리

Help CenterFile Exchange에서 Formula Manipulation and Simplification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by