Repeat Problem 1-22 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.
![1925_Figure 4.jpg](https://secure.tutorsglobe.com/CMSImages/1925_Figure 4.jpg)