what's the meaning of a number divide column vertor?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Xiao Lee
am 19 Okt. 2019
Kommentiert: Stephen23
am 21 Okt. 2019

How did matlab get the ans of [0,0,0.3333] ?
0 Kommentare
Akzeptierte Antwort
Stephen23
am 19 Okt. 2019
Bearbeitet: Stephen23
am 19 Okt. 2019
"what's the meaning of a number divide column vertor?"
The mrdivide documentation explains at the top of the page that it will "Solve systems of linear equations xA = B for x". In your example you defined a system of lineaer equations with A = [1;2;3] and B=1, so the output you get is one solution of that system. This is easy to check:
>> A = [1;2;3];
>> B = 1;
>> x = B / A
x =
0.00000 0.00000 0.33333
>> x * A % should be == B
ans = 1
>> 1 ./ A
ans =
1.00000
0.50000
0.33333
To use MATLAB you need to learn the differences between array and matrix operations:
2 Kommentare
Weitere Antworten (1)
jeewan atwal
am 19 Okt. 2019
Please see the following link: https://in.mathworks.com/matlabcentral/answers/386947-when-using-matlab-you-can-actually-divide-a-scalar-by-column-vector-and-produce-a-result-how-does
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!