In MATLAB, we can use the isempty
function to check if a value is empty or not. The function returns a logical 1(true) if input is an empty array and a logical 0(false) otherwise.
main.m114 chars8 lines
The output would be:
main.m15 chars2 lines
gistlibby LogSnag