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

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

3 years ago | 1

| accepted

Answered
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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

Answered
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');

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

Load more