Date: Dec 22, 2013 7:35 PM
Author: asmae
Subject: Error using  .*  Matrix dimensions must agree.

hello;
I try to test a toolbox (Matlab Offscreen Rendering Toolbox) downloaded from mathworks.com. so, when i run 'OffScreenTest.m' (file test), i got this message:

>>OffScreenTest
camnum =
27
OpenGLCanvas setup Successful
Facet Number: 4192, Vertex Number: 2098
Projecting images:
0 1 2 3 4 5 6 7
8 9 10 11 12 13 14 15
16 17 18 19 20 21 22 23
OpenGLCanvas setup Successful
OpenGLCanvas setup Successful
Error using .*
Matrix dimensions must agree.
Error in RenderDepthMesh (line 19)
RealXM = (XM - CamParamS.ccV(1))/ CamParamS.fcV(1).*RealZM;
Error in OffScreenTest (line 56)
DepthImageM = RenderDepthMesh(FM, VM, CamParamStructA{3},
[480; 640], [10; 20], zoomFactor, invertedDepth);

lines 19,20,and 21 of RenderDepthMesh.m are:

RealXM = (XM - CamParamS.ccV(1))/ CamParamS.fcV(1).*RealZM;
RealYM = (YM - CamParamS.ccV(2))/ CamParamS.fcV(2).* RealZM;
CameraCoordT = cat(3, RealXM, RealYM, RealZM);

need help please for this error.