Repeat Problem using MATLAB to perform the calculations. Create a vector for the voltage values, v = [15 5 10 -10 20 20], and a vector for the current values, i = [-112 -1 -3 2]. Compute the corresponding vector for the power values, p, using element-by-element multiplication (.∗) and then use the sum command to verify the power balance.
Problem :-
Repeat Problem using MATLAB to perform the calculations. Create a vector for the voltage values, v = [15 5 10 -10 20 20], and a vector for the current values, i = [-112 -1 -3 2]. Compute the corresponding vector for the power values, p, using element-by-element multiplication (.∗) and then use the sum command to verify the power balance.