Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB Consider the diagram below V + and sch/represents a current in ames) through a wra. These Quantities abay two simple laws: Hers, each V
MATLAB
Consider the diagram below V + and sch/represents a current in ames) through a wra. These Quantities abay two simple laws: Hers, each V represents a change in vatage in vots at a battery, each represents a resistance in ahms) 1 A 1 Ohm's law Thavoga drop rares aloris Y = 2. Kirchhof's second law: The sum of all the voltage changes in a dused loup is zeru. Using these two lans, we can borcin.ct the following system al cquations: R + - + - - 1 +40 + 42-1) - 12. 513 + 43-121 + X[/3-1) = 13. Suppose that the resistances are given by = 13.13 = 20 = 0,14 = 18. A = 29 and 30 lalin chis and that we are trying to calculate the currents 11.12 and 13. 1. Wine these cqualions in the matrix for 4x-, where x is a 3xl vector at unionown currents. You need to do this by hand, not in Matlab. (Note that the equations above are not fully simplified. You can use the presest to make sure you simallied correctly. Using the lu command in Masab, find the matrices ... and P such that I = PA Calculate the products and we the resulting matrix in a variable named ans. Thanks no mathematical reason to calculate this matrix. I just want to chack that you found All three maic ) Notice that I haven't told you the voltage yet. Do you need them? 2. We will no lix Herthing Celly and see how the current changes with voliage. Lel v = ell and = 0 For every value ol 1 from 1 to 100 in increments of 11 calculate and using the lo decomposition from above. Save your answers in a 3x100 malis named ans2. The th column of this matrix should contain the vector 2.2.3 that you wolved for using = 1. 3. Next, we wilth alch the voltages and change one of the resistances. Lot -0, 1 50 and 1140 and keep all of the restances abovnihn are except for Rs. For every valun al RI from 1 100 in increments al calculate 11.2 and is using the bacilash Dommand directly. Save your answers in 3x100 matbe named ans3. The ith column of this more should contain the sociar 2 3 that you solved for using -i. Note that changing changes mans than nne entry in A. Also notice that if you reuse the variable name Aynu wil no longer pass the protest from part 1. This is ok, since the prest is not worth any point Consider the diagram below V + and sch/represents a current in ames) through a wra. These Quantities abay two simple laws: Hers, each V represents a change in vatage in vots at a battery, each represents a resistance in ahms) 1 A 1 Ohm's law Thavoga drop rares aloris Y = 2. Kirchhof's second law: The sum of all the voltage changes in a dused loup is zeru. Using these two lans, we can borcin.ct the following system al cquations: R + - + - - 1 +40 + 42-1) - 12. 513 + 43-121 + X[/3-1) = 13. Suppose that the resistances are given by = 13.13 = 20 = 0,14 = 18. A = 29 and 30 lalin chis and that we are trying to calculate the currents 11.12 and 13. 1. Wine these cqualions in the matrix for 4x-, where x is a 3xl vector at unionown currents. You need to do this by hand, not in Matlab. (Note that the equations above are not fully simplified. You can use the presest to make sure you simallied correctly. Using the lu command in Masab, find the matrices ... and P such that I = PA Calculate the products and we the resulting matrix in a variable named ans. Thanks no mathematical reason to calculate this matrix. I just want to chack that you found All three maic ) Notice that I haven't told you the voltage yet. Do you need them? 2. We will no lix Herthing Celly and see how the current changes with voliage. Lel v = ell and = 0 For every value ol 1 from 1 to 100 in increments of 11 calculate and using the lo decomposition from above. Save your answers in a 3x100 malis named ans2. The th column of this matrix should contain the vector 2.2.3 that you wolved for using = 1. 3. Next, we wilth alch the voltages and change one of the resistances. Lot -0, 1 50 and 1140 and keep all of the restances abovnihn are except for Rs. For every valun al RI from 1 100 in increments al calculate 11.2 and is using the bacilash Dommand directly. Save your answers in 3x100 matbe named ans3. The ith column of this more should contain the sociar 2 3 that you solved for using -i. Note that changing changes mans than nne entry in A. Also notice that if you reuse the variable name Aynu wil no longer pass the protest from part 1. This is ok, since the prest is not worth any pointStep 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