Dell
- 555
- 0
i need to make a code that can sole the following, finding the value of Sz
given the following vectors
S=[ -6, -6, -Sz]
P=[ 0 -6 -3]
Q=[ 5 4 -9]
i need to make a code that can find Sz so that
a)S \botP
b)S\botQ
c)S\bot(PxQ)
d)(SxP)\botQ
i have managed to make MATLAB give me a condition for \bot, for example, what i set up is:
>>Sz=sym('Sz');
>>S=[ -6, -6, -Sz];
>>P=[ 0 -6 -3];
>>Q=[ 5 4 -9];
>>answer=S*P'
matlab returns
answer =
36+3*Sz
and i know that answer=0, therefore Sz=-12, but how do i get MATLAB to tell me that Sz=-12??
given the following vectors
S=[ -6, -6, -Sz]
P=[ 0 -6 -3]
Q=[ 5 4 -9]
i need to make a code that can find Sz so that
a)S \botP
b)S\botQ
c)S\bot(PxQ)
d)(SxP)\botQ
i have managed to make MATLAB give me a condition for \bot, for example, what i set up is:
>>Sz=sym('Sz');
>>S=[ -6, -6, -Sz];
>>P=[ 0 -6 -3];
>>Q=[ 5 4 -9];
>>answer=S*P'
matlab returns
answer =
36+3*Sz
and i know that answer=0, therefore Sz=-12, but how do i get MATLAB to tell me that Sz=-12??