Answered
Modify Tab Order of App Designer GUI
> I attempted to use uistack to change the order of the figure's children R2023a Starting in MATLAB R2023a you can use uistack...

5 years ago | 2

| accepted

Answered
Converting name of month to number
Another way to convert month names to numbers that is quite flexible in ignoring case and accpeting month appreviations. Requir...

5 years ago | 0

Answered
convert normal GUI cordinates to normalized cordinates
The best solution would be to do the manual labor of changing the units for each component in the code that creates the GUI. It...

5 years ago | 0

Answered
Explanation of "Position" in uitable
The position and units property can be found on the Properties page of UITables Position property of uitables Units property ...

5 years ago | 0

Answered
How to Convert the negative Zero into Positive Zero in my code?
Any time you see a negative 0 you can bet that the number contains a very small decimal value that is negative. For example, ...

5 years ago | 0

Answered
Combine histograms in a bar plot
I think what you want is to produce a histogram with data that already contains the bin counts rather than using the histogram f...

5 years ago | 0

Answered
Matlab: Split and Plot the training data set and test data set.
I'll point you in the right direction toward the tools you need to complete your assignment. >First, divide the data into tw...

5 years ago | 1

Answered
Drawing fancy box plots
Here are examples using boxchart (requires Matlab r2020a) and boxplot with slightly different outcomes. rng('default') x = -...

5 years ago | 2

| accepted

Answered
Boxplot and histogram in one plot
This method uses patch objects to display histograms next to each boxplot. It's based on another answer that displays probabilit...

5 years ago | 3

| accepted

Answered
Change both transparency/opacity and marker size in legend of plot
Only one output to the legend function is documented. When you use additional undocumented outputs it causes all sorts of probl...

5 years ago | 0

| accepted

Answered
Customize tick values in boxplot
Use the Labels input option. boxplot(rand(20,3),'Labels',compose('%dkW',[50,150,300])) > I tried changing tick-values You wo...

5 years ago | 0

| accepted

Answered
How to shift all the non-zero elements of a matrix to the right of the matrix?
m = [1 2 3 0 0 1 2 0 0 0 1 2 3 0 0 0 1 0 0 1 2 3 1 2]; mSort = cell2mat(cellfun(@(v){[v(v==0),v(v~=0)]},mat2cell...

5 years ago | 2

Answered
Ginput not recognising the enter key
> if I press the Enter key, ginput doesn't recognise it as a key From the documentation, "Press the Return key to stop before ...

5 years ago | 0

| accepted

Answered
Convert data table to datetime
> It's a number, e.g. 201401010000 meaning jan 1st 2014 00:00. x = 201401010000; dt = datetime(string(x),'InputFormat','yyyy...

5 years ago | 0

| accepted

Answered
Make matlab save results to the same table but different rows
I would store the values within the while loop and then convert the array to a table using array2table. rng('default') x = []...

5 years ago | 0

| accepted

Answered
Getting NaN when computing partialcorr (no NaNs in data)
See similar question: getting a NaN in correlation coefficient The same basic problem is happening with the partial correlation...

5 years ago | 0

Answered
how to get which button was pressed?
The first input to the buttonPushed callback function is the object handle to the button that was pushed. The object handles is...

5 years ago | 0

Answered
matrix show , grain boundaries
H Ghari > how can i show a matrix like this photo with black line boundaries ? This should get you started: rng default; n ...

5 years ago | 2

Answered
disableDefaultInteractivity with GeographicAxes bug?
Indeed geo axes are listed as accepted axes in the disableDefaultInteractivity r2019b documentation. Double check that you're...

5 years ago | 0

Answered
deactive auto change size of elements
From within appdesigner > Design View, select the component(s) you'd like to change and from the Component Browser > property in...

5 years ago | 0

Answered
Enabling Data Cursor in App Designer?
datacursormode is supported in uifigures (e.g. app designer) starting from R2020a I believe (tested in R2021a). For example, ...

5 years ago | 2

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

Load more