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

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

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

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

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

fast 3 Jahre vor | 0

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

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

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

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

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

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

fast 3 Jahre vor | 0

Poll


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

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

fast 3 Jahre vor | 2

| akzeptiert

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

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

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

fast 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

fast 3 Jahre vor | 0

Beantwortet
Plot a polygon on web world map
> Is there a way to plot a free hand polygon using drawpolygon function on web world map (webmap)? Polygon objects created in d...

fast 3 Jahre vor | 0

Beantwortet
Scroll to location within uidropdown
Currently there isn't a way to programmatically scroll within a DropDown list. Two workarounds could be to use a uilistbox or...

fast 3 Jahre vor | 1

Beantwortet
Matlab app designer error related to an array
The table appears to be empty (running from m-file) MQTTSignal = mqttclient('tcp://broker.hivemq.com','Port',1883) dataTT = re...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to left align YDisplayLabels in a heatmap
You can pad the labels with empty spaces so that all labels are the same length using labels={'aaaa','bbb','c'}; h1=heatmap(r...

fast 3 Jahre vor | 0

Beantwortet
How to set color gradient based on z axis?
scatter3(X,Y,Z,S,C) hSc3 = scatter3(T.CED(ix),T.r(ix),T.E0(ix),36,T.E0(ix),'filled');

fast 3 Jahre vor | 0

Beantwortet
I have the following signal with some peaks and some valleys. Is it possible to make the baseline zero?
Since you just want the baseline shift, you just need to fit the y-intercept which would be a 0-degree polynomial. Here's a de...

fast 3 Jahre vor | 0

Beantwortet
How can I change the value of x and y axes?
You must be using mesh(Z) If you want to specify the x and y coordinates, use mesh(X,Y,Z). If x and y are in radians, convert...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Legend showing same symbol for loop plot
Try this for i=1:size(obs,1) x = V(:,1)'*obs(i,:)'; y = V(:,2)'*obs(i,:)'; z = V(:,3)'*obs(i,:)'; if(grp{i}...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to filter out dates within a datetime list?
Here are the steps you can take. 1. NOAA contains dates and durations in separate variables. Combine them into 1 datetime vec...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to control latex TickLabel FontSize?
Two methods Set FontSize property figure() ax = gca(); set(ax, 'TickLabelInterpreter', 'latex', 'YTickLabel','$\frac{a}{b}$'...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I give a location to the text written in Yline type plots , without making it an object?
You can specify which side of the axes the label is printed using the LabelHorizontalAlignment property. Alternatively, you c...

etwa 3 Jahre vor | 1

Beantwortet
What is the best way to check the inputs of a function?
I'm sure there are varying opinions on this. Here are some bits that might help with your decision. function argument validat...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
prompt a GUI user to enter different values
Put your dialog in a while-loop that exits when the input conditions are met and regenerates the dialog if the conditions are no...

etwa 3 Jahre vor | 0

| akzeptiert

Mehr laden