How can I include a 3D plot in my App (App-designer)?

2 vues (au cours des 30 derniers jours)
xX_MatlabMaster_Xx
xX_MatlabMaster_Xx le 8 Avr 2018
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

Réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by