Symbolic integration of cell arrays

2 ビュー (過去 30 日間)
EldaEbrithil
EldaEbrithil 2020 年 10 月 15 日
コメント済み: EldaEbrithil 2020 年 10 月 15 日
Hi all
is it possible to perform symbolic integration of cell arrays? P is a cell array where each element is the function that need to be integrated
I guess it's something like that but i am not sure:
syms x
for i=1:length(P)
Q{i}=int(P{i},x);
end
Thank you for the help
Regards

採用された回答

Walter Roberson
Walter Roberson 2020 年 10 月 15 日
It is not possible to directly perform symbolic integration of cell arrays.
You can use the code you posted, or you can use
Q = cellfun(@(p) int(p,x), P, 'uniform', 0);
  1 件のコメント
EldaEbrithil
EldaEbrithil 2020 年 10 月 15 日
Thank you very much Walter!! It works

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by