Question

7 please answer fast and please use mathlab and include a copy code.. im using r2016b....

7 please answer fast and please use mathlab and include a copy code.. im using r2016b. Thanks

7 please answer fast and please use mathlab and in
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Note: The Question consists of multiple Sub parts. within the time alloted we solved maximum number of sub parts.

Solution 7 (a) function C - commutator (A, B) %commutator function sigmax and sigmay are passed as function parameters. %calcSolution 7 (e) function C-anticommutator (A, B) %anticommutator function %sigmax and sigmax are passed as function parameters
Executable Code

Commutator Function – Code

function C = commutator(A, B) %commutator function

%Calculation.

C = A*B - B*A;

%End function.

end

Anti Commutator Function – Code

function C = anticommutator(A, B) %anticommutator function

%Calculation.

C = A*B + B*A;

%End function.

end

Add a comment
Know the answer?
Add Answer to:
7 please answer fast and please use mathlab and include a copy code.. im using r2016b....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT