*.* and %s meaning in MATLAB

조회 수: 128 (최근 30일)
ali hassan
ali hassan 2022년 1월 28일
편집: DGM 2022년 1월 28일
what does these symbols mean in MATLAB
*.* and %s

채택된 답변

DGM
DGM 2022년 1월 28일
편집: DGM 2022년 1월 28일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by