*.* and %s meaning in MATLAB

81 visualizzazioni (ultimi 30 giorni)
ali hassan
ali hassan il 28 Gen 2022
Modificato: DGM il 28 Gen 2022
what does these symbols mean in MATLAB
*.* and %s

Risposta accettata

DGM
DGM il 28 Gen 2022
Modificato: DGM il 28 Gen 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.

Più risposte (0)

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by