In my matlab program, I want to determine whether a variable or output of a function is empty or not, before going further.
Actually, I\'ve written a function which
You can use isempty. For instance:
>> isempty([]) ans = 1 >> isempty([42]) ans = 0