How to take the inverse of each individual array value and store it to a new array?
134 次查看(过去 30 天)
显示 更早的评论
I am given the following task : Take an input of the 4 resistances given in the problem (R1 , R2 , R3 , R4) as an array - I do that by the following command:
Resistances = input('Enter R1, R2, R3, R4 [ ] around them');
Now, I am asked to calculate the conductance of each resistor from the array the user inputs.
Conductance is simply 1/R, so how can I take each value from my "Resistances" array and take the inverse of it, then put it to a "Conductances" array?
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!