How do you tell matlab to exit a function with an if test in matlab?(adsbygoogle = window.adsbygoogle || []).push({});

I have tried

if x > 0

exit/quit

,but I dont want to exit matlab only the function

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Exit function in matlab

**Physics Forums | Science Articles, Homework Help, Discussion**