Matrix with differential operators - HELP
13 ビュー (過去 30 日間)
古いコメントを表示
Hello all,
I need some help of you!
I have a matrix of deferential operators (like the image in attachment) and i want to write it in a Matlab notation in order to multiply it with a matrix of functions.
Anyone can help me ?
Thanks in advance
0 件のコメント
回答 (3 件)
Azzi Abdelmalek
2013 年 10 月 9 日
%Example
syms x y
f=@(h) [diff(h,y) diff(h,x);diff(h,x) -diff(h,y)]
h=2*x+3*y
f(h)
3 件のコメント
Azzi Abdelmalek
2013 年 10 月 9 日
Maybe this is what you want
syms x y
f=@(h) [diff(h(1,1),y) diff(h(1,2),x);diff(h(2,1),x) -diff(h(2,2),y)]
h=[2*x+3*y 5*x+6*y;10*x+30*y 22*x-y]
f(h)
Lam Nguyen Van
2021 年 2 月 24 日
Take a look: https://www.mathworks.com/matlabcentral/answers/36580-operator-matrix-for-matrix-differentiation
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Number Theory についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!