Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

As you perform the following calculations, recall the difference between the *an

ID: 3589358 • Letter: A

Question

As you perform the following calculations, recall the difference between the *and.* operators, as well as the/and./ and the and. operators: a= [2.3 5.8 9] as a MATI AB®variable. 2. Find the sine of a. 3. Add 3 to every element in a. 4. Define the matrix b [5.2 3.14 2] as a MATLAB variable. 5. Add together each element in matrix a and in matrix b. 6. Multiply each element in a by the corresponding element in b. 7. Square each element in matrix a 8. Create a matrix named c of evenly spaced values from 0 to 10, with an 9. Create a matrix named d of evenly spaced values from 0 to 10, with an 10. Use the linspace function to create a matrix of six evenly spaced 11. Use the logspace function to create a matrix of five logarithmically increment of 1. increment of 2. values from 10 to 20. spaced values between 10 and 100

Explanation / Answer

PLEASE REFER BELOW CODE

close all
clear all
clc

%1)
a = [2.3 5.8 9]

%2)
sin_a = sin(a)

%3)
a_plus_3 = a + 3

%4)
b = [5.2 3.14 2]

%5)
a_plus_b = a + b

%6)
a_mult_b = a .* b

%7)
a_square = a

%8)
c = 0:1:10

%9)
d = 0:2:10

%10)
matrix_evenly_space = linspace(10,20,6)

%11)
matrix_logspace = logspace(10,100,5)

PLEASE REFER BELOW OUTPUT


a =

2.3000 5.8000 9.0000


sin_a =

0.7457 -0.4646 0.4121


a_plus_3 =

5.3000 8.8000 12.0000


b =

5.2000 3.1400 2.0000


a_plus_b =

7.5000 8.9400 11.0000


a_mult_b =

11.9600 18.2120 18.0000


a_square =

2.3000 5.8000 9.0000


c =

Columns 1 through 10

0 1 2 3 4 5 6 7 8 9

Column 11

10


d =

0 2 4 6 8 10


matrix_evenly_space =

10 12 14 16 18 20


matrix_logspace =

1.0e+100 *

0.0000 0.0000 0.0000 0.0000 1.0000

>>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote