simplification and preallocation of a symbolic value in matlab script

1 回表示 (過去 30 日間)
ASHA RANI
ASHA RANI 2021 年 3 月 31 日
編集済み: ASHA RANI 2021 年 5 月 30 日
clc
syms AX0
OG=5;
for z=1:4;
AL(z)=(AP19.*BLOKS(z)-AP20).*(AP16.*BLOKS(z)-AP17)+(AP21.*BLOKS(z)-AP22).*(BLOKS(z)-AP5*AP6*AX0);
end
After running codes, I got value of BLOKS as below which makes my program complicated further. I want to simplify this values and same way value of AL is very complicated to handle further. I also want preallocation of AL.
plz help
17800/4357 - (18430*AX0)/4357
442/1843 - AX0
9328132096000000/8992587776000001 - (649674899429785690307*AX0)/6025033809920000670
4443206611847967/9223372036854775808

採用された回答

VBBV
VBBV 2021 年 3 月 31 日
%if true
vpa(BLOKS,4)
Try something like above using vpa

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by