how to write the expression ((pi*epsilon)/ln((D-r)/r)) in matlab?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
c = (pi*epsilon)/log((D-r)/r);
This code doesn't work
2 Commenti
Walter Roberson
il 18 Mag 2020
The code could fail in some cases involving non-scalars, as the A/B operator is sort of like A*pinv(B) except with some size restrictions. The element-by-element division operator is ./ not /
Risposte (1)
David Hill
il 18 Mag 2020
Are all the variables arrays of equal size? If so, then you need the element-wise operator.
c = (pi*epsilon)./log((D-r)./r);
0 Commenti
Vedere anche
Categorie
Scopri di più su Shifting and Sorting Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!