*.* and %s meaning in MATLAB

95 Ansichten (letzte 30 Tage)
ali hassan
ali hassan am 28 Jan. 2022
Bearbeitet: DGM am 28 Jan. 2022
what does these symbols mean in MATLAB
*.* and %s

Akzeptierte Antwort

DGM
DGM am 28 Jan. 2022
Bearbeitet: DGM am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by