Effacer les filtres
Effacer les filtres

function that does not work

1 vue (au cours des 30 derniers jours)
Tor Fredrik Hove
Tor Fredrik Hove le 15 Oct 2011
Why does not this function work:
this is what i wrote:
function grade=onlyundefined(quiz)
if quiz<0 ||quiz>10
grade='X'
end
end

Réponse acceptée

Walter Roberson
Walter Roberson le 15 Oct 2011
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.

Plus de réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by