Discussion


New in MATLAB R2022a: Modify tab focus order of UI components
<</matlabcentral/discussions/uploaded_files/10759/data>> . *MATLAB R2022a* provides app developers more control over user ...

4 years ago | 4

Discussion


New in MATLAB R2022a: Control keyboard focus to UI components
<</matlabcentral/discussions/uploaded_files/10699/data>> . *MATLAB R2022a* provides app developers more control over user ...

4 years ago | 3

Answered
Using LimitsChangedFcn to sync axes of different x-scales
> Sync the xlim of multiple axes with different x-scales such that when zoom and pan are executed all axes shift and scale corre...

4 years ago | 0

Answered
Index in position 2 exceeds array bounds. Index must not exceed 5
Let's look at the line that's reported to be causing the problem and the error message. maksimum=max(abs(U(i:end,i))); Inde...

4 years ago | 2

| accepted

Answered
How to make the contour labels (numbers) use the same color as the contour lines?
Generate contour with level labels Adapted from OP's code: a = 1; t = 1; kx = linspace(-4*pi/(sqrt(3)*a), 4*pi/(sqrt(3)*a), ...

4 years ago | 2

| accepted

Answered
How to create a boxplot of multivariable?
Use boxchart along with the GroupByColor parameter. There's a nice demo in the documentation. However, that will not provide n...

4 years ago | 0

Answered
How to change the datatip format in a plot with a datetime axis?
Specify the format by setting the Format property of the data tip template. % Create plot dt = datetime('today')+days(1:5); ...

4 years ago | 0

| accepted

Answered
How to plot a data which 3 columns using bar3 function
bar() is not designed to set the x-location of bars. One workaround is to use histogram2 but histograms are designed for contin...

4 years ago | 0

Discussion


New in MATLAB R2022a: export graphics to animated GIFs
Starting in *MATLAB R2022a*, use the *|<https://www.mathworks.com/help/matlab/ref/exportgraphics.html#mw_45a0190f-8596-49c2-b5dc...

4 years ago | 8

Answered
how to plot binned data?
> I need to check the relation between temperature and aerosol conc. for each bin It looks like you're comparing the median val...

4 years ago | 0

| accepted

Answered
How do I change the font size for text in my figure?
Here is a review of several solutions shared across 9 years in this thread and some guidance on deciding how to control font siz...

4 years ago | 8

| accepted

Answered
Plot two data sets and only clear one of them ?
Option 1: Delete a data set and add a new data set. Example: hold(ax, 'on') h1 = plot(__); h2 = plot(__); % replace ...

4 years ago | 0

Answered
Returning both chosen and not chosen elements
Adapt this to suit your needs list = {'Red','Yellow','Blue',... 'Green','Orange','Purple'}; [indx,tf] = listdlg('ListSt...

4 years ago | 0

Answered
Call back function for state button in matlab gui
There are a few short steps you need to take to implement this in App Designer. I've attached a demo app you can follow. Set...

4 years ago | 0

| accepted

Answered
Change the title of a Bode Plot
p.Title.String = t; p.Title.Interpreter = 'latex'; and you'll probably want p.Title.FontSize = 20;

4 years ago | 0

| accepted

Answered
Extracting Num Points from each box using boxchart
How to get Num Points.... ...From the data The most efficient way to get the number of points that compose each box is from th...

4 years ago | 0

Answered
How to find the colour of an image at specific pixel values?
The solution depends on the image type you're using but this demo should get you started. See in-line comments for more informa...

4 years ago | 0

| accepted

Discussion


New in MATLAB R2022a: Fontsize scaling
<</matlabcentral/discussions/uploaded_files/10124/data>> You've spent hours designing the perfect figure and now it's time to...

4 years ago | 4

Answered
Adjust count values in histogram
If temperature data is collected a 1-second interval, then a histogram of temperature data will show the number of temperature s...

4 years ago | 0

| accepted

Answered
how to do scatter plot and color code the values?
Sounds like Les Beckham was correct. quiver() is the way to go. However, the quiver function only lets you set 1 color for all...

4 years ago | 1

Answered
Boxplots in the same figure
Method 1: set position along x-axis Use the positions property in boxplot to set the box x-coordinates. A = rand(10,1); B =...

4 years ago | 0

| accepted

Answered
How to plot 2 years of timetable data on top of each other with the 1 year on the x-axis?
One simple approach would be to change the year for all of the data to equal 2016 or any other leap year (see leapyear function)...

4 years ago | 0

Answered
Hello. How can I store the coordinates of the points into one matrix. After constructing the ellipsoid, three matrices X, Y, Z are generated
Yes, I think this is what you're looking for. If not, please elaborate. [X,Y,Z] = ellipsoid(___); M = [X(:),Y(:),Z(:)]; This...

4 years ago | 0

Answered
Sorting Points (2D) clockwise
Clockwise about what center point? And what decides the starting coordinate? If you want to sort 2D coordinates by their po...

4 years ago | 0

| accepted

Answered
vector array in matlab
See strcmp (case senstive) or strcmpi (case insensitive) to compare a vector of strings to a single string. Those functions wil...

4 years ago | 0

Answered
how does griddata asses duplicates?
That line calls Matlab's built-in static method or function matlab.internal.math.mergesimpts(). The comments describe what it's ...

4 years ago | 0

| accepted

Answered
Cumulative Summation down a matrix in loop
If and only if the groups marked by A=-1 to A=1 are not interruped by any other values in A and a 1 does not appear before the f...

4 years ago | 0

| accepted

Answered
Table Assignment using two tables of different height.
There are several ways to join tables. join innerjoin outerjoin If you get stuck, provide an example of the two tables and t...

4 years ago | 0

Answered
Size of subplots in figure is not the same
The cause of the problem is difficult to troubleshoot without having a reproducible example. Here are two workarounds. Set Po...

4 years ago | 0

| accepted

Load more