- Is there really a space in data _thesis?
- Which of these folders are in the search path of Matlab?
- Are these m-files scripts of functions? If functions, do they have input and/or output arguments?
Ahora está siguiendo esta pregunta
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
auto run and delete files from multiple subfolders
7 comentarios
- "24 text files name with Output_00.txt to Output_23.txt"   The script, sorted_lat_split_NCAR_NCEP.m, which you uploaded creates 17 files named. output_0.txt, ..., output_16.txt. Note the single 0 in output_0.txt.
- "gather output_00.txt of apr folder in each year (1985 to 2015)"   What do you exactly mean by gather? For instance, shall the the first line of each file be included? (Or is gather the name of the script, to be constructed?)
- What about the other output-files and the other months?
- The output-files don't contain any information on date and time
- I appologise about miss confusion. yes there are 17 text files with name Output_00.txt to Output_16.txt and my code just extract these files from orginal one.
- Not it i mean name of the script, to be constructed and first line of each file be included here are the meaning of Gather(what i want to explain
- "with name Output_00.txt"   Did you change the script, , sorted_lat_split_NCAR_NCEP.m, to output double zero, 00?
- "my code just extracts these files from original one"   the word, "original one", is new to me. Does "extracts" refer to the operation of the script, sorted_lat_split_NCAR_NCEP.m?
- I don't know what "auto run mat file" means and I failed to find it in the Matlab documentation. (I very recently updated from R2013a.)
- I wasn't aware that you use mat-files to solve this task
- New sub-folders will be added to the root.
- However, I don't understand the copy part, since one folder can only contain one file named, output_00.txt.
Respuesta aceptada
28 comentarios
- The output and error message, which you show in your comment to the answer by @Image, is most likely produced by the script, sorted_lat_split_NCAR_NCEP.
- I guess the reason is that your script must be run in the current directory.   Now, I guess I was wrong in my guess.
- Confirm that sorted_lat_split_NCAR_NCEP runs correctly when you start it interactively in the intended current directory.
- Does sorted_lat_split_NCAR_NCEP change the current directory?
- I downloaded your two files to h:\m\cssm, which is not in the search path of Matlab
- "(4) yes sorted_lat_split_NCAR_NCEP.m change the current director."   The attached sorted_lat_split_NCAR_NCEP.m does not change the current directory explicitly. However, the function, run temporarily sets the folder of the script as the current directory.
- The attached sorted_lat_split_NCAR_NCEP.m together with modified.New Text Document.txt in the same folder runs fine. The folder is not in the search path of Matlab. (Agrees with the documentation of run.)
- Remains the question why my code doesn't work on your system.
- You have 373 copies of sorted_lat_split_NCAR_NCEP.m under the root. Which of these do you want to run?
- Which of these do you want to run?
- Why do you mention the subfolders, apr
- Ok, this conversation has proceeded so quickly that I have missed one or two of your comments while testing and writing comments. Now, you have arrived at a solution and provided answers to all my question.
Más respuestas (1)
4 comentarios
Ver también
Categorías
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Se ha producido un error
No se puede completar la acción debido a los cambios realizados en la página. Vuelva a cargar la página para ver el estado actualizado.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia-Pacífico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)