infile code example problem
14 views (last 30 days)
Show older comments
Hallo,im new to matlab,i found this example http://www.mathworks.com/products/matlab-coder/code-examples.html?file=/products/demos/shipping/coder/coderdemo_gr.html and i want to make a small video about 50 frames,to see how it will be shown a black hole with a rotating point of view,but the function can not take any more than 1 infile,is there any way to put more files,than to put each one and then save them, Thank you
0 Comments
Answers (3)
Image Analyst
on 20 May 2014
See attached demo for how to create a video file from a bunch of saved images.
4 Comments
Image Analyst
on 20 May 2014
phedon's second "Answer" moved here:
Ok,but there wasn't any answer in the first question about inserting many infiles than one each time and after making the render for each,saving it. the code just takes one infile each time and then i have to save it manual.I tried the kode with the k = 1:len(imagefiles) with many variasions,but then just reads the pictures,or says me tha the infile takes just one argument or tha there is problem with assertions.Maybe i must make a for loop for each image in the array is infile then the function and save.I tried some code in that but there was no success.I think if i find the first one the saving is easy
Image Analyst
on 20 May 2014
I'm not sure I understand that even after reading it many times. What is an infile? Why does an infile take "just one argument" or even any arguments at all? Is an infile a function? What does it mean if "the array is infile"? I have no idea. You say you "then the function and save" - what function are you talking about?
You say "if i find the first one" but what does "one" refer to? And how are you doing the "find"?
What do you mean by "assertions"? I don't think you're using it with the standard English definition.
Why are your images "in an array"? Do you have a 3D image? Do you have a cell array?
I just don't understand enough of what you said to even answer. Perhaps get a native English speaker to review it.
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!