function [sys,x0,str,ts] --> Undefined function or variable 't'

Hi guys. I am new to matlab and encountering the error when I run this function file. Could you help me figure it out. Thanks a lot!

 채택된 답변

Walter Roberson
Walter Roberson 2021년 3월 19일

0 개 추천

The code of the body of the function does not matter at this point.
The problem is that in the workspace you are making the initial call from, t is not defined, and therefore it cannot be passed down to the function. The function itself is not being invoked: you are not getting that far because you have not assigned anything to t.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2013b

질문:

2021년 3월 19일

댓글:

2021년 3월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by