Answered
I want to change the background value of figure to white.
Set the figure's color using the figure's Color property. set(gcf,'Color','white') Or set the color upon creation of the figur...

1 year ago | 1

| accepted

Published


Plotting a New Course: A Grown-Up compassplot
Guest Writer: Abby Skofield Today's R2024b feature highlight is written by Abby Skofield, a developer on the...

1 year ago

Thumbnail

Answered
How to add a 2D plot to an existing 3D plot by sharing the same axes?
This is challenging. The reason it's challenging is because camera properties are set relative to a point in an axes, not relat...

1 year ago | 3

| accepted

Published


R2024b release: What’s new in Graphics and App Building?
Two of my favorite times of the year are September and March, when the landscape transforms beautifully in my area of the...

1 year ago

Thumbnail

Answered
first time use Histogram, need help
In MATLAB, I recommend using the histogram function. histogram('Categories',Categories,'BinCounts',counts) x = reshape([0.29:0...

1 year ago | 1

Answered
Add title to one row of a subplot
Instead of using subplot, I recommend using tiledlayout which supports nested layouts and global titles. Follow these instructi...

1 year ago | 0

Answered
dock graphics window size
To set an existing figure's position back to the factory default, set(fig,'Position','factory') Note that set() must be used ...

1 year ago | 0

Answered
Why is my Mixed ANOVA including the intercept as an interaction term?
You can remove the interaction term by including "-1" in the model spec (doc). I also included terms for Congruency and Target i...

1 year ago | 1

Answered
Variables window doesn't work after undocking in R2023b
Hi Kim, please contact tech support and include your instructions above how to reproduce the problem.

1 year ago | 0

| accepted

Answered
exportgraphics causing strange messages in terminal only for Compiled version of App
This issue was fixed in R2024a. The problem occurred when setting append to true in exportgraphics.

1 year ago | 2

| accepted

Answered
Fix to frequent "Application not responding" for MATLAB on the Mac
Thank you for sharing your experience, @Daniel Dolan and others. I've consulted with MathWorks developers who work on this infr...

1 year ago | 1

Answered
Return cursor to commandline after plotting
I'm familiar with this issue. Please consider reporting your thoughts on the matter to Tech Support. The best way to do that is...

1 year ago | 0

| accepted

Answered
When will the transition from Java to Javascript be complete?
Thanks for your questions and curiosity about the JavaScript transition. I highly recommend that you try out the beta version of...

1 year ago | 4

| accepted

Answered
Vertical blank space in tiledlayout compact
> As you can see there is some vertical unnecessary space between the two horizontal stacks of plots. I would like to reduce it ...

1 year ago | 1

Answered
How to get "Clean" edges on a surface plot?
Conversion from 3D scatter points to a surface is not straightforward. Here, I'm using Delaunay triangulation to create a mesh ...

1 year ago | 0

| accepted

Answered
How to get "Clean" edges on a surface plot?
Use convhull to enclose the polyton and trisurf to plot the results. Code from OP GS = [0,0 0.225,2.35 1.325,5.525 ...

1 year ago | 0

Answered
Plotting two surface plots in the same figure using two different colormaps
Assign two surface objects two different colormaps using Truecolor arrays The recommended approach is to create an overlayed ax...

1 year ago | 1

Answered
changing font size in all the elements of figures
Starting in MATAB R2022a you can use the fontsize command. For example, to set the fontsize to 15 points for all* text in a fi...

1 year ago | 1

Answered
How to change the size of heatmap axis labels
How to independently change fontsize of tick labels and axis labels in heatmap Heatmap's FontSize property sets the font size f...

1 year ago | 0

Published


Creating a Flight Tracking Dashboard, Part 2: Developing an Aircraft Chart
Guest Writer: Ken Deeley Ken is an application engineer in Cambridge, UK, supporting MathWorks users with their technical...

1 year ago

Thumbnail

Answered
Invalid Parameter Name: EdgeColor
Thanks for sharing this. This is a bug that was fixed in MATLAB R2024a Update 5, released on 12 July 2024. hist3(X,[250 250],...

1 year ago | 3

| accepted

Published


Animating Science: Creating Time-Sensitive Animations with MATLAB
Guest Writer: Gianluca Carnielli Gianluca is an application engineer at MathWorks based in Italy. While he supports MATLAB...

1 year ago

Thumbnail

Answered
How do you set the Layout Option at construction for ui objects?
See David's answer in the thread below for a one-liner solution: https://www.mathworks.com/matlabcentral/answers/1977184-can-yo...

1 year ago | 0

| accepted

Answered
Change the background colour gradient.
The axes color property can only be set to one solid color. A workaround is to plot a patch with interpolated colors and to s...

1 year ago | 1

| accepted

Answered
loop plot add text to only one specific plot year
I recommend using xregion (requires R2023a or later) or xline (requires R2018b or later). With xline you can also include a tex...

1 year ago | 0

Answered
How to remove decimal points in the Workspace
See format to set output display format. format shortg or if you always want 2 decimal places, format bank See full list o...

1 year ago | 0

Answered
Simple turn on Lamp with switch in app designer
The problem is that the values the switch returns are On and Off with capital letters. Your string comparison is case sensitive...

1 year ago | 0

Answered
Passing output from a ButtonDownFcn callback function
Callback functions do not have outputs or a clear workspace where the outputs would live. Instead, within a callback function y...

1 year ago | 0

Answered
X-Axis Boxplot Shift
This demo plots the boxchart first and then plots the jittered scatter next to the boxes. This differs from the original request...

1 year ago | 0

Answered
Text inside the meshgrid
The problem: the initial image it not fully displayed in the figure Below is the section of code that creates the axes where th...

1 year ago | 1

| accepted

Load more