*.* and %s meaning in MATLAB

 Accepted Answer

DGM
DGM on 28 Jan 2022
Edited: DGM on 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.

More Answers (0)

Categories

Tags

Asked:

on 28 Jan 2022

Edited:

DGM
on 28 Jan 2022

Community Treasure Hunt

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

Start Hunting!