Answered
Migrate preferences to R2025a
When you start MATLAB, it first looks for a preferences directory that corresponds to your current release (in this case R2025a)...

5 months ago | 1

| accepted

Answered
making the graphic smaller
Riffing off @William Rose's answer: If your goal is a specific aspect ratio in your axes, both on-screen and/or exported, you w...

5 months ago | 1

Answered
Get displayed axes limits for log scale
There is (unfortunately) no way to query the actual limits in the case you described above, but based on your last sentence, I s...

5 months ago | 1

Answered
Transfer history to MATLAB 2025a
When you start MATLAB for the first time it will automatically look for an old MATLAB preferences directory and automatically im...

5 months ago | 2

| accepted

Answered
Saveobj and Loadobj for arrays of objects
It sounds like you may benefit from switching to an object that "fakes" its size. Some examples of objects that do this (that sh...

5 months ago | 2

| accepted

Answered
Cannot position third y-axis on the right
Here is another approach for adding a third y-axis that leverages tiledlayout. tcl = tiledlayout(1,1); ax1 = axes(tcl); yyaxi...

7 months ago | 1

Answered
Is it possible to orient the legend's symbols vertically instead of horizontally?
Does this work for you? This uses only fully documented features. x = linspace(0, 10, 100); y1 = sin(x); y2 = cos(x); plot(x...

7 months ago | 0

Answered
Cannot position third y-axis on the right
The issue you are running into is that calling plot resets your YAxisLocation. ax = axes; ax.YAxisLocation = 'right'; plot(ax...

7 months ago | 0

Answered
No plot browser functionality for charts derived from matlab.graphics.chartcontainer.ChartContainer?
There is currently no way to integrate your custom charts (created by subclassing matlab.graphics.chartcontainer.ChartContainer)...

8 months ago | 0

| accepted

Answered
Multiple custom graphics object inheriting from ChartContainer
I can't reproduce this issue, but a couple things to keep in mind: Subclasses of ChartContainer are children of UI containers (...

8 months ago | 0

| accepted

Answered
ChartContainer is broken?
@Jan Kappen: This is a question that frequently comes up. Let me try to explain our reasoning for making this change. One of ou...

9 months ago | 2

| accepted

Answered
Default path issue- does path need to be set to the toolbox folder in Matlab on the Mac in Matlab 2022a?
Check if you have a redundant copy of pathdef.m: which -all pathdef If you see more than one entry (in particular, an entry th...

10 months ago | 0

| accepted

Answered
how to change axis font color?
There are several color related properties on the axes, but the one you are looking for is the XColor or YColor (or ZColor). ax...

10 months ago | 1

| accepted

Answered
How to Add Constraint Lines with Ticks to Both Plot and Legend in MATLAB?
If you have access to the Aerospace Toolbox (and MATLAB R2021b or later), you can use the boundaryline command to draw something...

11 months ago | 1

Submitted


Sparklines Component
Create small graphs which show the general trend of data.

11 months ago | 1 download |

0.0 / 5
Thumbnail

Submitted


Spike Raster Plot
A spike raster plot from spike time stamps with optional trial and group data.

11 months ago | 8 downloads |

5.0 / 5
Thumbnail

Submitted


Color Trajectory Plot
A multi-color line based on a 2D trajectory with corresponding color data.

11 months ago | 2 downloads |

0.0 / 5
Thumbnail

Answered
How to Plot Numbers on top of Bar graphs?
Starting in MATLAB R2024b, Bar labels are now a built-in feature Starting in MATLAB R2024b, Bar objects now have a Labels prope...

12 months ago | 3

Answered
Data labels above bars on grouped bar plot
With the release of MATLAB R2024b, this has gotten much easier. Starting in MATLAB R2024b, Bar objects now have a Labels proper...

12 months ago | 3

Answered
Show numbers with Grouped Bars
With the release of MATLAB R2024b, this has gotten much easier! Starting in MATLAB R2024b, Bar objects now have a Labels proper...

12 months ago | 2

Answered
While loop executes one additional loop when using appdesigner button to stop loop
Callbacks (like StartCountTslotButtonPushed and CompTslotButtonPushed) will only run if you tell MATLAB to process pending callb...

1 year ago | 0

| accepted

Answered
Display the exact selected area by zooming in on a surface/image
I downloaded your FIG-file, and it looks like the axes inside has a manually specified DataAspectRatio and PlotBoxAspectRatio. W...

1 year ago | 0

Answered
plot 2-dimention sphere in 3-D space
I wonder if what you are looking for is the alphaShape command. Check out the documentation and see if it satisfies your require...

1 year ago | 0

| accepted

Answered
How to change in marker size in the global legend?
The only documented way to modify the legend items independently from the contents of the axes is to create "dummy" objects with...

1 year ago | 2

Answered
How to zoom a figure and show the details?
One way to do this is using tiledlayout. im = imread('peppers.png'); t = tiledlayout(20,20); % Create one big axes that fil...

1 year ago | 1

| accepted

Answered
Prevent Matlab from updating the legend when saving a figure
By using the EntryContainer and NodeChildren properties, you are accessing the undocumented internal implementation details of t...

1 year ago | 1

| accepted

Answered
Why do I receive numerous nonexistent warnings after upgrade installation?
To build on what @Walter Roberson said: Most likely you have a duplicate copy of pathdef.m that is shadowing the correct versio...

1 year ago | 0

Answered
Read a userid file and search for userid.json in directory and then search json file
I suspect you want to use the dir command to get a list of files in the directory, remove ".json" from the end of the file names...

1 year ago | 0

| accepted

Answered
A (simple) way to use ismember between datetime arrays with different formats
I think the function you are looking for is dateshift. A = datetime(... ['19-Jun-2023', '20-Jun-2023', '21-Jun-2023...

1 year ago | 1

| accepted

Answered
How to draw an uncertain number of sub-images in one coordinate in app designer?
I'm not sure what you mean by "one coordinate", but the way I would create the diagram above in App Designer would be: When des...

1 year ago | 0

Load more