i want to plot an log function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
i want to plot this equation
y=(r^3) ln (1/r)
and i use the following code
r = 0.01:0.001:1;
y = (r^3)*log(1/r);
plot(r,y)
can you help me to plot it, because this code has error?
error is
Error using /
Matrix dimensions must agree.
Risposte (1)
VBBV
il 12 Dic 2020
%true
r = 0.01:0.001:1;
y = (r.^3).*log(1./r); %element wise
plot(r,y);grid on
0 Commenti
Vedere anche
Categorie
Scopri di più su Log Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!