MATLAB Answers

MATLAB grader error when running code

조회 수: 14(최근 30일)
Diane Peters
Diane Peters 2019년 11월 21일
댓글: Diane Peters 2019년 12월 1일
I'm using MATLAB grader for an assignment in my class, and this assignment has worked before, but now is not. The code that's being run is this:
num1 = [1]; %numerator of filter
den1 = [1 1]; %denominator of filter
filter1 = tf(num1, den1) %Filter transfer function object
And the error:
Undefined function 'tf' for input arguments of type 'double'.
Error in solution (line 3)
filter1 = tf(num1, den1) %Filter transfer function object
  댓글 수: 2
Diane Peters
Diane Peters 2019년 11월 21일
Wow, that's weird. My student showed me the error and then I went into learner preview and saw it myself.

댓글을 달려면 로그인하십시오.

채택된 답변

Cris LaPierre
Cris LaPierre 2019년 12월 1일
The likely problem is that your course is running only using base MATLAB, but it needs to have the Control System toolbox in order to run the tf function.
For courses being offered on grader.mathworks.com, you need to specifically add the products (toolboxes) you want your students to have access to to your course. See this page in the documentation to see how to add the Control System toolbox to your coures.
  댓글 수: 1
Diane Peters
Diane Peters 2019년 12월 1일
That was it, thank you very much.

댓글을 달려면 로그인하십시오.

추가 답변(0개)

커뮤니티

더 많은 답변 보기:  원격 교육 커뮤니티

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by