Beantwortet
How can i change color of a specific bin using histogram2 or anything similar
One way to do this is to plot a histogram for each group. rng('default') % For reproducibility of this example x = 100*randn(...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Any idea how to recreate this plot?
> I just cannot figure out how to plot a quiver plot on top of a pcolor plot Plot the pcolor data and then the quiver data. ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
lower and upper cusum
Notice the ylabel in the plot generated by cusum. It's standard error. To convert the upper and lower sums to standard error, ...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Display information when ticking the checkbox in app designer.
See this answer (Step 3) to learn how to add a ValueChangedFunction. This will add a callback function in your app's code. ht...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
About the use of imagesc
> the abscissa axis increases its numerical value to the right, and the ordinate one to the top, which is what I want I think y...

etwa 3 Jahre vor | 0

Beantwortet
how to create a mesh within the geometry?
This solution creates a grid based on the coordinates stored in xy. It then removes any grid coordinates outside of the polygon...

etwa 3 Jahre vor | 0

Beantwortet
How can I line up plot edges in subplots?
This is much easier to do using tiledlayout instead of subplot. Here's a similar demo/template you can use. x = randn(1,10...

etwa 3 Jahre vor | 0

Beantwortet
Exact replication of a colorbar
This solution has 2 steps: Read in a cropped image of the colorbar and extract the RGB values Inpterpolate the RGB values to ...

etwa 3 Jahre vor | 2

| akzeptiert

Beantwortet
How can I fit a scatter plot?
This demo shows how to plot a linera fit using the entire data. Fitting is demonstrated using fit (Curve Fitting Toolbox) and w...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Need to test the validity of an application handle
> I'd prefer the user not use the "X", but it's impossible to prevent him from doing so inadvertently. You can set the [x] clos...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Edit tile properties like legend or title out of tiledlayout nextline lines
I understand that you want to access a vector of TiledLayout axes and to keep put them in order. If you're using MATLAB R2022b...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Colorbar for a Tiled Layout
Are you asking how to extend the colorbar to be under both axes? Set the colorbar's Layout tile to south. tcl = tiledlayout(1...

etwa 3 Jahre vor | 0

Beantwortet
How do use 'flow' in a tiled plot while forcing a maximum of 2 columns?
A flow arrangement with a fixed number of columns (or rows) greater than 1 is not currently available. A new feature in MATLAB ...

etwa 3 Jahre vor | 1

Beantwortet
Random rows in matrix so no element from the first column occur twice in a row
There is no general solution since the values in column 1 may not sufficiently vary. For example, what if all of the values in ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How i can convert a number in table to 6-digit decimal?
Do you want to round your data to 6 decimal places or do you want to only display 6 decimal places? Rounding data There sho...

etwa 3 Jahre vor | 0

Beantwortet
xregion yregion back/front control
Update: Starting in R2024a, ConstantRegion has as Layer propert that you can set to Top or Bottom (see related answer). @Bruno ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Extract multiple data from desirable X and Y of (X,Y,Data)
Logical indexing is all you need. The last line removes any rows of table T that are not without the Lat/Lon bounds. T = read...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Parsing text without eval
You could write the string to an m-file and then run the m-file, though this has the same flaws/risks as eval. This demo crea...

etwa 3 Jahre vor | 0

Beantwortet
earth colors plot in 3D
> How can I change the color of what called the earth to take the real color of the earth ? - without the mapping toolbox This ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I copy a MATLAB figure to ms word while retaining figure labels?
copygraphics is a quick and easy way to copy a figure or axes to the clipboard so you can paste it into a document. For example...

etwa 3 Jahre vor | 0

Beantwortet
Text Area position issue in R2022b version
Thanks for reporting this issue. A workaround until it is fixed is to apply a grid layout to the right panel in R2022b (or la...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Combine LineStyleOrder and ColorOrder
Starting in MATLAB R2023a you can cycle through LineStyleOrder and ColorOrder together by setting LineStyleCyclingMethod to 'wit...

etwa 3 Jahre vor | 0

Beantwortet
cycling through both linestyle and linecolor
Starting in MATLAB R2023a you can cycle through LineStyleOrder and ColorOrder together by setting LineStyleCyclingMethod to 'wit...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Rotate ylabel and keep centered
Starting in MATLAB R2023a when you change the Rotation property of an axis label in a 2-D plot, the HorizontalAlignment and the ...

etwa 3 Jahre vor | 2

Beantwortet
How to rotate ylabel but still auto-resize plot axes?
Starting in MATLAB R2023a when you change the Rotation property of axis labels in a 2-D plot, the HorizontalAlignment and Vertic...

etwa 3 Jahre vor | 0

Beantwortet
How can I control the stacking order of objects in appdesigner?
Starting in MATLAB R2023a you can use uistack to control the stacking order of ui components in a uifigure such as in App Design...

etwa 3 Jahre vor | 1

Beantwortet
I am unable to change the fontsize of axis ticks
> setting the font size using gca.FontSize doesn't change the size of axis ticks gca() is a function that returns the current ...

etwa 3 Jahre vor | 0

Beantwortet
Extracting data from histogram plots
3 methods to group data and compute mean for each group Each method deals with empty bins differently. discretize + splitappl...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Zooming Into UIAxes Image Changes Axis Shape and Position: Why, and How Do I Fix?!
Your intuitions are correct. Panning and zooming reset the CameraPosition and CameraTarget back to default states which explain...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Spectral clustering: K-means replicates setting to improve reliability
If you open spectralcluster, you'll see that kmeans is being called with a Replicates value of 5 and there is not a way to speci...

etwa 3 Jahre vor | 0

| akzeptiert

Mehr laden