フィルターのクリア

Calculate derivatives of "a matrix"

3 ビュー (過去 30 日間)
Max
Max 2012 年 11 月 19 日
Hi at all, I have a polynomials coefficients matrix of W rows in the form f(x)= ax^2 + bx + c
M= [a1 b1 c1 ; a2 b2 c2 ; ... ... ...];
I calculate the derivatives of each polynomial :
M1der=polyder(M(1,:))
for each rows...
Is there a command to calculate the derivatives coefficients matrix?
The important is that the new matrix as 1 value in 1 cell, not all-in-one.
Thanks so much

回答 (1 件)

Matt J
Matt J 2012 年 11 月 19 日
編集済み: Matt J 2012 年 11 月 19 日
M1der=[2*M(:,1),M(:,2)];
or more generally for degree n polynomails
M1der=bsxfun(@times,M(:,1:end-1), n:-1:1);
  2 件のコメント
Max
Max 2012 年 11 月 19 日
Thanks, but I mean for all matrix, not for a single row.
Matt J
Matt J 2012 年 11 月 19 日
Yes. That's what I've given you.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by