auto_rename

Automatically rename any file if the file name already exists in the directory chosen.

이 제출물을 팔로우합니다

AUTO_RENAME.m is helpful when saving multiple files (.mat, .fig, .m, or any extension) that should be tagged with a number to avoid duplicate files. Enter the full path to the file you're saving and enter a string describing how the numerical tag should appear. The output is a full path to the unique file name.
Example:
auto_rename ('C:\Users\user\Documents\MATLAB\mydata.mat', ' vs 0')
= 'C:\Users\user\Documents\MATLAB\mydata vs 2.mat'

This will search the dir for this file name and will append it with ' vs x' where x is the first integer after 1 that will make the file name unique. The integer will be placed at the location of '0' within the input string (in this case, ' vs 0').

See help file for more examples.

인용 양식

Adam Danz (2026). auto_rename (https://kr.mathworks.com/matlabcentral/fileexchange/50484-auto_rename), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 준 파일: Next Available Filename

카테고리

Help CenterMATLAB Answers에서 Standard File Formats에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0