I want to create a conditional function
Mostrar comentarios más antiguos
When i try to create the following function with n=[-25:25] the value of x1 shows as x1=-3
if 0<=n<=8
x1=-3
else
x1=0
What can i do to make the function work?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Construct and Work with Object Arrays en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
