필터 지우기
필터 지우기

Can't figure out why it displays undefined function or variable while the variable is defined earlier.

조회 수: 1 (최근 30일)
Help,
I'm getting this error Undefined function or variable 'globalStart'. This function is defined earlier in the script.
%%Set testing period parameters
% global start/end date for WFA
globalStart = {'2010/02/01'};
globalEnd = {'2016/9/30'};
% Find unique trading days for all trading days combined
TDay = getTDay(globalStart,globalEnd);
I can't figure out why.
  댓글 수: 3
Jan
Jan 2016년 12월 14일
@liu: The problem is concealed in the lines, you do not show us. Currently we see only the lines, which show the intention, but obviously something went wrong anywhere else.
liu James
liu James 2016년 12월 14일
Thanks. You are right, I figured out that there was an extra clear and clc written in another function that wiped out the variable.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by