Solve Linear Equations with MATLAB

preview_player
Показать описание
MATLAB is used to solve a set of linear equations (Ax=b) by inverting the matrix A and multiplying by the b vector. Three ways to solve A*x=b are:
x = inv(A)*b % good
x = A\b % better
x = linsolve(A,b) % best
Рекомендации по теме
Комментарии
Автор

You just saved me 20 points on an exam LOL, god bless

edictsJP
Автор

Even 5 years later this was helpful for school, thank you good sir

folgee
Автор

May God reward you for all your efforts and all the valuable information that you provide us smoothly .

salimamansoura
Автор

I have problems with right division. How could I solve:
1.5a - 2b + c + 3d = 7.5
3a + b - c + 4d = 16
2a + 6b - 3c - d = 78
5a + 2b + 4c - 2d = 71

I know how to solve it using left division but don't know how to solve it using right one. Very appreciated the tip for using linsolve()! My professor says to not focus on the best-built in function for optimization, but I don't see a problem to show this things to beginners like me. That way I can know better practices for the future. Anyways, that's my question.
Thanks and great video!

pa_u_los
Автор

god bless you, i was having trouble finding how to solve a matrix with variables

TheHawfor
Автор

Thank you for this wonderful and simple explanation

samibasha
Автор

This video helps me a lot! Thank you so much!

Frank-cuur
Автор

You can just use \ instead of multiplying by -1. The syntax is x=A\b; it is a more robust tool

andrespulido
Автор

how do you solve when there is X1 X2 X3

peaceandlove-hb
Автор

hey can you tell me what might be code for a look up table in matlab

songshub
Автор

Let's consider the last example shown in this video, is it possible to calculate the uncertainty (accuracy) of Z if we find its value. Please help!

robinsibiya
Автор

The mic-quality isnt on top, but otherwise: Great video!

EventHrizn
Автор

How do you do this if your numbers are not integers

JosheyG
Автор

Can we solve 4 equation using same method?

bhushanpetkar
Автор

hi i need to connect the code of every method with button in interface some one can help me please is my project pf my defense

ayoubhsaine
Автор

Can you tell how to do this with parameters? (a*x + b*y style)
How do I tell matlab wich one is the variable and wich one is the constant?

gaaldaniel
Автор

can i have your email? I have lot of question about solve a matrix in matlab😔 i have to make a calculator of matrix for my final exam, please somebody help...

anindyaluthfiani
Автор

est ce que vous pouver m'expliquer la methode de simplexe pour resoudre une equation linéaire

faridmazouz
Автор

I have a final exam in MATLAB on Saturday😥😥😥

hibakh
Автор

Is matlab able to do stochastic calculus using syms?

fffppp