What does the tilde (~) in the following code mean?

조회 수: 33 (최근 30일)
Antoine Mora
Antoine Mora 2017년 9월 19일
편집: James Tursa 2017년 9월 20일
function T= TempStefBoltz_3(~)
sig = 5.67e-8; %W/m^2K^4
E =6000; %W/m^2
x=E/sig;
t=nthroot(x,4); %K
T=round(t); %K
end

채택된 답변

James Tursa
James Tursa 2017년 9월 19일
편집: James Tursa 2017년 9월 20일
It's syntax that means to ignore the input argument, if there is one. That is, you can call the function with no input arguments or one input argument (ignored).

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by