mdfRemoveAttachment
Description
mdfRemoveAttachment(
removes the mdfFileName, attachmentFile)attachmentFile from the specified
mdfFileName.
To remove multiple files, call this function separately for each file.
Note
This function does not support MDF3 files.
Examples
Identify the files attached to an MDF file and remove the unwanted one.
List the attached files from the MDF file information struct.
info = mdfInfo("MDFFile.mf4");
info.Attachment.Nameans =
'inv_prelim.txt'
ans =
'inv_final.txt'
ans =
'inv_temp.txt'Remove the unwanted attachment.
mdfRemoveAttachment("MDFFile.mf4","inv_temp.txt")
Input Arguments
MDF file name, specified as a string or character vector, to remove the attachment from. The file name can be a relative or absolute path.
Depending on the location you are accessing,
mdfFileName can take one of these forms.
Location | Form | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Current folder or MATLAB® path | To access a file in the current folder or MATLAB path, specify the
name of the file in Example:
| ||||||||
Other folders | To access a file in a folder other than the current folder, specify
the full or relative path name in
Example:
Example:
| ||||||||
Remote locations | To access a file in a remote location,
Based on the remote location,
For more information, see Work with Remote Data. Example:
|
Example: "MDF_25Dec.mf4"
Data Types: char | string
File to be removed, specified as a string or character vector. To precisely identify
the attachment to remove, the specified file name string must exactly match the
attachment name as stored in the MDF file, which can be found in the
Attachment.Name field of the file information struct returned by
mdfInfo.
Example: "Inv_MDF_25Dec.txt"
Data Types: char | string
Version History
Introduced in R2022aYou can directly access MDF file data stored at remote locations, including Amazon S3, Azure® Blob Storage, and HDFS.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)