Answered
Give title for Table
You could effectively give a title to a table by nesting the table within another single-column table that contains the title. ...

5 years ago | 4

| accepted

Answered
Delete every second element in array
To delete every second element in an array starting with element #2, x(2:2:end) = []; or starting with element #1, x(1:2:end...

5 years ago | 1

| accepted

Answered
color coding data points
> I want to plot the data and color each data point with certain color depending on its value That's what scatter or scatter3 i...

5 years ago | 0

Answered
How can I implement colormap in subplots?
We can't run your code even with the attached data.mat file because it does not contain all of the variables or functions in you...

5 years ago | 0

Answered
How can I save output of anovan as PDF?
One option is to save the table variable to a text file using writecell but it will not maintain its format. It can, however, b...

5 years ago | 1

Answered
Help using grpstats function to get number of occurances per row on a table.
C = {'China','Hong Kong', '', 'China' '', 'Switzerland', '', 'Switzerland' 'United States', 'Ireland', '', 'United Sta...

5 years ago | 1

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

5 years 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...

5 years 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...

5 years 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...

5 years 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. ...

5 years ago | 1

| accepted

Submitted


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

5 years ago | 4 downloads |

5.0 / 5
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 | ...

5 years 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 ...

5 years 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...

5 years 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...

5 years 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...

5 years 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...

5 years ago | 2

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

5 years 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...

5 years 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...

5 years 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...

5 years 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...

5 years ago | 2

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

5 years ago | 2

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

5 years ago | 5

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

5 years ago | 6

| accepted

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

5 years 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.

5 years 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...

5 years 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)

5 years ago | 0

Load more