Answered
Apps empty although Matlab says Statistics and Machine learning toolbox is installed
I'm not sure why the app doesn't appear in your app list but if you have the Statistics and Machine Learning Toolbox you can ini...

6 years ago | 0

| accepted

Answered
Marker doesn't appear in plot3() legend
I assume eList contains a cell array of character vectors (or a string array) that define the legend strings. Try this, hol...

6 years ago | 0

| accepted

Answered
Why does my method doesn't recognise the variable U that I defined as global?
Don't use Global variables, especially in AppDesigner! Instead, declare variables that are shared between app functions as priv...

6 years ago | 4

| accepted

Answered
drawrectangle not working consistently, help!
In AppDesigner / uifigure & uiaxes, drawrectangle is horribly slow and does not show the rectangle borders immediately. It's so...

6 years ago | 0

| accepted

Answered
How to extract a part of the spectrogram?
Three approaches to selecting a range within a spectogram Use saveas to save figures as any format. 1. Simple xlim & ylim A s...

6 years ago | 1

| accepted

Answered
Please solve the following question
The variable diff is a 4x4 matrix. diff = 22 7 -4.5 10.5 29 2.5 ...

6 years ago | 0

Answered
How to make the y axis 'counts' and x axis the variable on Histograms
Set the orientation property to horizontal. histogram(rand(1,1000),'Orientation','horizontal')

6 years ago | 0

Answered
How create a matrix that matches a condition in comparison with other matrix?
A=[ 1 10 1 9 1 8 1 7 1 6 2 15 2 14 2 13 2 12 2 11 3 18 3 17 3 16 3 15 3 14 4 12 ...

6 years ago | 1

| accepted

Answered
How to plot a range with stackedplot()
As the error message indicates, you cannot specify both the Source Table and the XData/YData. You can either use indexing the ...

6 years ago | 0

Answered
How to average over different length vectors without excessive for loops?
I suggest collected all of the variable-length row-vectors within a cell array, then organize them in a matrix and use NaN to pa...

6 years ago | 4

| accepted

Answered
How to set the grid of the right yyaxis?
As KALYAN ACHARJYA mentioned, the grid lines reference the left axis. Workaround Set the vertical grid lines ax = gca(); ...

6 years ago | 1

Answered
Graphs behaviour after tiledlayout, stackedplot or subplot functions
When you call heatmap in the line below you're still using the 2nd axes in the tiledlayout created above. That's why the heatma...

6 years ago | 0

| accepted

Answered
organize vector, difference between adjacent elements of a vector
A=[ 3 ,10, 55 ,100 ,888]; z = cumsum(diff([2,A]))

6 years ago | 0

| accepted

Answered
ConstantLine always on the top
Control the layer of a ConstantLine or ConstantRegion Here are several solutions covering several MATLAB releases. R2024a or ...

6 years ago | 5

| accepted

Answered
sum of row in pattern
Data= [ 1 4 0.0000; 2 7 0.0000; 3 9 0.0000; 4 5 0.1760; ...

6 years ago | 0

Answered
Bar diagram as subplot in a for loop from a cell
The goal is unclear but I think this is what your looking for, number = numel(data); for i = 1:number p{i} = polyfit(x_...

6 years ago | 0

| accepted

Answered
How do I change the order of objects in the App Designer component browser?
For Matlab r2020b and later, the stack order of UI components can be changed using the reorder tool (see release notes). For ...

6 years ago | 0

Answered
stackedplot and linear fit
> i was just wondering if they was any way i could put a linear fit line and get its data from stackedplot? If you're creating ...

6 years ago | 1

| accepted

Answered
How do I change the size of subplots in stackedplot
You can get the axis handles of stackedplot using the undocumented NodeChildren property. Use flipud to set the axis handles in...

6 years ago | 0

Answered
How to use stackedplot in app designer ?
> Is there any way to use stackedplot with UIAxes in app designer Yes. Parents of stackedplot can be set to Figure object |...

6 years ago | 0

Answered
Insert text in stacked plot points
stackedplot does not return the axis handles which is needed to place the text objects but you can get the axis handles using th...

6 years ago | 0

Answered
Latexlabels and Legend Location in Stackedplot
> I want my y-labels to be interpreted by latex See this answer. > I want to make my Legend horizontal above the plot. We...

6 years ago | 0

Answered
table stackedplot with log y-axis
Update: In Matlab R2021b or later, set the yscale property of stackedplot to log. Prior ot R2021b, you can set the scale of t...

6 years ago | 0

Answered
Zooming and linking axes when using 'stackedplot'
>Is it possible to use the interactive zoom function with a stacked plot? Yes, zoom interaction is on by default in stackedplot...

6 years ago | 0

Answered
Combining two stacked plots
Seth Furman's suggestion to concatenate the data prior to creating the stackedplot is a good approach. If that is not an option...

6 years ago | 0

Answered
linkaxes of different stackedplots
I found a solution (weeks later) using the undocumented NodeChildren property to get the axis handles. Instead of using the su...

6 years ago | 0

Answered
labels of stacked plot
>The ylabels are aligned horizontally. I'd like to know how to align vertically. See this answer. > Also , how can we define...

6 years ago | 0

| accepted

Answered
Add xline equivalent to stackedplot?
You can get the axis handles in stackedplot using the undocumented NodeChildren property. Then use xline to add vertical referen...

6 years ago | 2

| accepted

Answered
stackedplot without yticklabels?
See this answer for an undocumented method of change the ytick values in stackedplot. To clear the ticks, you'll change the la...

6 years ago | 1

Answered
Is it possible to change stackedplots background color?
You can get the axis handles in stackedplot using the undocumented NodeChildren property. Then change background color. rng('de...

6 years ago | 3

Load more