Hi all,
do you know if it is possible to format an SD card from MATLAB?
Thanks in advance.

 Akzeptierte Antwort

Jan
Jan am 9 Apr. 2019
Bearbeitet: Jan am 9 Apr. 2019

2 Stimmen

There are smarter ways to format an SD-card, see https://www.easeus.com/partition-manager-software/format-sd-card-using-windows-cmd-and-formatter.html , but this works through the system command also, e.g. under Windows:
system('format I: /fs:FAT32 /a:1024 /q /x /v:MySDCard')
Open a command shell of the operating system and type:
format /?
to learn more.
ATTENTION: This will kill the contents of the drive mounted as "I:" currently. Be careful!

1 Kommentar

Lask
Lask am 9 Apr. 2019
Bearbeitet: Lask am 9 Apr. 2019
I was thinking to add a Format button on a GUI I am developing so the user can format an SD card, so the system command might be the only way to go. Thanks.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 9 Apr. 2019

Bearbeitet:

am 9 Apr. 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by