I want to create a conditional function
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Construct and Work with Object Arrays finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
