how do i embed a mesh plot into appdesigner
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Michael Carpenter
el 12 de Mayo de 2020
Respondida: Ameer Hamza
el 12 de Mayo de 2020
I am using the following code and have tried many variants in the hopes of getting the app to own it.
[X,Y] = meshgrid(xlin,ylin);
Z = griddata(x,y,z,X,Y,'cubic');
mesh(X,Y,Z)
axis tight;hold on
When run in a matlab "program" it pops a detached window up that has the figure I want.
I want the image to be within the app (Axis?) generated with app designer. I am running R2020a.
0 comentarios
Respuesta aceptada
Ameer Hamza
el 12 de Mayo de 2020
You need to pass the handle of UIaxes to the graphing functions. For example
[X,Y] = meshgrid(xlin,ylin);
Z = griddata(x,y,z,X,Y,'cubic');
mesh(app.UIAxes,X,Y,Z) % UIAxes is the name of your axes object in app designer. Change it according to your app
axis(app.UIAxes, 'tight');
hold(app.UIAxes);
Also see tha attached app for a demo.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer 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!