How to use the exist feature with an if statement?

exist varname gives valid output. But if(exist varname) throws an error as "Unexpected matlab expression". How to fix this?

More Answers (0)

Categories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!