Closed tanvidc closed 5 years ago
You can define it three ways. Note that this is only for variables. if you are checking the existence of other types, e.g., file or folder, than true and false would not work. Right now, I am using the first way. I think the second way is better (and I actually switched to that in my other newer codes).
exist('isDisplayOutput', 'var') == false ~exist('isDisplayOutput', 'var') ~exist('isDisplayOutput', 'var') == true
You're right, I'm used to second way and didn't notice the ==false
In PetroMod.m, line 40 should be ~exist instead of exist I think