- 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?
Al momento, stai seguendo questa domanda
- Vedrai gli aggiornamenti nel tuofeed del contenuto seguito.
- Potresti ricevere delle e-mail a seconda delle tuepreferenze per le comunicazioni.
auto run and delete files from multiple subfolders
7 Commenti
- "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.
Risposta accettata
28 Commenti
- 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.
Più risposte (1)
4 Commenti
Vedere anche
Categorie
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- 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-Pacifico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)