*.* and %s meaning in MATLAB

122 ビュー (過去 30 日間)
ali hassan
ali hassan 2022 年 1 月 28 日
編集済み: DGM 2022 年 1 月 28 日
what does these symbols mean in MATLAB
*.* and %s

採用された回答

DGM
DGM 2022 年 1 月 28 日
編集済み: DGM 2022 年 1 月 28 日
In an expression like
v = 'words';
fprintf('this is a progression of several %s\n',v)
%s specifies "string or character vector".
In an expression like
fname = uigetfile('*.*')
'*.*' refers to any file -- or at least any file with a dot in the middle of its full name. The asterisk is a wildcard.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by