Either I do not understand your question (people have already indicated that this is unclear), or you misunderstand how 3D vision works. You do not see a 2D image using 3D glass. 3D vision is achieved by feeding two different images, the left image and the correct image, to the left eye and right eye, respectively. At a fundamental level, MATLAB has nothing to do with it.
, , , - this: 2D-, " 3D-". - :
. , 2D-. "" , .
, . :

, , .
, 2D - . , .
, , , anaglyph image. 3D-- - , 3D-. , , , , .
. , . , .
, :
im1 im2. .im1 . .im2 . .- ( ),
im1 , im2 - . , 3D-- . - . , .
Python/OpenCV, :
import cv
SHIFT=8
if __name__ == '__main__':
import sys
_, fname = sys.argv
im = cv.LoadImage(fname)
size = cv.GetSize(im)
width, height = size
left = cv.CreateImage(size, im.depth, im.nChannels)
right = cv.CreateImage(size, im.depth, im.nChannels)
anaglyph = cv.CreateImage((width - SHIFT, height), im.depth, im.nChannels)
b = cv.CreateImage(size, im.depth, 1)
g = cv.CreateImage(size, im.depth, 1)
r = cv.CreateImage(size, im.depth, 1)
cv.Split(im, b, g, r, None)
zeros = cv.CreateImage(size, r.depth, 1)
cv.Merge(zeros, zeros, r, None, left)
cv.Merge(b, g, zeros, None, right)
cv.SetImageROI(left, ( SHIFT, 0, width - SHIFT, height ))
cv.SetImageROI(right, ( 0, 0, width - SHIFT, height ))
cv.Add(left, right, anaglyph, None)
cv.SaveImage('anaglyph.jpeg', anaglyph)
, :

:

, - , , . , , . , - , .