How to solve linsolve command and solve comand in system of equation

3 ビュー (過去 30 日間)
Leu Am
Leu Am 2021 年 10 月 9 日
回答済み: Rahul 2024 年 10 月 11 日
Solve the system of equations separately below using MATLAB
2x + 15y - z == 2 -x + 2y +30z == 3 15x + 2y - 13z == -10 a) linsolve command b) Solve command

回答 (1 件)

Rahul
Rahul 2024 年 10 月 11 日
For the first case, you can define vectors with the coffecients and constants of your equations and use them in the 'linsolve' function.
For the second case, you can define 'x', 'y' and 'z' as symbolic variables and define your quation to solve them.
You can refer to the following MathWorks documentations to know how these functions work:
Hope this helps! Thanks.

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by