Answered
How to find 3 points in a sphere?
The question is: how to get any 3 points along a great circle on a sphere with known radius and center Here's how I think of th...

5 years ago | 1

Answered
while loop while measurement
An efficient method of implementing a blinker is by using a timer object that you can turn on/off anywhere within the app and, i...

5 years ago | 0

| accepted

Answered
Table in a for loop
Assuming those values are boolean, z = ~(~tree.footContact(1).footContacts(:,1) & ~tree.footContact(2).footContacts(:,1));

5 years ago | 0

| accepted

Answered
Move bars so that first is between 0 and 1 (0 and first tick) .
That looks like a histogram rather than a bar plot. You can define the histogram edges using (0:25)-.5 to shift the bars leftwa...

5 years ago | 0

| accepted

Answered
Clustergram. Changing the range of the colorbar
The color scale is based on standardized values even if standardize is set to none. You can set the range of standardized val...

5 years ago | 0

| accepted

Answered
Not able to create datatip
datatip() was not released until r2019b. Documentation release notes

5 years ago | 0

Answered
avarage of diagonal elements
Since this appears to be an assignment I can help by explaining what's wrong and nudging you in the right direction. Two error...

5 years ago | 0

Answered
Every element of vector with same probability
If there's a uniform probability of selecting any element of a vector, use randi as shown below. x = [4 5 6]; n = 10000; % nu...

5 years ago | 1

Answered
plot simple 2D-surface from 2D-vector valued function
Perhaps you're just looking for a top-down view of the 3D axes [u,v] = meshgrid(linspace(0,1),linspace(0,2*pi)); x = u.*sin(v)...

5 years ago | 1

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

Load more