My project on Animations

I have a project to work on and i am stump on the programs concepts and what it is asking for. Here is the instructions:
Here is so far my code: *Note i know my for loop is wrong but i cant grasp the syntax compare to C++. *And yes my name is James :D
srcFiles = dir('C:\Users\James\Documents\MATLAB\image'); for i = 1 : length(image) filename = image('',image(i).name); I = dicomread(filename); figure, imshow(I); end
*My other code that was given in the project:
writerObj = VideoWriter(myAnimation, 'MPEG-4'); writerObj.FrameRate = 0.5; open(writerObj);
a = imread('robot','jpg'); B=imresize(a,0.25); figure(1) imshow(B);
writeVideo(writeObj,'robot','jpg');
close(writeObj);
This is an example how it should look or similar to it
https://blackboard.learn.fresnostate.edu/bbcswebdav/pid-1404638-dt-content-rid-7262802_1/courses/ECE72-01-74696-2167/Sister%20Cities.mp4

2 comentarios

KSSV
KSSV el 9 de Nov. de 2016
Okay..what is your question?
James Chang
James Chang el 9 de Nov. de 2016
It there a easier way that you can explain to me that does not confuse me because the way my professor is asking makes it confusing.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre File Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Nov. de 2016

Comentada:

el 9 de Nov. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by