Check out the copy-pasta from my command window in matlab at the end.
I swapped between both lines via the arrow key. And reexecuting the same line gave the same result
I copied both lines into 2 different txt files to have notepad++ compare them, and the only difference it found was in the 'E'
So I tried both lines again, this time with a replaced E (made sure I didnt accidently add any accents or whatever).
I replaced the isfolder() with exist() and got the same weird results ( a 7 instead of logical 1).
But the result is still the same.
What is going on here?
K>> isfolder('E:\GIT\loop-test')ans = logical 0K>> isfolder('E:\GIT\loop-test')ans = logical 1K>> K>> isfolder('E:\GIT\loop-test')ans = logical 0K>> K>> isfolder('E:\GIT\loop-test')ans = logical 0K>> K>> isfolder('E:\GIT\loop-test')ans = logical 0K>> K>> isfolder('E:\GIT\loop-test')ans = logical 1K>> isfolder('E:\GIT\loop-test')ans = logical 1K>> isfolder('E:\GIT\loop-test')ans = logical 0>> isfolder('E:\GIT\loop-test')ans = logical 0>> isfolder('E:\GIT\loop-test')ans = logical 0>> isfolder('E:\GIT\loop-test')ans = logical 0>> isfolder('E:\GIT\loop-test')ans = logical 0>> isfolder('E:\GIT\loop-test')ans = logical 1>> isfolder('E:\GIT\loop-test')ans = logical 1>> isfolder('E:\GIT\loop-test')ans = logical 1>> isfolder('E:\GIT\loop-test')ans = logical 0>> isfolder('E:\GIT\loop-test')ans = logical 0
Best Answer