Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

help me Axes show in Gui

2 Ansichten (letzte 30 Tage)
Adisorn Phanukthong
Adisorn Phanukthong am 9 Okt. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
first program don't have axes more than 1 axes
if press start Axes1 show webcam normal but I'm add axes 3 axes in program and press start Webcam show in last axes

Antworten (1)

Walter Roberson
Walter Roberson am 9 Okt. 2017
Do not do
handles.axes1;
hImage = image( zeros(vidRes(2), vidRes(1), nBands) );
as that is not reliable. Use
hImage = image( zeros(vidRes(2), vidRes(1), nBands), 'Parent', handles.axes1 );
Similarly instead of
axes(handles.axes7);
imshow(myImage);
use
imshow(myImage, 'Parent', handles.axes7);
Better yet would be to use
image(myImage, 'Parent', handles.axes7);
because imshow() changes a number of settings, and can trigger the deletion of axes (although that cannot happen in your circumstances, it is safer to get used to using image() instead of having to worry about whether you might encounter those circumstances.)
  3 Kommentare
Walter Roberson
Walter Roberson am 9 Okt. 2017
We need your .fig to test with.
Adisorn Phanukthong
Adisorn Phanukthong am 9 Okt. 2017
Sorry I can do it thank you

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by