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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 2

| akzeptiert

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

etwa 3 Jahre vor | 2

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 5

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 4

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

Poll


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

mehr als 3 Jahre vor | 16434 votes | 10 comments

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

mehr als 3 Jahre vor | 2

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Extract brushed data programmatically
To get the coordinates of selected data points, you can follow the example in this answer. That answer shows that BrushData is ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
how to make Plot a rectangle Using the XY Graph Block
See https://www.mathworks.com/help/simulink/ug/plot-circle-with-xy-graph.html

mehr als 3 Jahre vor | 0

Mehr laden