Rank: 942 based on 147 downloads (last 30 days) and 12 files submitted
photo

Jerome Briot

E-mail
Company/University
Biomechanics Laboratory, Purpan Hospital, Toulouse, France
Lat/Long
43.60961, 1.400386

Personal Profile:

Research engineer - PhD in Biomechanics

   • http://briot-jerome.developpez.com/
   • http://www.researchgate.net/profile/Jerome_Briot
   • http://fr.linkedin.com/in/jeromebriot


 

Watch this Author's files

 

Files Posted by Jerome Briot View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Dec 2014 Screenshot NVSMI Toolbox Monitoring of NVIDIA GPU devices Author: Jerome Briot nvidia, gpu, nvidiasmi 16 0
11 Dec 2014 Screenshot DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot dos, character encoding, charset, language 31 7
  • 5.0
5.0 | 2 ratings
29 Oct 2014 Screenshot Get the name of the CPU Methods to get the name of the CPU on Windows, Linux and Mac Author: Jerome Briot cpu, cpuid, processor 9 0
23 Oct 2014 Screenshot Image with non-square pixels Display image object with non-square pixels (disks, hexagons, octagons, rhombus) Author: Jerome Briot image, pixels, pixel, nonsquare 14 0
16 Sep 2014 Screenshot wmicGetHardwareInfos Get computer hardware information on Windows with WMIC Author: Jerome Briot computer, hardware, cpu, gpu, ram, windows 8 0
Comments and Ratings by Jerome Briot View all
Updated File Comments Rating
13 Oct 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot

"feature('locale');" added.
Thanks !

23 Sep 2009 Gui Example - Stop Start Loop & Icon Change & Build Exe Example of 3 things: 1. Stop and start a loop 2. Change Gui icon 3. Build EXE Author: Yohanan Sivan

"modifying the title bar icon constitutes a breach of the license agreement"

=> http://www.mathworks.com/support/solutions/en/data/1-16N4J/?solution=1-16N4J

Comments and Ratings on Jerome Briot's Files View all
Updated File Comment by Comments Rating
11 Dec 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot Florent Hennart

Hi Jérôme,
It works great, thanks. Do you think that you can use a similar concept in order to deal with file/folder poorly named?
command = ['cd "C:\dossier mal nommé"'];

10 Dec 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot Mikhail

Jerome, it seems that the output from builtin dos command with '-echo' argument is being buffered in Windows native encoding, not DOS charset. Therefore the try-catch block should look something like this:

try
feature('DefaultCharacterSet', encoding);
[status, cmdout] = builtin('dos',command);
if strcmp(echoParam, '-echo')
disp(cmdout);
end
feature('DefaultCharacterSet', defaultCharacterSet);
catch exception
feature('DefaultCharacterSet', defaultCharacterSet);
rethrow(exception);
end

15 Oct 2014 Forbidden Donut Favorite FEX contribution of Homer Simpson Author: Jerome Briot Sean de Wolski

14 Oct 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot Mikhail

Here is how you can guard it:

feature('DefaultCharacterSet', encoding);
try
[status, cmdout] = builtin('dos',command);
catch exception
feature('DefaultCharacterSet', defaultCharacterSet);
rethrow(exception);
end
feature('DefaultCharacterSet', defaultCharacterSet);

13 Oct 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot Mikhail

Cool!

It is possible to subvert execution of second call to feature('DefaultCharacterSet', defaultCharacterSet); used to restore the Windows locale.

For example:
dosWithCharEncod(dir,'-echo');
feature('DefaultCharacterSet')

ans =

IBM866

So locale is not restored. Perhaps you should try-catch execution of "dos" function.

Contact us