Error: Undefined function or variable [even if I defined the same variable on previous line]

15 ビュー (過去 30 日間)
Sherif Shokry
Sherif Shokry 2018 年 1 月 16 日
回答済み: michio 2018 年 1 月 17 日
While I'm running the coming code, I got this error "Undefined function or variable 'ExGr_ME_1'."
if (~isempty(ExGr38) || ~isempty(ExGr60))
if (ExGr38 > ExGr60)
ExGr_ME_1=ExGr38;
else
ExGr_ME_1=ExGr60;
end
end
if ~isempty(ExGr_ME_1)
if (Spd_38 > 0)
if (Nq48_1>0 && Nq48_2>0)
Del48_1= ---- Del48_2= -----
end

回答 (1 件)

michio
michio 2018 年 1 月 17 日
You can place a breakpoint at the line where error happened and see if the variable is really defined.

カテゴリ

Help Center および File Exchangeプログラミング についてさらに検索

Community Treasure Hunt

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

Start Hunting!