MATLAB Answers

How to resolve an error message: Unrecognized function or variable

2 views (last 30 days)
Telema Harry
Telema Harry on 13 Aug 2021
Commented: Rik on 14 Aug 2021
I always get an error of Unrecognized function 'DA' when I run the code for the first time.
The error disappears in subsequent runs. What could be the reason.
see a sample of the code.
%% ENTER DATE, MONTH, YEAR AND HOUR
DA.Day = 1;
DA.Month = 06;
DA.Year = 2021;
DA.tLST = 7;
DA.ls = 60;
[tim, yprime] = Balloondynamics(dtspan,In0,wind, DA, I, B);
  5 Comments
Rik
Rik on 14 Aug 2021
That sounds like you just learned why functions are useful.

Sign in to comment.

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!