simplification and preallocation of a symbolic value in matlab script

1 次查看(过去 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 CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by