How can I include a 3D plot in my App (App-designer)?
2 views (last 30 days)
Show older comments
So this is the code:
[x, t, u] = shuttle(filename, tmax, nt, xmax, nx, method);
surf(app.ThreeDPlot, x, t, u);
%Set Axes properties
shading(app.ThreeDPlot, 'interp');
view(app.ThreeDPlot,150,30)
app.ThreeDPlot.Title.String = 'Internal Temperature';
app.ThreeDPlot.Title.FontSize= 14;
app.ThreeDPlot.XLabel.String = 'Displacement (m)';
app.ThreeDPlot.XLabel.FontSize = 12;
app.ThreeDPlot.YLabel.String = 'Time (s)';
app.ThreeDPlot.YLabel.FontSize = 12;
app.ThreeDPlot.ZLabel.String = 'Temperature (ºC)';
app.ThreeDPlot.ZLabel.FontSize = 12;
rotate3d(app.ThreeDPlot, 'on');
pan(app.ThreeDPlot, 'on');
Using Matlab R2016b this gives the warning ( Functionality not supported with UIAxes. For more information, see Graphics Support in App Designer. ).
surf(app.ThreeDPlot, x, t, u);
rotate3d(app.ThreeDPlot, 'on');
pan(app.ThreeDPlot, 'on');
How can I solve this? Many many thanks in advance,
Ricardo
0 Comments
Answers (0)
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!