how to delete the files in a folder using matlab?

I have assigne the input path as
inpath = 'C:\SAR';
and baseGran = S1A_IW_GRDH_1SDV_20240823T005527_20240823T005552_055333_06BF4D_21CD
and now i want to delete the sigma*.img files in the folder using my matlab code
C:\SAR\S1A_IW_GRDH_1SDV_20240823T005527_20240823T005552_055333_06BF4D_21CD
I tried like
delete('inpath/baseGran/sigma*.img');
but it did not work.
PLease suggest me how to delete the sigma*.img files in this folder
kuldeep

답변 (2개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

릴리스

R2024a

질문:

2024년 9월 20일

답변:

2024년 9월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by