function with ln and log
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am having issues with plotting.
my function is
y2 = (x-1)(ln((3^.5)/2)*x-ln(3/8));
is not running because of ln but I have changed to log. still an error of some operator.
x range of [1, 3]
y2 = (x-1)(log((3^.5)/2)*x-log(3/8));
plot(x,y2)
Thanks.
0 comentarios
Respuestas (1)
Star Strider
el 13 de Dic. de 2019
It is missing a multiplication operator:
y2 = (x-1)(log((3^.5)/2)*x-log(3/8));
↑
Try this:
y2 = (x-1).*(log((3^.5)/2).*x-log(3/8));
0 comentarios
Ver también
Categorías
Más información sobre Log Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!