how do i use sqrt when trying to code a math function
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
im trying to code:
sqrt(100^2+(.01x-(100/x))^2)
but i keep getting the invalid expression error.
0 comentarios
Respuestas (1)
Walter Roberson
el 21 de Feb. de 2023
sqrt(100^2+(.01x-(100/x))^2)
^^
MATLAB has absolutely no implied multiplication. .01x is a syntax error, not 0.01 times x.
0 comentarios
Ver también
Categorías
Más información sobre Fixed-Point Code Generation in MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!