Answered
Connect two points with invisible vector and evenly spaced markers along the vector between them and Access Marking coordinates to draw circles around them.
Assuming P_1 and P_2 and (x,y) coordinates, the steps are compute slope between the two points choose the number of points be...

6 years ago | 0

| accepted

Answered
I need help adjusting the display axes values of a map created in matlab.
The difference between typical axis ticks and map axis ticks. The latitude and longitude labels in a map are pseudo-tick-labels...

6 years ago | 1

| accepted

Answered
Put each marker on a curve at a different color
co=jet(10); scatter(x,y,80,co,'filled')

6 years ago | 0

| accepted

Answered
Select specific rows in Matlab Table.
This demo detects groups of duplicate time stamps using the diff() function and then splits the timetable rows into 3 tables con...

6 years ago | 1

Answered
How can i reverse my plot?
I'm guessing you want to flip the y-axes. set(gca,'YDir','reverse')

6 years ago | 0

| accepted

Answered
Complicated colorbar question?
Option 1: use a legend for the codes and a colorbar for the continuous data The easiest and cleanest method might be to set a d...

6 years ago | 0

| accepted

Answered
Plot multiple legend in a loop with variable
I suggest you apply this 2-step approach to your code. Step 1: Use the DisplayName property of graphics objects to define th...

6 years ago | 0

| accepted

Answered
Export graph to excel using app designer
If you're using r2020a or later, see copygraphics() or exportgraphics(). Prior to r2020a, if you're trying to access an axes in...

6 years ago | 1

| accepted

Answered
what is level of contours
If you scroll up to the top of the page you shared you'll see a section that describes properties associated with levels that ma...

6 years ago | 0

| accepted

Discussion


New in R2020a: Mouse Pointer control in apps & uifigures
<</matlabcentral/discussions/uploaded_files/1606/pointers.bmp>> *<https://www.mathworks.com/help/matlab/release-notes.html?rn...

6 years ago | 15

Answered
How to add lables on each coloumn of grouped stacked bar chart?
h is the array of handled that you added as an output to the PlotBarsStackGroup function from the file exchange. To add the l...

6 years ago | 0

| accepted

Answered
Extract part of filepath and using like legendname
Make sure all slashes are forward shashes FilePath = strrep(FilePath, '\','/'); Replace any double shashes with single slashes...

6 years ago | 0

| accepted

Answered
Barcharts colours based on other vectors
This has been addressed before within the forum (example1 ,example2). The basic idea is to store the output handle to the bar o...

6 years ago | 0

| accepted

Answered
How to get pixel's position of an image in UIAxis in AppDesigner?
Description of the problem The data cursor does not work for image objects plotted in App Designer (or in any uifigure) prior t...

6 years ago | 2

| accepted

Answered
For loop through cell arrays
If you want to do this in a loop, there are 4 steps I've outlined below. "c" is the 1x4 cell array. column3Means = nan(siz...

6 years ago | 0

| accepted

Answered
How to keep count of occurence of column combination using 'for' loop?
How to check the number of occurence of pairs in the nx2 matrix A. A = [1,1;2,1;3,1;1,2;2,2;3,2;1,3;2,3;3,3;1,1;2,1;3,1;1,2;2,2...

6 years ago | 0

| accepted

Answered
Matlab App Designer UIAxes same scale for x and y axis
Check out linkaxes and linkprop. Use them to set the axis limits and, if needed, other axis properties between two axes. The ...

6 years ago | 2

| accepted

Answered
How to extract data efficiently from table or 2D array?
Extracting data from a matrix/table into individual variables is the most inefficient way to use those values. Data stored in ...

6 years ago | 0

Answered
How can I label the individual spokes in a Glyph plot?
Here's a demo showing how to label each line segment (perimeter or spokes or both) using an array of labels. https://www.mathw...

6 years ago | 0

Answered
Add spoke labels in glyphplot
h = glyphplot(X,...) returns the handle to all line and text objects created within the function. For a star plot, h(:,1) and h...

6 years ago | 0

Answered
3D Scatter plot color map issues
You have to assign the colormap to your axes. set(gca, 'Colormap', markerColors) The axes colormap is a separate property than...

6 years ago | 0

| accepted

Answered
Bargraph based on cell-array with two columns
Assuming your cell array is named data where the first the first column are the labels and the second column are the bar heights...

6 years ago | 0

Answered
Plotting results in array of a while loop
As the error message indicates, a subscript must be a real, positive integer or logical. On the first iteration, i equals 0 wh...

6 years ago | 0

| accepted

Answered
How to change color in pie3 App.UIAxes in App Designer?
Follow this demo. You can use either option in the demo for pie3() plots. https://www.mathworks.com/matlabcentral/answers/51...

6 years ago | 0

Answered
Average values after every n coloumns
You probably already have a vector of timestamps that define each column of your data. The first line in the demo below produce...

6 years ago | 0

Answered
App designer empty vector
Don't use global variables. I'm guessing that you are trying to retrieve the value of m somehwere else in the App but you hav...

6 years ago | 1

| accepted

Answered
Ranksum - Wilcoxon rank sum test - Get more statistics using a for loop
[p,h,stats] = ranksum(x,y) p = nan(1,n); h = false(1,n); stats = cell(1,n); for i = 1:n [p(i),h(i),stats{i}] = ranks...

6 years ago | 0

| accepted

Answered
App Designer Tab Groups
An alternative is to keep the tabs visible but prevent the user from selecting them under certain conditions. This demo uses ch...

6 years ago | 1

| accepted

Answered
How to save the figure of signals in a new directory?
To create a directory, mkdir parentFolder folderName. To save a figure, see savefig(filename). Demo: (also uses fullfile) pa...

6 years ago | 0

Answered
Sorting and selecting points into sub matrices based on proximity to each other.
The 3 lines of code at the bottom show the solution. I've included all of the exporatory plots and other lines of code that I a...

6 years ago | 0

| accepted

Load more