フィルターのクリア

a question about ops{} command

3 ビュー (過去 30 日間)
frank
frank 2012 年 5 月 14 日
Hi; I've wrote a mfile in which a symbolic variable is produced that its length is more than 25000 characters, so I broke it by using "ops" and it breaks the variable in 369 expressions. Now I need to get the derivative of the sum of these expressions. What could I do? Is there any way to save all of these expressions? Thanks

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 5 月 14 日
Consider using the MuPAD map() operation.
  2 件のコメント
frank
frank 2012 年 5 月 15 日
thanks for your help, how can I use this command? I used the form which was in mathworks (map(object, f, <p1, p2, , ...>, <Unsimplified>)), but it didn't work.
Walter Roberson
Walter Roberson 2012 年 5 月 15 日
feval(symengine, 'map', YourSymbolicExpression, 'diff', TheDerivativeVariable, 'Unsimplified')
I would, however, expect that
diff(YourSymbolicExpression, TheDerivativeVariable)
would do just as well.
The 25000 character limitation applies to *displaying* a variable, not to storing it.

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

カテゴリ

Help Center および File ExchangeSurfaces and Volumes についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by