Info

此问题已关闭。 请重新打开它进行编辑或回答。

What in the %&$^ possessed MATLAB to replace a clean-working function with a sloppy one?

1 次查看(过去 30 天)
Over the last several versions, the sample code for using VideoReader went from this:
obj = VideoReader('avi_file_name.avi');
your_movie = read(obj);
to this %&^*ing mess:
movobj = VideoReader(mov);
w = movobj.Width;
h = movobj.Height;
mov = struct('cdata', zeros(h, w, 3, 'uint8'), 'colormap', []);
k = 1;
while hasFrame(movobj)
mov(k).cdata = readFrame(movobj);
k = k + 1;
end
Seriously. What were you guys smoking? I just want to know why this went from SIMPLE and PRETTY to COMPLICATED and BUTT-UGLY.
  1 个评论
Andrew Reibold
Andrew Reibold 2014-11-13
编辑:Andrew Reibold 2014-11-13
Do you have an actual question or are you just ranting.
It looks to me that there is now a lot more user customization demonstrated here making it a better sample (Thanks Mathworks!) , and its still simple enough that a highschooler (or maybe even a very smart monkey) that was taught matlab fundamentals could still figure it out
*shrug

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by