MATLAB: How to display Heatmap plot in UI Axes of matlab app designer

#heatmap #matlabplots #appdesigner

I tried using
heatmap(app.UIFigure.UIAxes,A,XValue_Text,X2Value_Text)
heatmap(app.UIFigure,app.UIAxes,A,XValue_Text,X2Value_Text)
but both options are not working and showing errors.
Please guide.
Thank You

Best Answer

Place Uipanel in the position you want heatmap.
h = heatmap(app.Panel1,tbl,xvar,yvar);
Related Question