*.* and %s meaning in MATLAB

81 vues (au cours des 30 derniers jours)
ali hassan
ali hassan le 28 Jan 2022
Modifié(e) : DGM le 28 Jan 2022
what does these symbols mean in MATLAB
*.* and %s

Réponse acceptée

DGM
DGM le 28 Jan 2022
Modifié(e) : DGM le 28 Jan 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.

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by