Can I replace ~files(i).isdir for ~isdir('files(i)')?

What does the . do in the code? Is it like an abbreviation of code?

有帮助吗?

解决方案

It seems that "files" is an array of structures, and isdir is a variable under the structure (read MATLAB documentation for further informations about structures) at position i, so you can't replace the instruction with the function-like one.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top