Question
It is required that the following commands/operations be entered into the Command Window in MATLAB. Copy each command, and then the ensuing output in the
It is required that the following commands/operations be entered into the Command Window in MATLAB. Copy each command, and then the ensuing output in the Command Window into a Microsoft Word Document.
[Those preceding the symbol>> are the commands]
A. Matrix operations
o >> a= [1 2 3;4 5 6;7 8 9]
o >> b= [1 0 0;1 0 1;0 0 1]
B. Assigning:
o >> a=b(2, :)
C. Transposing:
o >> [1;2;3]
o >> [1;2;3]'
D. Incrementing:
o >> Tempk=a+273.15
F.Scaling:
o >> L=a*2.5
G. Adding & subtracting:
o >> [1 2 3;4 5 6]-[8 7 6;4 2 0]
X. Repeating:
o >> sqrt(a)
o >> sqrt(b)
Q. Operating term by term:
o >> [1 3;5 8].*[0 1;4 2]
o >> [1 3;5 8]*[0 1;4 2]
Note: please just write what i should write in my paper homework, Thanks.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started