simplification and preallocation of a symbolic value in matlab script

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

VBBV
VBBV am 31 Mär. 2021
%if true
vpa(BLOKS,4)
Try something like above using vpa

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by