フィルターのクリア

How can I define a derivative and norm function inside an integral in matlab?

1 回表示 (過去 30 日間)
Ashkan Rigi
Ashkan Rigi 2021 年 11 月 1 日
編集済み: Matt J 2021 年 11 月 1 日
Hello everybody. I would like to define a norm-2 and derivative of a function inside the integral, but I can not. Here is my code:
tt=0:0.1:pi;
y=sin(tt);
a=1;b=2;c=3;d=4;
syms r(t);
r(t)= a.*(t-tt(1)).^3+b.*(t-tt(1)).^2+c.*(t-tt(1))+d;
L=integral( norm(diff(r(t)),2),0,1)

採用された回答

Matt J
Matt J 2021 年 11 月 1 日
編集済み: Matt J 2021 年 11 月 1 日
The norm would just give a scalar independent of t. Its integral from 0 to 1 would be trivial. Perhaps you meant instead to do,
L=sqrt( integral( diff(r(t)).^2 ,0,1) )

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFormula Manipulation and Simplification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by