Format a SD card using MATLAB

조회 수: 1 (최근 30일)
Lask
Lask 2019년 4월 9일
편집: Lask 2019년 4월 9일
Hi all,
do you know if it is possible to format an SD card from MATLAB?
Thanks in advance.

채택된 답변

Jan
Jan 2019년 4월 9일
편집: Jan 2019년 4월 9일
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
Lask
Lask 2019년 4월 9일
편집: Lask 2019년 4월 9일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by