File Exchange

image thumbnail

How to make a 3D video in MATLAB

version (1.92 KB) by Arindam Bose
This program describes how to make a 3D video in MATLAB by using two shifted videos.

1 Download

Updated 30 Jun 2016

View Version History

View License

How to make a 3D video in MATLAB by using two shifted videos recorded in two different cameras and which can be seen through red-cyan 3D glass.
Detail documentation can be found in :
Video tutorials can be found in :

Cite As

Arindam Bose (2021). How to make a 3D video in MATLAB (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)


Thanks for sharing. What if I want a red-cyan instead of cyan-magenta?


Arindam Bose

Now there is a small correction I must point out. Look at your 3D glass what you have. IF the left glass is Cyan and right glass is Magenta, then you have to make no change in this code. But if your glass is just opposite i.e. Left glass is Magenta and Right glass is Cyan, you have to make a small change. Replace the line with the following line.

movie3d(k).cdata = cat(3,leftI,rightI,rightI);

And you are done, now you have Magenta-Cyan 3D video.

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!