*.* and %s meaning in MATLAB

81 visualizaciones (últimos 30 días)
ali hassan
ali hassan el 28 de En. de 2022
Editada: DGM el 28 de En. de 2022
what does these symbols mean in MATLAB
*.* and %s

Respuesta aceptada

DGM
DGM el 28 de En. de 2022
Editada: DGM el 28 de En. de 2022
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.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by