MATLAB Answers

0

How to use the exist feature with an if statement?

Asked by Arvind Ganesh on 24 Apr 2019
Latest activity Answered by Fangjun Jiang on 24 Apr 2019
exist varname gives valid output. But if(exist varname) throws an error as "Unexpected matlab expression". How to fix this?

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Fangjun Jiang on 24 Apr 2019
 Accepted Answer

if exist('VarName','var')

  0 Comments

Sign in to comment.