Undefined variable "Tmax" or class "Tmax".

4 views (last 30 days)
Hi everyone, I keep getting this message very infequently, sometimes my code is working, and sometimes it does. Does anyone could provide me with any adivce?

Accepted Answer

Star Strider
Star Strider on 31 Aug 2019
The error message should also tell you what line Tmax appears on, and if you are calling external functions, the function it appears in. Go to that line to see what your code is doing there.
Also, in the MATLAB Editor, in the Navigate section of the top toolstrip, click on Find, then search on Tmax. That will allow you to see where it is. You can then take whatever action is appropriate.
  2 Comments
JL
JL on 1 Sep 2019
Edited: JL on 1 Sep 2019
thanks! got it!

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!