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

etwa 4 Jahre vor | 8

| akzeptiert

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

etwa 4 Jahre vor | 0

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

etwa 4 Jahre vor | 0

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

etwa 4 Jahre vor | 0

| akzeptiert

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

etwa 4 Jahre vor | 0

| akzeptiert

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

etwa 4 Jahre vor | 0

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

etwa 4 Jahre vor | 0

| akzeptiert

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

etwa 4 Jahre vor | 4

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

etwa 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Code folding other cells shortcut
Prior to Matlab R2021b % Fold all: Ctrl + = % Unfold all: Ctrl + shift + = Starting in R2021b % Fold all: Ctrl + , % ...

mehr als 4 Jahre vor | 2

Beantwortet
Data tip in app designer not working
The code in OP's question is copied/modified from this answer, for reference. The difference between the first and second bloc...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Add data tips to non-supported chart
Demo 1: Click rectangle to show datatip using ButtonDownFcn This demo is based on this answer using patches. A ButtonDownFcn i...

mehr als 4 Jahre vor | 0

Beantwortet
Need Help Understanding a Line of Code Related to Strings
> I am trying to understand what this line of code is trying to accomplish All it is is a character vector. That's all we know...

mehr als 4 Jahre vor | 1

Beantwortet
Unable to open file 'Diabetes.csv'.
To add to @Star Strider's advice, you can put the file anywhere you want as long as it's folder is on the Matlab path. For exa...

mehr als 4 Jahre vor | 0

Beantwortet
How to add a variables name into a datatip
This demo consists of three 3D scatter points with labels 'a','b','c'. % Create demo data T = table({'a';'b';'c'},[1;2;3], [...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to detect and separate squares and circles on image ?
This should get you started. It uses regionprops to compute the circularity of each object. I've set a subjective threshold of ...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to replace the numbers in matrix?
>I'm trying to replace the zeros to the intermediate numbers I assume you mean you want to replace 0s with the value immediatly...

mehr als 4 Jahre vor | 0

Beantwortet
How do you remove tick labels from a geoaxes object?
gx = geoaxes(); gx.LatitudeAxis.TickLabels = {}; gx.LongitudeAxis.TickLabels = {}; If you want to remove the axis labels too...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to find points inside Singapore?
> Do you know places where I can find precise border for small countries like Singapore? Search the internet for shp files cont...

mehr als 4 Jahre vor | 1

Mehr laden