A répondu
How to solve the problem that the hybrid algorithm in mixed integer programming is ignored
As per the documentation (see this page), there are some restrictions on the types of problems that ga can solve when you includ...

environ 2 mois il y a | 0

| A accepté

A répondu
What is the meaning of x=x(:).'?
This ensures x is a row vector. It is useful when you are unsure of the size or shape of an input but you need it to be a row...

environ 2 mois il y a | 1

A répondu
compare variable with different data types
Detect if x is a string or character array Validate the string and convert it to a logical where yes==true Use a conditional s...

environ 2 mois il y a | 0

A répondu
Can you create frames in Figure?
This demo uses uigridlayout and uipanel to create 4 panels. Using tiledlayout, it creates 4 axes within each panel. You can se...

environ 2 mois il y a | 1

| A accepté

A répondu
uiprogressdlg does not broadcast PostSet
> Is this a bug or did I just do something wrong? You aren't doing anything wrong. There's a difference in how the CancelReque...

environ 2 mois il y a | 0

A répondu
How to plot multiple y-axis with data points on the axis
See parallelplot h = parallelplot(rand(3,4));

environ 2 mois il y a | 0

| A accepté

A répondu
The stop button doesn't terminate the process when pressed.
Looks like status2 = handles.stopval should be status2 = handles.stopval.Value;

environ 2 mois il y a | 0

A répondu
transparency issue using "plot" function
Applying transparency to line objects is not documented and leads to issues in some circumstances (e.g. live scripts and loading...

environ 2 mois il y a | 0

A répondu
Plot with the same Y-axis on both sides
You can use yyaxis but you need to link the left and right y rulers so when one changes, the other updates. This comes in handy...

environ 2 mois il y a | 1

A répondu
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 ...

environ 2 mois il y a | 3

| A accepté

A répondu
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')

environ 2 mois il y a | 0

| A accepté

A répondu
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. ...

environ 2 mois il y a | 0

| A accepté

A répondu
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...

environ 2 mois il y a | 3

A répondu
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)...

environ 2 mois il y a | 0

A répondu
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 ...

2 mois il y a | 0

A répondu
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...

2 mois il y a | 0

A répondu
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...

2 mois il y a | 0

A répondu
Axes in dialog box turn blank after calling imagesc in pushbutton callback
TL;DR Fix it by specifying the number of colors in jet() function BtnPushed(~, ~) imagesc(ax1, randi(10,10)) colormap(...

2 mois il y a | 2

A répondu
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 ...

2 mois il y a | 2

| A accepté

A répondu
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...

2 mois il y a | 0

A répondu
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...

2 mois il y a | 0

A répondu
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(...

2 mois il y a | 0

| A accepté

A répondu
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. ...

2 mois il y a | 0

| A accepté

A répondu
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, ...

2 mois il y a | 1

| A accepté

A répondu
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...

2 mois il y a | 0

| A accepté

A répondu
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...

2 mois il y a | 0

A répondu
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...

2 mois il y a | 0

A répondu
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...

2 mois il y a | 0

A répondu
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 ...

2 mois il y a | 2

| A accepté

A répondu
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...

2 mois il y a | 1

| A accepté

Charger plus