필터 지우기
필터 지우기

function that does not work

조회 수: 1 (최근 30일)
Tor Fredrik Hove
Tor Fredrik Hove 2011년 10월 15일
Why does not this function work:
this is what i wrote:
function grade=onlyundefined(quiz)
if quiz<0 ||quiz>10
grade='X'
end
end

채택된 답변

Walter Roberson
Walter Roberson 2011년 10월 15일
You stored the function in the file "switchletgrade1.m" . The name of the file needs to match the name of the function.
Also, you will need to define the output for the situation when the "if" does not hold true.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by