I dont understand my error. Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error.

syms x y z
a = (1)/((x*10x10^3)*y*(z + 10x10^-9)) == 3.9*10^9;
b = (1.)/(z+10x10^-9)*(((10x10^3)*y)/((10x10^3)+y)) == 1.571*10^4;
c = (10x10^-9)/(x*y*(z + 10x10^-9)) == 1.571*10^4;
solve (a,x);
solve (b,y);
solve (c,z);
[A,B] = equationsToMatrix([a, b, c], [x, y, z]);
X = linsolve(A,B);
What should i change?

댓글 수: 2

10x10^3 ?? 10x10^-9 ?? What does that mean ?
It means:
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error.
you cannot use x for multiplication in MATLAB. You should mostly use the .* operator

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2022년 12월 9일

댓글:

2022년 12월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by