Answered
Plot only specific categorical values / scatterplot
>I only want to plot some specific values of shop_name ("A", "B", "D") Using idexing. But with categories you also need to set...

9 días ago | 2

| accepted

Answered
Save a Uitable with coloured cells as as png.
One solution is to put the uitable within a uipanel and then use exportgraphics to export the table. If you want to export the...

9 días ago | 1

Answered
how to change disp for fprintf
Starting in Matlab r2021a, you can use formattedDisplayText() to capture anything that is displayed by disp(). See a summary o...

9 días ago | 1

Answered
How to make disabled GUI objects not dimmed?
Set the Enable property of the GUI/App object. If you want to toggle the enablem property of several components located togeth...

10 días ago | 0

Answered
App designer - uiputfile is saving the file to the wrong path
Always go directly to the documentation to understand the expected behavior of a function. uiputfile returns up to 3 ouputs. ...

10 días ago | 1

| accepted

Submitted


boxplotGroup
Group boxplots together along the x-axis with space between groups.

10 días ago | 104 downloads |

Thumbnail

Answered
Ignore first 5 lines
If the data is organized in rows, then you should use a file reading function designed for tabular data: readtable | readcell | ...

10 días ago | 0

Answered
How to loop through all the input of a function
As mentioned in the comments by Matt J and myself under this question, the only two recommended solutions to looping over input ...

10 días ago | 0

Answered
How to find out Standard Deviation from FIT
Do you want the standard deviation of the residuals? If so, compute the residulas and apply std(). Or maybe you're looking for...

11 días ago | 0

Answered
Files, Arrays, & Plotting
You mentioned rows of data so I'm guessing the files tabular data. In that case, the files can be imported using readtable | re...

12 días ago | 0

Answered
How can i draw histogram ?
This isn't a histogram. It's a bar plot. Hint: follow this example from the documentation to create a grouped bar plot. Set...

12 días ago | 0

Answered
How to add lines between specific rows and col's in a table?
No, it is not possible to display horizontal and vertical lines in a table or in a uitable. You could add a column of charact...

12 días ago | 1

| accepted

Answered
Enable on/off take effect only after window resize
First, this is not the best approach to disabling all components. Two alternatives that are much simpler and offer easier contr...

12 días ago | 0

| accepted

Answered
Plot from cell array
It looks like you're trying to create a stackedplot with 2 lines per axes which is demonstrated here: https://www.mathworks.com...

12 días ago | 0

Answered
how to plot two graphs in one plot
You're reversing the y-axis with this line in your code. set(gca,'ydir','reverse') If you want the y-axis direction to be norm...

13 días ago | 0

| accepted

Answered
How to fit nonlinear data in a curve using the below equation?
The error message is quite clear, Exiting due to infeasibility: at least one lower bound exceeds the corresponding upper bound...

14 días ago | 0

| accepted

Answered
Plotting over a histogram
You're plotting a normal probability density function which are probabilities between 0 and 1 that sum to 1 (depending on sampli...

14 días ago | 1

| accepted

Answered
Delete axes interactions not working?
Difference between toolbar and interactions Interactions are the actions available by using the mouse to zoom/pan/rotate etc th...

14 días ago | 0

| accepted

Answered
Using data cursor with pcolor
@Mark Brandon, For 3D patches the color data does not have to correspond to the zdata. For example, You could have a 4D array w...

15 días ago | 1

Answered
Difference between switch and if
if/elseif/else is quite similar to switch/case/otherwise. Both provide a default action when no conditions are met (else & other...

16 días ago | 0

| accepted

Answered
Axis limits not working
xlim, ylim, zlim should have worked. You need to set them after you plot the scatterbar3.

16 días ago | 1

| accepted

Answered
removing the text data by only keeping the numerical values
Use readtable or readmatrix. Both functions allow you to specify the starting line of the data.

16 días ago | 0

Answered
How to change axis of figure and shift matrix?
Specify the x and y coordinates using the syntax imagesc(x,y,C) x and y are merely 1x2 vectors of axis limits so it should be q...

16 días ago | 1

| accepted

Answered
removing trailing zeros at the end of floating number
format long x = -3.265000000000; str = sprintf('%g\n',x) x = -3.2650000000001; str = sprintf('%g\n',x)

16 días ago | 0

Answered
Average Optical Flow vectors and plot over multiple frames
Here's a demo that shows how to Store the flow structure within a loop (assumes all flow arrays are the same size) Average a ...

16 días ago | 0

| accepted

Answered
How to extract a slider value?
See the value property in the slider documentation.

17 días ago | 0

Answered
How to delete/remove last row from .txt file in a for loop?
The description is vague for reasons outlined in Jan's comment. List path to all text files. See dir. Read in the text file. ...

17 días ago | 0

| accepted

Answered
Cernter of gravity.
Learn about Center of Mass equations here khanacademy hyper physics

17 días ago | 0

| accepted

Answered
How to check if handle is to a deleted axes?
How to check if handle is to a deleted object? Anonymous function to detect if a variable is a deleted object. isDeletedObj =...

17 días ago | 0

Answered
Multiple legends on Axes in App Designer?
Only one legend can be associated with a pair of axes. When a second legend is assigned to axes, it replaces the first one. I...

18 días ago | 1

Load more