Statistics
RANK
18
of 262 537
REPUTATION
12 112
CONTRIBUTIONS
10 Questions
3 322 Answers
ANSWER ACCEPTANCE
80.0%
VOTES RECEIVED
1 735
RANK
5 762 of 17 975
REPUTATION
184
AVERAGE RATING
4.90
CONTRIBUTIONS
28 Files
DOWNLOADS
414
ALL TIME DOWNLOADS
24519
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
24 Highlights
AVERAGE NO. OF LIKES
7
Content Feed
Why does using 'ButtonDownFcn' function disable datatip?
> Why does using 'ButtonDownFcn' function disable datatip? When you click on an object, the object has no idea of your intentio...
en dag ago | 0
Can I use ginput (or an analog) in the 2016a App Designer?
ginput is supported in AppDesigner figures starting in MATLAB R2020b For more info: https://www.mathworks.com/matlabcentral/...
en dag ago | 0
| accepted
Live scripts: Get axes handle of figure NOT stored in live script.
This is why gca should usually be avoided. Here are some solutions in order of robustness. Change the function so that it o...
2 dagar ago | 1
Error using plot, "vectors much be same length"
Try, x = linspace(-1.5, 1.5, numel(Sxx)) plot(x,Sxx)
2 dagar ago | 1
| accepted
Multi Colors and Legend for each bar
Colorbar option This is based on the solution from this thread. barData = rand(1,5); figure(); bh = bar(barData); % set...
3 dagar ago | 0
Extract data from raster plot
Assuming you don't have the data that generated the figure to begin with, try grabit from the File Exchange. It estimates the co...
3 dagar ago | 0
Plotting negative values in boxplot
You could add a second axes that zooms into the small, negative values. [NUM_w,TXT_w,RAW_w] = xlsread("data_boxplot"); flow_...
5 dagar ago | 0
heatmap color RGB data for manaully created image
See the 5 lines of code under "new section". I didn't change anything else. % Given data: the sum of Data is equal to 1 % su...
5 dagar ago | 0
Event on GIF reset
Without knowing the end goal, I'm not certain this will be useful but it sounds like what you're looking for can be computed or ...
5 dagar ago | 0
| accepted
how can I plot y = (cos(t-2)/4)(rect(t+1)/6 )?
is it correct way to write tht code ? The line of code looks functional without knowing any other details including what rect i...
5 dagar ago | 0
Grouping rows on the first column and obtain minimum value on second column
A = [13 7 13 6 13 5 13 6 12 7 12 5]; B = groupsummary(A,A(:,1),'min') Note that rows are sorted according to the groupi...
6 dagar ago | 0
Changing layers on a bar graph
Plot the green bars first, before the bar plot. Alternatively use uistack to control the stacking order of graphics objects.
7 dagar ago | 0
| accepted
How to hold different constellations using scatterhistogram?
scatterhistogram produces a ScatterHistogramChart object within a figure. When you call hold on, an axes is created if it doesn...
10 dagar ago | 1
Is statistics and machine learning toolbox really required for gscatter plotting?
Here's a workaround I shared a while back using arrayfun. https://www.mathworks.com/matlabcentral/answers/574957-how-can-i-ma...
10 dagar ago | 0
Add subtitle to the plot?
If you're using MATLAB R2020b or later, use the subplot function. If you're using MATLAB prior to that release, you could add...
11 dagar ago | 0
| accepted
adding title to plots in Tiled Layout increase the Tile spacing
Assign the legend to the TiledChartLayout object rather than the axes. Demo: t=tiledlayout(5,1,'TileSpacing','tight','Paddin...
17 dagar ago | 0
| accepted
Writing more efficient Matlab code to test Null hypothesis (T and P values)
Assuming your table has variable names shown in your image, % Read the table from the csv file table = readtable('scores.csv'...
19 dagar ago | 0
| accepted
BoxChart box position doesnt match xaxis label when 'groupbycolor'
The example you shared from the documentation (link) uses grouped data. Groups are centered around the x-ticks. If you are mis...
19 dagar ago | 0
| accepted
Geobubble with specifing radius and discretize
The sizedata argument in geobubble determines the relative sizes of the bubbles. If you want to specify the absolute size of th...
19 dagar ago | 0
Histogram bin location to place text for categorical data
Since you x-data are categorical, you're working with a categorical ruler. This makes it difficult to position text at numeric ...
19 dagar ago | 1
tiledlayout no spacing display in 2x3 grid
imshow fits the axes to your image size. Use axis normal if you don't want the axes to tighten. This will distort your image...
19 dagar ago | 0
Change font size on plot but it's cut-off
Suggestion 1: used tiledlayout Axes produced in tiledlayout usually handle these situations better. Suggestion 2: check the P...
19 dagar ago | 0
“chasePlot” do't show ego vhicle?
chasePlot is outside my area of expertise but I did some digging found that if you change the ViewLocation of the scene then you...
21 dagar ago | 0
| accepted
loop for removing highest value until specific value is reached
A = randi(13,10); while sum(A,'all','omitnan')>20 [~,idx] = max(A(:),[],'omitnan'); A(idx) = NaN; end isRemove...
21 dagar ago | 0
| accepted
How to plot a graph like hist without using hist
>but when I use hist it omits the equal values hist does the binning, counting, and produces the plot. If "17" occurs 3 times,...
21 dagar ago | 1
Creating a string with Permutation
I believe this is what you're working toward. Axes_name = {'sint0.2';'sint0.5';'sint0.7'}; fold_2 = {'BCA';'BPCA';'DLA';'DLCA'...
24 dagar ago | 0
| accepted
Saving multiple figures together to a PDF
Thanks for providing the code! The question title makes it seems like you're plotting multiple figures but your code shows that...
26 dagar ago | 0
Plot and bar with descending data and double yaxes
You're adding the green line to the left y-axis. Switch these two lines plot(y1,'green') yyaxis right % to yyaxis ri...
26 dagar ago | 0
Which Anova test and how to use it?
I recommend using bootstrapped confidence intervals. The idea is to resample your accuracy data with replacement and compute th...
26 dagar ago | 0
How to make a matrix with mixed string and number elements ?
I think this is your goal N = 10; M = 4; str = compose("x%04d",1:N*M); A = reshape(str,M,N)' Note that this is referred to...
26 dagar ago | 1
| accepted