Operator matrix for matrix differentiation

7 visualizaciones (últimos 30 días)
Thomas
Thomas el 25 de Abr. de 2012
Respondida: Lam Nguyen Van el 24 de Feb. de 2021
Is there a way to define an operator matrix, such that:
  1 comentario
Jan
Jan el 26 de Abr. de 2012
Please define the inputs and outputs explicitly. Do you want numerical or symbolical operations?

Iniciar sesión para comentar.

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 26 de Abr. de 2012
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 comentario
Jan
Jan el 26 de Abr. de 2012
What about: dNdv = [diff(N(1, :), v(1)), diff(N(2, :), v(1)); diff(N(3, :), v(2)), diff(N(4, :), v(2))] ?

Iniciar sesión para comentar.

Más respuestas (1)

Lam Nguyen Van
Lam Nguyen Van el 24 de Feb. de 2021
Thanks.

Categorías

Más información sobre Formula Manipulation and Simplification en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by