Matlab Error Message
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
My algorithm is strangely not working. Please help I get the below error:
??? Undefined variable Best_Predicted_Frame_mov.
Error in ==> MotionEstimationV2_salesman at 99
imwrite((Best_Predicted_Frame_mov(1,c).cdata),filename,'jpg');
0 件のコメント
回答 (3 件)
the cyclist
2011 年 7 月 29 日
Sounds like the variable "Best_Predicted_Frame_mov" has not been defined at line 99 of "MotionEstimationV2_salesman". I suggest you breakpoint your code there to see what the workspace looks like.
0 件のコメント
James
2011 年 7 月 29 日
2 件のコメント
the cyclist
2011 年 7 月 29 日
It sounds like that variable has not yet been created. Can you trace back and understand why you thought it would be there, and why it isn't?
Walter Roberson
2011 年 7 月 29 日
Before you first assign to Best_Predicted_Frame_mov add the statement
global Best_Predicted_Frame_mov
Then, just before you try to imwrite() it, again have the statement
global Best_Predicted_Frame_mov
If that solves the problem then either you could just leave it that way, or it would give us useful information towards tracking down why what you had was not working for you.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!