- #1
Elecomputer
- 8
- 0
Hello,
I have never really used MATLAB before, and I was assigned some homework on it. While I was able to solve most of them, I was unable to solve this one in particular, even after searching the internet and documentation, there was many kinds that I was left confused.
Does anyone know the syntax for this general case:
ax+by+cz=d
ex+fy+gz=h
ix+jy+kz=l (<- awesome I got vector components to match with x,y,z)
And I'd like to solve for x, y, z.
This is what I tried:
A = [a,b,c;e,f,g;i,j,k]
b = [d;h;l]
and then A/b.
This gives me three numbers (in my case, I'm not using letters)
Is this the correct approach?
All help is appreciated.
I have never really used MATLAB before, and I was assigned some homework on it. While I was able to solve most of them, I was unable to solve this one in particular, even after searching the internet and documentation, there was many kinds that I was left confused.
Does anyone know the syntax for this general case:
ax+by+cz=d
ex+fy+gz=h
ix+jy+kz=l (<- awesome I got vector components to match with x,y,z)
And I'd like to solve for x, y, z.
This is what I tried:
A = [a,b,c;e,f,g;i,j,k]
b = [d;h;l]
and then A/b.
This gives me three numbers (in my case, I'm not using letters)
Is this the correct approach?
All help is appreciated.