These are the two equations I need to solve; for A and B, to calculate the viscosity of hydraulic fluid between to temperatures. The results are correct, but why does Matlab show them as fractions and not rational numbers?
syms A Beqn1=A-520*B==3.7612;eqn3=A-560*B==2.3026;[X,Y] = equationsToMatrix([eqn1, eqn3], [A, B])Z = linsolve(X,Y)Z = 22723/1000 7293/200000>> 22723/1000ans = 22.7230>> 7293/200000ans = 0.0365
Best Answer