Command window / terminal popup when running
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
During every outer loop of my code, a terminal window pops up (cmd.exe), displaying a single line with the directory from where I'm working. The problem is that each outer loop is a dataset, and I've got 69 popup screens every time my code runs. I'm doing some analysis, I've got to run the code many times, and the popups appear to be slowing down the code as well (142 seconds versus 55 seconds in Matlab version 2010). These obviously make it difficult doing anything else while the code runs.
With the keyboard debug function, I've found out it pops up when doing an interpolation with interp1. If I suppress the interpolation (mark as comment with %), the popup appears at the next line (somevaluename = 20;). If I suppress this line as well, it opens at the next line (four = fft(measurements)), etc. However, with the interpolation active, only a single terminal pops up for each outer loop.
I've checked and manually added the folder where everything happens to my path, I've searched here and through Google, but haven't found a solution as of yet. Any help?
Currently using Matlab version 2014a. The exact same code ran on version 2010, without any popups.
0 Commenti
Risposte (1)
Trevor Edgecock
il 2 Nov 2016
One cause is an exclamation mark in the offending line of code. An exclamation mark opens a terminal window (cmd.exe) pop up. It appears greyed-out in the Matlab editor and can be difficult to see.
0 Commenti
Vedere anche
Categorie
Scopri di più su Variables in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!