Generate a plot of C vs d. and make a table
Afficher commentaires plus anciens

1 commentaire
Réponses (1)
Bruno Teramoto
le 26 Sep 2019
0 votes
L = 1;
r = 0.01;
per = 8.854*10^-12;
d = linspace(0.01,0.03,10)';
C = pi*per*L./log((d-r)/r);
fprintf('***********************\n')
fprintf(' d C\n')
fprintf('***********************\n')
for i = 1:length(d)
fprintf('%8.3f %11.2e\n',d(i),C(i))
end
fprintf('***********************\n')
plot(d,C)
1 commentaire
James Tursa
le 26 Sep 2019
Please don't post complete answers to homework questions.
Catégories
En savoir plus sur Startup and Shutdown 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!