Display the figure in MATLAB GUI obtained from showPointCloud()
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello, I am using the function showPointCloud(); in MATLAB to display the image. I am able to display this image correctly in MATLAB. Now the i want display this figure in MATLAB GUI. Please let me know how to display this in MATLAB GUI.
function DisplayReconstructedScene( pointCloudDisp, J1 )
figure, showPointCloud(pointCloudDisp, J1, 'VerticalAxis', 'Y',...
'VerticalAxisDir', 'Down' );
xlabel('X');
ylabel('Y');
zlabel('Z');
end
Looking forward to hear from you at the earliest.
Thanks Pankaja
0 comentarios
Respuestas (1)
Grant
el 17 de Jun. de 2015
showPointCloud supports a 'Name/Value' pair construct to specify the parent axes. You can use something like the following:
hAx = subplot(121);
[x,y,z] = sphere(100);
showPointCloud([x(:),y(:),z(:)],'Parent',hAx);
xlabel('X');
ylabel('Y');
zlabel('Z');
if you replace hAx with the handle to your GUI axes, you should be all set.
1 comentario
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!