From: Ashar on
i create program using matlab GUI, the purpose is to show live video from webcam... my GUI has two different axis, one to display video using preview(vid,hImage); and the other one to display histogram. but the preview appear randomly between axes1 and axes2. does anybody know how to control video preview ?

I tried handles.axes1; to get control of axes1, but it has no effect against preview(vid,hImage);
From: Eladi on
"Ashar " <zero_fauzi(a)yahoo.com> wrote in message <hqb1nh$9mv$1(a)fred.mathworks.com>...
> i create program using matlab GUI, the purpose is to show live video from webcam... my GUI has two different axis, one to display video using preview(vid,hImage); and the other one to display histogram. but the preview appear randomly between axes1 and axes2. does anybody know how to control video preview ?
>
> I tried handles.axes1; to get control of axes1, but it has no effect against preview(vid,hImage);

Hi!! You can control the axes using this instruction:
hImage = image(zeros(vidRes(2),vidRes(1), nBands),'Parent',handles.axes1);
preview(vid, hImage);
From: Ashar on
thank you for your reply