0

I try to execute this 2 commands but the result is very weird

K>> delete lista_arqs.txt

Warning: File 'lista_arqs.txt' not found.

K>> exist('lista_arqs.txt','file')

ans =

 2

I mean..... I tried to delete a file and matlab told me that the file dont exist, ok. But later I tried to check for file existence and matlab told me that exist. At windows explorer the file don`t exist.

Some idea about this issue? My matlab 7.10.0.499 64-bit win7

Regards,

1 Answer 1

0

This may happen when the file you are trying to delete is in the matlab path not in the current directory. Try providing the full path for the file in the delete command. Also it is better to use

delete('filename')

instead of

delete filename

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .