deleteFile
説明
例
SoC ボードからのファイルの削除
指定した SoC ボードからファイルを削除します。
Xilinx® プロセッサ ハードウェア オブジェクトを作成し、Xilinx SoC ボードに搭載されているプロセッサに接続します。
p = xilinxsoc('192.168.1.101', 'root', 'root');
関数 deleteFile
を使用して、対象ファイル名として exampleFile.txt
を指定し、SoC ボード上のホーム ディレクトリにあるファイルを削除します。
deleteFile(p, "exampleFile.txt")
ファイル exampleFile.txt
は、接続されている SoC ボード上のホーム ディレクトリから削除されました。
入力引数
filename
— SoC ボード上のファイルのパスと名前
文字ベクトル | string スカラー
SoC ボード上の削除するファイルのパスと名前。絶対パスまたはホーム ディレクトリからの相対パスのいずれかを使用できます。
例: "exampleFile.txt"
例: "/home/user/exampleFile.txt"
バージョン履歴
R2022a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)