*.* and %s meaning in MATLAB

127 次查看(过去 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 CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by