Plotting the R(n) and compute n
Afficher commentaires plus anciens
Help please im so lost
Let Rn denote the equivalent resistance of n resistors connected in parallel, each having resistance R for n = 1, 2, 3, etc. It can be shown that Rn is governed by the following recursive relation:
R(n+1) = R(n)R/R(n), where n = 1,2,3,... with R1 = R (a) Given R = 10kΩ, write a MATLAB program to plot Rn versus n for n = 1, 2, . . . , 100. (b) For a given R and a positive integer m, write a MATLAB function that utilizes the while loop to compute n such that Rn = 10−mR.
1 commentaire
Réponses (1)
Honglei Chen
le 30 Sep 2013
You need to pass in a number or define m first, for example
m = 3
func(m)
1 commentaire
James
le 30 Sep 2013
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!