Answered
How to compute 8 days mean from one year data?
Here is a boxcar average of your 365x9 matrix with an averaging window of 8x1 except for the last bin. Averaging is independent...

3 years ago | 1

| accepted

Answered
fill in between horizontal lines
MATLAB R2023a introduced yregion which offers an easy way to fill between horizontal lines. yregion(0,20,'FaceColor','g','Edge...

3 years ago | 0

Answered
How to change the position of arrow in quiver from head/tail to middle of the line?
Starting in MATLAB R2022a, you can use the Alignment property of the quiver object to specity head, tail, or center alignment.

3 years ago | 0

Answered
Unable to combine plots?
Use tiledlayout. fig = gcf; % from your code tcl = tiledlayout(1,4,'TileSpacing','Compact'); ax1 = nexttile(tcl); % PLOT I...

3 years ago | 0

Answered
Issue with linkprop outcome in .m vs .mlx script
The problem is that the embedded figure within the live scrip does not have access to the LinkProp objects. The documentation h...

3 years ago | 2

| accepted

Answered
how to create a figure without titles and icons
figure('toolbar','none','menu','none')

3 years ago | 2

| accepted

Answered
have change values for x axis
Set the xgroupdata argument in boxchart. Since you're using a matrix of ydata values, you'll need to replicate the vector of ...

3 years ago | 0

Answered
How to set common colorbar for multiplots?
This is easy with tiledlayout (MATLAB R2020b or later) tcl = tiledlayout(3,4); for i = 1:prod(tcl.GridSize) nexttile() ...

3 years ago | 5

Answered
Why are datatips editable?
> Is there a way to stop people editing the datatip text? There is no way to turn off the option for users to manually edit the...

3 years ago | 0

| accepted

Answered
Children of axes after using yyaxis right
% Create the axes object ax = axes(); % Plot 'a' and 'b' using the same axes a = plot(ax, 1:10, 1:10, 'DisplayName', 'Test'...

3 years ago | 0

| accepted

Answered
How to relabel contour and colormap labels to pre-natural log values
> I plot the natural log of my actual data, but I want the contour labels and colormap to reflect the actual data. > How can I ...

3 years ago | 0

Answered
Remove data tips from Live Editor plots
> How can I remove it interactively? You could click on the black marker at the corner of the datatip indicating the clicked po...

3 years ago | 0

| accepted

Answered
How do I remove vertical lines in graphs?
If you zoom into one of those vertical lines you'll see that they aren't vertical and they are a part of your data. Another w...

3 years ago | 0

| accepted

Answered
Problem changing tick label font size
We don't have enough information to troublehoot. One possibility is that the fontsize is not being applied to the intended ax...

3 years ago | 0

Answered
plotting a feather plot for u and v component
If you zoom into your data, you'll see that you've got arrows. load('u10.mat') load('v10.mat') figure(); tcl = tiledlayout...

3 years ago | 0

| accepted

Answered
I cannot remove the auto-reflow in the app designer
> However, doing so creates by default an app with auto-reflow, and when I try to disable it using CANVAS > Convert > App withou...

3 years ago | 0

Answered
a little bug in function "plot/stem"
Reproduce the problem v = 1179080; a = ones(v,1); s = stem(a); xlim(v-[10,0]) ylim([0.9,1.1]) d = datatip(s,1179071,1...

3 years ago | 1

| accepted

Answered
Axis font overlaps with axis line following .eps plot export
Thanks for sharing @Totilo. The problem is with the font, Latin Modern Roman. When I change the font to Arial, for example, the...

3 years ago | 1

| accepted

Answered
How to use a user plotting function within an app
Specify the axes handle, testfunc(app.UIAxes,x,y1) function [] = testfunc(ax,x,y) %UNTITLED Summary of this function goes ...

3 years ago | 0

| accepted

Answered
How to change colormap based on z axis instead of y?
This version assigns a solid color for each bar, based on bar height. z = randg(1,5,3); h = bar3(z); for i = 1:numel(h) ...

3 years ago | 0

Answered
How do we plot this.
plot(t,x)

3 years ago | 1

Answered
Errors in listener callbacks
> Is there a way to cancel this mechanism? to let the errors in listener callbacks become actual error messages? No, there isn'...

3 years ago | 0

| accepted

Answered
How to put a figure window in the center of the screen?
> Is it possible to put a figure (for example a GUI window) in the center of the screen? | Use movegui movegui('center') or ...

3 years ago | 4

Answered
my tab group in app designer doesn't fit in UIfig
Thanks for sharing an image. It looks like it fits in the figure space to me. Do you mean you intend it to fill the entire fig...

3 years ago | 0

| accepted

Answered
For the following plots, colormap I have tried does not seem to be working.
The question is about cmap but cmap doesn't exist in you code so I assume cmap is a variable (or function) in arrow3D but I don'...

3 years ago | 0

Answered
Does the statistics and machine learning toolbox include timeseries analysis?
> Does the statistics and machine learning toolbox include timeseries analysis? The Statistics and Machine Learning Toolbox sup...

3 years ago | 0

Poll


Today, while using MATLAB, I'm going to....

3 years ago | 16434 votes | 10 comments

Answered
Why does textbox have 3 reserved words?
Those are the exact locations of our MATLAB Online servers! 😀 j/k You may have also noticed the same information in our text pr...

3 years ago | 2

| accepted

Answered
how can I save a sound to disk in wav format?
audiowrite - see first example.

3 years ago | 0

Answered
How to plot multiple graphs in one figure ?
> I want to plot two graphs in one figure Options are subplot tiledlayout with nexttile - preferred, starting in R2019b su...

3 years ago | 1

| accepted

Load more