Beantwortet
How can I put images in a table using gui?
Here's a demo that embeds images in cells of a uitable but as @Walter Roberson mentioned, the image size will be small, and the ...

mehr als 3 Jahre vor | 4

| akzeptiert

Beantwortet
Adjust the axis of bar3 plot
Use this syntax to specify y-coordinates: bar3(y,z) z = rand(4,20); y = [30 35 40 50]; bar3(y,z) ylabel('y axis')

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Can i convert subplots in tiledlayouts?
See tiledlayout to learn about layout options and spacing. See nexttile to learn about setting the tile location and span. ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
No transparency in Livescript
The RGBA color definition for lines is undocumented and does not work with MLX files. The line transparency also will not appea...

mehr als 3 Jahre vor | 3

Beantwortet
Increase figure size in livescript
One way to change the figure size in a live script is to set the figure's width and height. fig = figure(); fig.Position(3:4)...

mehr als 3 Jahre vor | 1

Beantwortet
Create a diagonal matrix with a for loop from a vector
Here are three way to define a diagonal in a square matrix of zeros that do not require a loop. eye() ML = rand([5 1]) Mout ...

mehr als 3 Jahre vor | 0

Beantwortet
how to plot using the slice function the last row and column of a 3 matrix?
The syntax slice(V,xslice,yslice,zslice) plots surface using the vertex data in V at slices specifed by the 2nd, 3rd, and 4th ar...

mehr als 3 Jahre vor | 0

Beantwortet
Transformation from datetime to seconds
> I wanna do a transformation from datetime dd:MM:yyyy hh:mm:ss to seconds from a table See a table of format identifies in the...

mehr als 3 Jahre vor | 0

Beantwortet
Axes in dialog box turn blank after calling imagesc in pushbutton callback
TL;DR This issues has been fixed in R2025a. Prior to R2025a, fix it by specifying the number of colors in jet() function BtnP...

mehr als 3 Jahre vor | 2

Beantwortet
How do you plot two graphs with multiple curves next to a table?
Create a uigridlayout and put a uitable in it using the Layout property of uitable. To add the axes in the demo below, I added ...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
How can I change the color of tiles in a spherical graph?
sphere sphere axis equal colorbar If you want to change the colors, you can plot the sphere using surf(X,Y,Z,C) where C cont...

mehr als 3 Jahre vor | 0

Beantwortet
add error for when input is not integer
> I want to add an error message for when the input is not an integer This returns true when the value is an interger mod(value...

mehr als 3 Jahre vor | 0

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(...

mehr als 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. ...

mehr als 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, ...

mehr als 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...

mehr als 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...

mehr als 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...

mehr als 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...

mehr als 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 ...

mehr als 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...

mehr als 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...

mehr als 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...

mehr als 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...

mehr als 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 ...

mehr als 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 ...

mehr als 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...

mehr als 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 ...

mehr als 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...

mehr als 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...

mehr als 3 Jahre vor | 0

Mehr laden