simplification and preallocation of a symbolic value in matlab script

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

VBBV
VBBV il 31 Mar 2021
%if true
vpa(BLOKS,4)
Try something like above using vpa

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by