I got the answer .. In line 24 'Number' replaced by 'NumberTitle'...may be syntax issue in new version...thank you
I am running tracker code in matlabR2013b, it is working properly. But when i try the same code in MatlabR2015b it is giving following error..not able to debug it..any help..thanks in advance...
11 views (last 30 days)
Show older comments
Madan Kumar Rapuru
on 12 Jan 2016
Commented: Harold Chate
on 24 May 2017
code :
[fig_h, axes_h, unused, scroll] = videofig(num_frames, @redraw, [], [], @on_key_press); %#ok, unused
set(fig_h, 'Number','off', 'Name', ['Tracker - ' video_path])
axis off;
Errors :
Error using matlab.ui.Figure/set
You cannot set the read-only property 'Number' of Figure.
Error in show_video (line 24)
set(fig_h, 'Number','off', 'Name', ['Tracker - ' video_path])
Error in tracker (line 66)
update_visualization = show_video(img_files, video_path, resize_image);
Error in run_tracker (line 188)
[positions, time] = tracker(video_path, img_files, pos, target_sz, ...
Error in run_tracker (line 101)
[precision, fps] = run_tracker(video, kernel_type, ...
3 Comments
Yuxi Chen
on 26 Nov 2016
I faced the same problem today, but it's fixed by changing 'Number' to 'NumberTitle'. My matlab version is R2016b. Thanks a lot!
Harold Chate
on 24 May 2017
I have the same problem, I was fixed replaced "Number" by "NumberTitle", used Matlab R2016b.
Accepted Answer
Steven Lord
on 27 Nov 2016
In releases prior to release R2014b graphics handles were double precision numbers but as of release R2014b they are objects. To support referring to figures with numbers, we added a new property named Number to figures in that release.
In older releases, 'Number' referred to the NumberTitle property of the figure window; now it refers to the Number property, which is read-only. To correct the problem, modify your code to use 'NumberTitle' instead of 'Number'.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!